Class ATimeSeriesClassificationModel<L,​D extends TimeSeriesDataset>

  • Type Parameters:
    L - The attribute type of the target.
    V - The value type of the target attribute.
    D - The type of the time series data set used to learn from and predict batches.
    All Implemented Interfaces:
    org.api4.java.ai.ml.core.learner.IFittable<ITimeSeriesInstance,​D>, org.api4.java.ai.ml.core.learner.IFittablePredictor<ITimeSeriesInstance,​D>, org.api4.java.ai.ml.core.learner.ILearnerConfigHandler, org.api4.java.ai.ml.core.learner.IPredictor<ITimeSeriesInstance,​D>, org.api4.java.ai.ml.core.learner.ISupervisedLearner<ITimeSeriesInstance,​D>

    public abstract class ATimeSeriesClassificationModel<L,​D extends TimeSeriesDataset>
    extends ASupervisedLearner<ITimeSeriesInstance,​D,​org.api4.java.ai.ml.classification.singlelabel.evaluation.ISingleLabelClassification,​org.api4.java.ai.ml.classification.singlelabel.evaluation.ISingleLabelClassificationPredictionBatch>
    Time series classifier which can be trained and used as a predictor. Uses algorithm to train the model parameters (if necessary).
    • Constructor Detail

      • ATimeSeriesClassificationModel

        public ATimeSeriesClassificationModel​(ATSCAlgorithm<L,​D,​? extends ATimeSeriesClassificationModel<L,​D>> algorithm)
        Constructor for a time series classifier.
        Parameters:
        algorithm - The algorithm object used for the training of the classifier
    • Method Detail

      • fit

        public void fit​(D dataset)
                 throws org.api4.java.ai.ml.core.exception.TrainingException
        {@inheritDoc ABatchLearner#train(jaicore.ml.core.dataset.IDataset)}
        Throws:
        org.api4.java.ai.ml.core.exception.TrainingException
      • setAlgorithm

        public void setAlgorithm​(ATSCAlgorithm<L,​D,​? extends ATimeSeriesClassificationModel<L,​D>> algorithm)
        Sets the training algorithm for the classifier.
        Parameters:
        algorithm - The algorithm object used to maintain the model's parameters.