Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.
/ matrix-datasets Public archive

Common, public domain and oss datasets in Matrix format

License

Notifications You must be signed in to change notification settings

Alipsa/matrix-datasets

Repository files navigation

Matrix Datasets

Common, public domain and oss datasets in Matrix format for Groovy applications running on JDK 17 or later.

Includes mtcars, iris, PlantGrowth, ToothGrowth, USArrests, diamonds, mpg, and map data

Setup

Gradle:

implementation 'se.alipsa.groovy:matrix-datasets:1.0.1'

Maven:

<dependency>
    <groupId>se.alipsa.groovy</groupId>
    <artifactId>matrix-datasets</artifactId>
    <version>1.0.1</version>
</dependency>

Usage:

import se.alipsa.groovy.datasets.*
import se.alipsa.groovy.matrix.*

Matrix iris = Dataset.iris()
Matrix speciesMeans = Stat.meanBy(iris, 'Sepal Length','Species')
println speciesMeans.content()
Species Sepal Length
Iris-versicolor 5.936
Iris-virginica 6.588
Iris-setosa 5.006

About

Common, public domain and oss datasets in Matrix format

Resources

License

Stars

Watchers

Forks

Packages

No packages published