#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 | runParallel (const std::vector< std::vector< T > > &inputSeries) |
T | runParallel (const std::vector< std::vector< T > > &inputSeries, std::string label) |
std::string | runContinuous (const std::vector< T > &inputVector) |
std::vector< T > | getCosts () const |
std::size_t | getMinLength () const |
std::size_t | getMinLength (std::string label) const |
std::size_t | getMaxLength () const |
std::size_t | 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 >::template 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 >::template 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 |
Get the costs that were calculated by the run method
std::size_t seriesClassificationTemplate< T >::getMaxLength |
Get maximum training series length
std::size_t seriesClassificationTemplate< T >::getMaxLength | ( | std::string | label | ) | const |
Get maximum training series length from a specified label
string | The label to check |
std::size_t seriesClassificationTemplate< T >::getMinLength |
Get minimum training series length
std::size_t 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 |
std::string seriesClassificationTemplate< T >::runParallel | ( | const std::vector< std::vector< T > > & | inputSeries | ) |
Compare an input series to the stored training series. Parallel processing
std::vector<std::vector> | vector of vectors, either float or double input data |
T seriesClassificationTemplate< T >::runParallel | ( | const std::vector< std::vector< T > > & | inputSeries, |
std::string | label | ||
) |
Compare an input series to all of the stored series with a specified label. Parallel processing
std::vector<std::vector> | either float or double input data |
String | label to compare with |
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 |