0.1.14 • Published 4 years ago
@raven-crypto/raven-playground v0.1.14
ts Models
Testing a Model
To train, test, and save a model, such as the logistic regression, via a Playground file, run (from the ts directory):
ts-node ./src/ml-ingredients/logistic-regression/playground.ts train test saveWhere train and test one of {train, test, save, load, data }.
train: Trains a model, not saving the results.test: Tests the trained model. Must specifytrainbeforehand.save: Saves the model to the specified JSON file.load: Loads the model from the specified JSON file.data: Outputs the training and testing data into a CSV file and opens it.