public class TimeSeriesTreeClassifier extends ASimplifiedTSClassifier<java.lang.Integer>
classMapper, trained| Constructor and Description |
|---|
TimeSeriesTreeClassifier(TimeSeriesTreeLearningAlgorithm.ITimeSeriesTreeConfig config)
Constructs an empty time series tree.
|
| Modifier and Type | Method and Description |
|---|---|
static ai.libs.jaicore.graph.TreeNode<ai.libs.jaicore.ml.tsc.classifier.trees.TimeSeriesTreeClassifier.TimeSeriesTreeNodeDecisionFunction> |
decide(ai.libs.jaicore.graph.TreeNode<ai.libs.jaicore.ml.tsc.classifier.trees.TimeSeriesTreeClassifier.TimeSeriesTreeNodeDecisionFunction> treeNode,
double[] instance)
Function performing the decision on a
treeNode given the
instance based on the locally stored splitting criterion. |
TimeSeriesTreeLearningAlgorithm |
getLearningAlgorithm(TimeSeriesDataset dataset) |
ai.libs.jaicore.graph.TreeNode<ai.libs.jaicore.ml.tsc.classifier.trees.TimeSeriesTreeClassifier.TimeSeriesTreeNodeDecisionFunction> |
getRootNode()
Getter for the root node.
|
java.lang.Integer |
predict(double[] univInstance)
Predicts the class of the given univariate instance by iterating through the
tree starting from the root node to a leaf node to induce a class prediction.
|
java.lang.Integer |
predict(java.util.List<double[]> multivInstance)
Performs a prediction based on the given multivariate list of double[]
instance representation and returns the result.
|
java.util.List<java.lang.Integer> |
predict(TimeSeriesDataset dataset)
Performs predictions based on the given instances in the given dataset.
|
checkWhetherPredictionIsPossible, getClassMapper, isTrained, setClassMapper, trainpublic TimeSeriesTreeClassifier(TimeSeriesTreeLearningAlgorithm.ITimeSeriesTreeConfig config)
public ai.libs.jaicore.graph.TreeNode<ai.libs.jaicore.ml.tsc.classifier.trees.TimeSeriesTreeClassifier.TimeSeriesTreeNodeDecisionFunction> getRootNode()
public java.lang.Integer predict(double[] univInstance)
throws PredictionException
predict in class ASimplifiedTSClassifier<java.lang.Integer>univInstance - Univariate instance to be predictedPredictionException - If something fails during the prediction process.public java.lang.Integer predict(java.util.List<double[]> multivInstance)
throws PredictionException
predict in class ASimplifiedTSClassifier<java.lang.Integer>multivInstance - Multivariate instance given by a list of multiple
double[] time series used for the predictionPredictionException - If something fails during the prediction process.public java.util.List<java.lang.Integer> predict(TimeSeriesDataset dataset) throws PredictionException
predict in class ASimplifiedTSClassifier<java.lang.Integer>dataset - The TimeSeriesDataset for which predictions should be
made.PredictionException - If something fails during the prediction processpublic static ai.libs.jaicore.graph.TreeNode<ai.libs.jaicore.ml.tsc.classifier.trees.TimeSeriesTreeClassifier.TimeSeriesTreeNodeDecisionFunction> decide(ai.libs.jaicore.graph.TreeNode<ai.libs.jaicore.ml.tsc.classifier.trees.TimeSeriesTreeClassifier.TimeSeriesTreeNodeDecisionFunction> treeNode,
double[] instance)
treeNode given the
instance based on the locally stored splitting criterion.treeNode - Tree node where the decision is taken placeinstance - Instance valuestreeNode is a tree nodepublic TimeSeriesTreeLearningAlgorithm getLearningAlgorithm(TimeSeriesDataset dataset)
getLearningAlgorithm in class ASimplifiedTSClassifier<java.lang.Integer>