0.1.22 • Published 2 years ago

@algoraven/playground v0.1.22

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

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 save

Where train and test one of {train, test, save, load, data }.

  • train: Trains a model, not saving the results.
  • test: Tests the trained model. Must specify train beforehand.
  • 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.