propelml / propel

Differential Programming in JavaScript.
http://propelml.org/
Apache License 2.0
2.72k stars 104 forks source link

change API for dataset #470

Open ry opened 6 years ago

ry commented 6 years ago

Currently the dataset is specified as a string:

pr.dataset("cifar10/train")
pr.dataset("iris")

It would be better to use actual functions for each. example:

pr.dataset.cifar10("train")
pr.dataset.iris()

This allows for type checking on the components of the datasets - that is cifar10 has { images, labels } and iris has { features, labels } - thus the docs will better reflect the information people need.

splitName should default to "train"