Link to C++ documentation
Utility function to convert js objects into something emscripten likes
Parameters
trainingSet: Object
, JS Object representing a training set
Returns: Module.TrainingSet
Creates a set of regression objects using the constructor from emscripten
Module.RegressionCpp: function
, constructor from emscripten
Trains the models using the input. Starts training from the current state of the model: randomized or trained.
Parameters
trainingSet: Object
, An array of training examples
Returns: Boolean
, true indicates successful training
Returns the model set to it's initial configuration.
Returns: Boolean
, true indicates successful initialization
Runs feed-forward regression on input
Parameters
input: Array
, An array of features to be processed. Non-arrays are converted.
Returns: Array
, output - One number for each model in the set
Creates a set of classification objects using the constructor from emscripten
Module.ClassificationCpp: function
, constructor from emscripten
Trains the models using the input. Clears previous training set.
Parameters
trainingSet: Object
, An array of training examples.
Returns: Boolean
, true indicates successful training
Returns the model set to it's initial configuration.
Returns: Boolean
, true indicates successful initialization
Does classifications on an input vector.
Parameters
input: Array
, An array of features to be processed. Non-arrays are converted.
Returns: Array
, output - One number for each model in the set
Creates a set of machine learning objects using constructors from emscripten. Could be any mix of regression and classification.
Trains the models using the input. Clears previous training set.
Parameters
url: string
, JSON loaded from a model set description document.
Returns: Boolean
, true indicates successful training
Add a NN model to a modelSet. //TODO: this doesn't need it's own function
Parameters
model: , Add a NN model to a modelSet. //TODO: this doesn't need it's own function
Add a kNN model to a modelSet. //TODO: this doesn't need it's own function
Parameters
model: , Add a kNN model to a modelSet. //TODO: this doesn't need it's own function
Applies regression and classification algorithms to an input vector.
Parameters
input: Array
, An array of features to be processed.
Returns: Array
, output - One number for each model in the set