10 #ifndef SERIESCLASSIFICATION_H
11 #define SERIESCLASSIFICATION_H
45 std::string
run(
const std::vector<std::vector<T> > &inputSeries);
52 T
run(
const std::vector<std::vector<T> >& inputSeries, std::string label);
58 std::string
runParallel(
const std::vector<std::vector<T> >& inputSeries);
65 T
runParallel(
const std::vector<std::vector<T> > &inputSeries, std::string label);
101 template<
typename TT>
121 std::vector<trainingSeriesTemplate<T> > allTrainingSeries;
123 std::vector<T> allCosts;
126 std::map<std::string, minMax<size_t> > lengthsPerLabel;
127 bool isTraining {
false };
129 std::vector<std::vector<T> > seriesBuffer;
133 size_t findClosestSeries()
const;
134 void runThread(
const std::vector<std::vector<T>> &inputSeries, std::size_t i);
Definition: seriesClassification.h:26
void reset()
Definition: seriesClassification.cpp:85
std::vector< T > getCosts() const
Definition: seriesClassification.cpp:260
minMax< T > calculateCosts(std::string label) const
Definition: seriesClassification.cpp:296
std::string runContinuous(const std::vector< T > &inputVector)
Definition: seriesClassification.cpp:241
std::string runParallel(const std::vector< std::vector< T > > &inputSeries)
Definition: seriesClassification.cpp:158
std::size_t getMaxLength() const
Definition: seriesClassification.cpp:281
seriesClassificationTemplate()
Definition: seriesClassification.cpp:25
~seriesClassificationTemplate()
Definition: seriesClassification.cpp:28
std::string run(const std::vector< std::vector< T > > &inputSeries)
std::size_t getMinLength() const
Definition: seriesClassification.cpp:266
bool train(const std::vector< trainingSeriesTemplate< T > > &seriesSet)
Definition: seriesClassification.cpp:31
Definition: classification.h:75
Definition: seriesClassification.h:102
TT max
Definition: seriesClassification.h:104
TT min
Definition: seriesClassification.h:103
Definition: trainingExample.h:34