JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5
  • Score
    100M100P100Q40084F
  • License MIT

Make synthetic datasets

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 -S or
  • npm i mkdata -g or
  • npx mkdata ...

CLI

mkdata -d friedman1 -s 1000 -o friedman1.csv

or using stdout

mkdata -d friedman1 -s 1000 > friedman1.csv

Params:

  • -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