Class BOSSClassifier
- java.lang.Object
-
- ai.libs.jaicore.ml.classification.singlelabel.timeseries.learner.ASimplifiedTSClassifier<java.lang.Integer>
-
- ai.libs.jaicore.ml.classification.singlelabel.timeseries.learner.BOSSClassifier
-
public class BOSSClassifier extends ASimplifiedTSClassifier<java.lang.Integer>
-
-
Field Summary
-
Fields inherited from class ai.libs.jaicore.ml.classification.singlelabel.timeseries.learner.ASimplifiedTSClassifier
classMapper, trained
-
-
Constructor Summary
Constructors Constructor Description BOSSClassifier(int windowLength, int alphabetSize, double[] alphabet, int wordLength, boolean meanCorrected)BOSSClassifier(BOSSLearningAlgorithm.IBossAlgorithmConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BOSSLearningAlgorithmgetLearningAlgorithm(TimeSeriesDataset2 dataset)java.util.List<java.util.Map<java.lang.Integer,java.lang.Integer>>getUnivirateHistograms()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(TimeSeriesDataset2 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.voidsetHistogramUnivirate(java.util.List<java.util.Map<java.lang.Integer,java.lang.Integer>> histograms)voidsetTrainingData(TimeSeriesDataset2 trainingData)-
Methods inherited from class ai.libs.jaicore.ml.classification.singlelabel.timeseries.learner.ASimplifiedTSClassifier
checkWhetherPredictionIsPossible, getClassMapper, isTrained, setClassMapper, train
-
-
-
-
Constructor Detail
-
BOSSClassifier
public BOSSClassifier(int windowLength, int alphabetSize, double[] alphabet, int wordLength, boolean meanCorrected)
-
BOSSClassifier
public BOSSClassifier(BOSSLearningAlgorithm.IBossAlgorithmConfig config)
-
-
Method Detail
-
getUnivirateHistograms
public java.util.List<java.util.Map<java.lang.Integer,java.lang.Integer>> getUnivirateHistograms()
-
setTrainingData
public void setTrainingData(TimeSeriesDataset2 trainingData)
-
setHistogramUnivirate
public void setHistogramUnivirate(java.util.List<java.util.Map<java.lang.Integer,java.lang.Integer>> histograms)
-
predict
public java.lang.Integer predict(double[] univInstance) throws org.api4.java.ai.ml.core.exception.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:
org.api4.java.ai.ml.core.exception.PredictionException- If something fails during the prediction process.
-
predict
public java.lang.Integer predict(java.util.List<double[]> multivInstance) throws org.api4.java.ai.ml.core.exception.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:
org.api4.java.ai.ml.core.exception.PredictionException- If something fails during the prediction process.
-
predict
public java.util.List<java.lang.Integer> predict(TimeSeriesDataset2 dataset) throws org.api4.java.ai.ml.core.exception.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- TheTimeSeriesDataset2for which predictions should be made.- Returns:
- Returns the result of the predictions
- Throws:
org.api4.java.ai.ml.core.exception.PredictionException- If something fails during the prediction process
-
getLearningAlgorithm
public BOSSLearningAlgorithm getLearningAlgorithm(TimeSeriesDataset2 dataset)
- Specified by:
getLearningAlgorithmin classASimplifiedTSClassifier<java.lang.Integer>
-
-