Package Exports
- mkdata
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (mkdata) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
mkdata
** Generate synthetic datasets for testing **
Install
npm i mkdata -Sornpm i mkdata -gornpx mkdata ...
CLI
mkdata -d friedman1 -s 1000 -o friedman1.csvor using stdout
mkdata -d friedman1 -s 1000 > friedman1.csvParams:
-d,--dataset- dataset name-f,--nFeatures- number of features-s,--nSamples- number of samples-n,--noise- noise size-o,--output- output file name-r,--randomState- seed
API
const make = require('mkdata')
const [X, y] = make.friedman1({ nSamples: 1000 })Datasets
- Friedman 1
- Friedman 2
- Friedman 3
- Hastie
- Moons
- Peak
- Ringnorm
- Spirals