A Machine Learning Toolkit
Typescript port of the BYU CS 478 machine learning toolkit
In order to use this toolkit, most commands will be similar to those given on the class website for the Java and C++ toolkits. With the assumption that you already have dependencies installed, usage is straight-forward.
Execute the following commands from the root directory of this repository.
mkdir datasets
wget http://axon.cs.byu.edu/~martinez/classes/478/stuff/iris.arff -P datasets/
node toolkit.manager -L baseline -A datasets/iris.arff -E training
Aside from needing to specify the module to run, commands follow the same syntax as the other toolkits.
For information on the expected syntax, run
python -m toolkit.manager --help
See BaselineLearner.ts and its BaselineLearner
class for an example of the format of the learner. In particular, new learners will need to override the train()
and predict()
functions of the SupervisedLearner
base class.