#include <trainingData.h>
This is used by both NN and KNN models for training
§ trainingData()
rapidmix::trainingData::trainingData |
( |
| ) |
|
§ addElement() [1/2]
uint32_t rapidmix::trainingData::addElement |
( |
const std::vector< double > & |
input, |
|
|
const std::vector< double > & |
output |
|
) |
| |
Add an element with input and output to the phrase that is recording, or to the default phrase if recording is stopped. Returns phrase id.
§ addElement() [2/2]
uint32_t rapidmix::trainingData::addElement |
( |
const std::vector< double > & |
input | ) |
|
Add an element with just input to the phrase that is recording, or to the default phrase if recording is stopped. Returns phrase id.
§ getColumnNames()
std::vector< std::string > rapidmix::trainingData::getColumnNames |
( |
| ) |
|
§ getJSON()
std::string rapidmix::trainingData::getJSON |
( |
| ) |
|
Get a JSON representation of the data set in the form of a styled string
§ putJSON()
bool rapidmix::trainingData::putJSON |
( |
const std::string & |
jsonMessage | ) |
|
populate a data set with string. See getJSON()
§ readJSON()
bool rapidmix::trainingData::readJSON |
( |
const std::string & |
filepath | ) |
|
read a JSON file at file path and build a training set from it
§ recordSingleElement() [1/3]
uint32_t rapidmix::trainingData::recordSingleElement |
( |
const std::string & |
label, |
|
|
const std::vector< double > & |
input |
|
) |
| |
Create a phrase with a single element that has a label and input. Returns phrase id.
§ recordSingleElement() [2/3]
uint32_t rapidmix::trainingData::recordSingleElement |
( |
const std::vector< double > & |
input, |
|
|
const std::vector< double > & |
output |
|
) |
| |
Create a phrase with a single element that has input, and output. Returns phrase id.
§ recordSingleElement() [3/3]
uint32_t rapidmix::trainingData::recordSingleElement |
( |
const std::string & |
label, |
|
|
const std::vector< double > & |
input, |
|
|
const std::vector< double > & |
output |
|
) |
| |
Create a phrase with a single element that has a label, input, and output. Returns phrase id.
§ setColumnNames()
void rapidmix::trainingData::setColumnNames |
( |
const std::vector< std::string > & |
columnNames | ) |
|
§ startRecording() [1/2]
uint32_t rapidmix::trainingData::startRecording |
( |
| ) |
|
Create a new phrase that can be recorded into. Returns phrase id
§ startRecording() [2/2]
uint32_t rapidmix::trainingData::startRecording |
( |
const std::string & |
label | ) |
|
Create new phrase, with a label, that can be recorded into. Returns phrase id
§ stopRecording()
void rapidmix::trainingData::stopRecording |
( |
| ) |
|
§ writeJSON()
void rapidmix::trainingData::writeJSON |
( |
const std::string & |
filepath | ) |
|
Write a JSON version of the training set to specified file path
§ trainingSet
std::vector<phrase> rapidmix::trainingData::trainingSet |
The documentation for this class was generated from the following files: