#include <seriesClassification.h>
Classes | |
struct | minMax |
Public Member Functions | |
seriesClassificationTemplate () | |
~seriesClassificationTemplate () | |
bool | train (const std::vector< trainingSeriesTemplate< T > > &seriesSet) |
void | reset () |
std::string | run (const std::vector< std::vector< T > > &inputSeries) |
T | run (const std::vector< std::vector< T > > &inputSeries, std::string label) |
std::string | runContinuous (const std::vector< T > &inputVector) |
std::vector< T > | getCosts () const |
int | getMinLength () const |
int | getMinLength (std::string label) const |
int | getMaxLength () const |
int | getMaxLength (std::string label) const |
minMax< T > | calculateCosts (std::string label) const |
minMax< T > | calculateCosts (std::string label1, std::string label2) const |
Class for containing time series classifiers.
Currently only (fast)DTW.
seriesClassificationTemplate< T >::seriesClassificationTemplate | ( | ) |
Constructor, no params
seriesClassificationTemplate< T >::~seriesClassificationTemplate | ( | ) |
seriesClassificationTemplate< T >::minMax< T > seriesClassificationTemplate< T >::calculateCosts | ( | std::string | label | ) | const |
Calculate minimum and maximum cost between examples in a label.
string | Label to calculate |
seriesClassificationTemplate< T >::minMax< T > seriesClassificationTemplate< T >::calculateCosts | ( | std::string | label1, |
std::string | label2 | ||
) | const |
Calculate minimum and maximum cost between examples in one label and examples in a second.
string | first label to compare |
string | second label to compare |
std::vector< T > seriesClassificationTemplate< T >::getCosts | ( | ) | const |
Get the costs that were calculated by the run method
int seriesClassificationTemplate< T >::getMaxLength | ( | ) | const |
Get maximum training series length
int seriesClassificationTemplate< T >::getMaxLength | ( | std::string | label | ) | const |
Get maximum training series length from a specified label
string | The label to check |
int seriesClassificationTemplate< T >::getMinLength | ( | ) | const |
Get minimum training series length
int seriesClassificationTemplate< T >::getMinLength | ( | std::string | label | ) | const |
Get minimum training series length from a specified label
string | The label to check |
void seriesClassificationTemplate< T >::reset | ( | ) |
Reset model to its initial state, forget all costs and training data
std::string seriesClassificationTemplate< T >::run | ( | const std::vector< std::vector< T > > & | inputSeries | ) |
Compare an input series to the stored training series
std::vector<std::vector> | vector of vectors, either float or double input data |
T seriesClassificationTemplate< T >::run | ( | const std::vector< std::vector< T > > & | inputSeries, |
std::string | label | ||
) |
Compare an input series to all of the stored series with a specified label
std::vector<std::vector> | either float or double input data |
String | label to compare with |
std::string seriesClassificationTemplate< T >::runContinuous | ( | const std::vector< T > & | inputVector | ) |
Compare an input series to all of the stored series with a specified label
std::vector<T> | one frame either float or double input data |
bool seriesClassificationTemplate< T >::train | ( | const std::vector< trainingSeriesTemplate< T > > & | seriesSet | ) |
Train on a specified set of trainingSeries
std::vector<trainingSeries> | A vector of training series |