Class BOSSEnsembleClassifier
- java.lang.Object
-
- ai.libs.jaicore.ml.tsc.classifier.ASimplifiedTSClassifier<java.lang.Integer>
-
- ai.libs.jaicore.ml.tsc.classifier.BOSSEnsembleClassifier
-
public class BOSSEnsembleClassifier extends ASimplifiedTSClassifier<java.lang.Integer>
-
-
Field Summary
-
Fields inherited from class ai.libs.jaicore.ml.tsc.classifier.ASimplifiedTSClassifier
classMapper, trained
-
-
Constructor Summary
Constructors Constructor Description BOSSEnsembleClassifier(java.util.Map<java.lang.Integer,java.lang.Integer> windowLengthsandWordLength, double[] alphabet, boolean meanCorrected)BOSSEnsembleClassifier(java.util.Map<java.lang.Integer,java.lang.Integer> windowLengthsandWordLength, int alphabetSize, double[] alphabet, boolean meanCorrected)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <U extends ASimplifiedTSClassifier<java.lang.Integer>>
ASimplifiedTSCLearningAlgorithm<java.lang.Integer,U>getLearningAlgorithm(TimeSeriesDataset dataset)java.lang.Integerpredict(double[] univInstance)Performs a prediction based on the given univariate 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.java.lang.Integerpredict(java.util.List<double[]> multivInstance)Performs a prediction based on the given multivariate list of double[] instance representation and returns the result.-
Methods inherited from class ai.libs.jaicore.ml.tsc.classifier.ASimplifiedTSClassifier
checkWhetherPredictionIsPossible, getClassMapper, isTrained, setClassMapper, train
-
-
-
-
Constructor Detail
-
BOSSEnsembleClassifier
public BOSSEnsembleClassifier(java.util.Map<java.lang.Integer,java.lang.Integer> windowLengthsandWordLength, int alphabetSize, double[] alphabet, boolean meanCorrected)
-
BOSSEnsembleClassifier
public BOSSEnsembleClassifier(java.util.Map<java.lang.Integer,java.lang.Integer> windowLengthsandWordLength, double[] alphabet, boolean meanCorrected)
-
-
Method Detail
-
predict
public java.lang.Integer predict(double[] univInstance) throws PredictionExceptionDescription copied from class:ASimplifiedTSClassifierPerforms a prediction based on the given univariate double[] instance representation and returns the result.- Specified by:
predictin classASimplifiedTSClassifier<java.lang.Integer>- Parameters:
univInstance- Univariate instance given by a double vector of time series values used for the prediction- Returns:
- Returns the result of the prediction
- Throws:
PredictionException- If something fails during the prediction process.
-
predict
public java.lang.Integer predict(java.util.List<double[]> multivInstance) throws PredictionExceptionDescription copied from class:ASimplifiedTSClassifierPerforms a prediction based on the given multivariate list of double[] instance representation and returns the result.- Overrides:
predictin classASimplifiedTSClassifier<java.lang.Integer>- Parameters:
multivInstance- Multivariate instance given by a list of multiple double[] time series used for the prediction- Returns:
- Returns the result of the prediction
- Throws:
PredictionException- If something fails during the prediction process.
-
predict
public java.util.List<java.lang.Integer> predict(TimeSeriesDataset dataset) throws PredictionException
Description copied from class:ASimplifiedTSClassifierPerforms predictions based on the given instances in the given dataset.- Specified by:
predictin classASimplifiedTSClassifier<java.lang.Integer>- Parameters:
dataset- TheTimeSeriesDatasetfor which predictions should be made.- Returns:
- Returns the result of the predictions
- Throws:
PredictionException- If something fails during the prediction process
-
getLearningAlgorithm
public <U extends ASimplifiedTSClassifier<java.lang.Integer>> ASimplifiedTSCLearningAlgorithm<java.lang.Integer,U> getLearningAlgorithm(TimeSeriesDataset dataset)
- Specified by:
getLearningAlgorithmin classASimplifiedTSClassifier<java.lang.Integer>
-
-