#include <modelSet.h>


Public Member Functions | |
| modelSet () | |
| virtual | ~modelSet () |
| virtual bool | train (const std::vector< trainingExampleTemplate< T > > &trainingSet) |
| bool | reset () |
| std::vector< T > | run (const std::vector< T > &inputVector) |
| std::string | getJSON () |
| void | writeJSON (const std::string &filepath) |
| bool | putJSON (const std::string &jsonMessage) |
| bool | readJSON (const std::string &filepath) |
Protected Attributes | |
| std::vector< baseModel< T > * > | myModelSet |
| int | numInputs |
| std::vector< std::string > | inputNames |
| int | numOutputs |
| bool | created |
This class holds a set of models with the same or different algorithms.
| std::string modelSet< T >::getJSON | ( | ) |
Get a JSON representation of the model in the form of a styled string
| bool modelSet< T >::putJSON | ( | const std::string & | jsonMessage | ) |
configure empty model with string. See getJSON()
| bool modelSet< T >::readJSON | ( | const std::string & | filepath | ) |
read a JSON file at file path and build a modelSet from it
| bool modelSet< T >::reset | ( | ) |
reset to pre-training state
| std::vector< T > modelSet< T >::run | ( | const std::vector< T > & | inputVector | ) |
run regression or classification for each model
|
virtual |
Train on a specified set, causes creation if not created
Reimplemented in classificationTemplate< T >, and regressionTemplate< T >.
| void modelSet< T >::writeJSON | ( | const std::string & | filepath | ) |
Write a JSON model description to specified file path
|
protected |
|
protected |
|
protected |
|
protected |