Class BOSSEnsembleClassifier

    • 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 org.api4.java.ai.ml.core.exception.PredictionException
        Description copied from class: ASimplifiedTSClassifier
        Performs a prediction based on the given univariate double[] instance representation and returns the result.
        Specified by:
        predict in class ASimplifiedTSClassifier<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.PredictionException
        Description copied from class: ASimplifiedTSClassifier
        Performs a prediction based on the given multivariate list of double[] instance representation and returns the result.
        Overrides:
        predict in class ASimplifiedTSClassifier<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: ASimplifiedTSClassifier
        Performs predictions based on the given instances in the given dataset.
        Specified by:
        predict in class ASimplifiedTSClassifier<java.lang.Integer>
        Parameters:
        dataset - The TimeSeriesDataset2 for 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