Class MekaClassifier

  • All Implemented Interfaces:
    IMekaClassifier, org.api4.java.ai.ml.classification.IClassifier, org.api4.java.ai.ml.classification.multilabel.learner.IMultiLabelClassifier, org.api4.java.ai.ml.core.learner.IFittable<org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance,​org.api4.java.ai.ml.core.dataset.supervised.ILabeledDataset<? extends org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance>>, org.api4.java.ai.ml.core.learner.IFittablePredictor<org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance,​org.api4.java.ai.ml.core.dataset.supervised.ILabeledDataset<? extends org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance>>, org.api4.java.ai.ml.core.learner.ILearnerConfigHandler, org.api4.java.ai.ml.core.learner.IPredictor<org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance,​org.api4.java.ai.ml.core.dataset.supervised.ILabeledDataset<? extends org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance>>, org.api4.java.ai.ml.core.learner.ISupervisedLearner<org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance,​org.api4.java.ai.ml.core.dataset.supervised.ILabeledDataset<? extends org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance>>, org.api4.java.common.reconstruction.IReconstructible

    public class MekaClassifier
    extends AMultiLabelClassifier
    implements IMekaClassifier, org.api4.java.common.reconstruction.IReconstructible
    • Constructor Summary

      Constructors 
      Constructor Description
      MekaClassifier​(meka.classifiers.multilabel.MultiLabelClassifier classifier)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addInstruction​(org.api4.java.common.reconstruction.IReconstructionInstruction instruction)  
      void fit​(org.api4.java.ai.ml.core.dataset.supervised.ILabeledDataset<? extends org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance> dTrain)  
      meka.classifiers.multilabel.MultiLabelClassifier getClassifier()  
      org.api4.java.common.reconstruction.IReconstructionPlan getConstructionPlan()  
      org.api4.java.ai.ml.classification.multilabel.evaluation.IMultiLabelClassification predict​(org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance xTest)  
      java.lang.String toString()  
      • Methods inherited from class ai.libs.jaicore.ml.core.learner.ASupervisedLearner

        fitAndPredict, fitAndPredict, fitAndPredict, getConfig, predict, setConfig
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.api4.java.ai.ml.core.learner.ILearnerConfigHandler

        getConfig, setConfig
      • Methods inherited from interface org.api4.java.ai.ml.classification.multilabel.learner.IMultiLabelClassifier

        fitAndPredict, fitAndPredict, fitAndPredict, predict
    • Constructor Detail

      • MekaClassifier

        public MekaClassifier​(meka.classifiers.multilabel.MultiLabelClassifier classifier)
    • Method Detail

      • getClassifier

        public meka.classifiers.multilabel.MultiLabelClassifier getClassifier()
        Specified by:
        getClassifier in interface IMekaClassifier
      • fit

        public void fit​(org.api4.java.ai.ml.core.dataset.supervised.ILabeledDataset<? extends org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance> dTrain)
                 throws org.api4.java.ai.ml.core.exception.TrainingException,
                        java.lang.InterruptedException
        Specified by:
        fit in interface org.api4.java.ai.ml.core.learner.IFittable<org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance,​org.api4.java.ai.ml.core.dataset.supervised.ILabeledDataset<? extends org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance>>
        Throws:
        org.api4.java.ai.ml.core.exception.TrainingException
        java.lang.InterruptedException
      • getConstructionPlan

        public org.api4.java.common.reconstruction.IReconstructionPlan getConstructionPlan()
        Specified by:
        getConstructionPlan in interface org.api4.java.common.reconstruction.IReconstructible
      • addInstruction

        public void addInstruction​(org.api4.java.common.reconstruction.IReconstructionInstruction instruction)
        Specified by:
        addInstruction in interface org.api4.java.common.reconstruction.IReconstructible
      • predict

        public org.api4.java.ai.ml.classification.multilabel.evaluation.IMultiLabelClassification predict​(org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance xTest)
                                                                                                   throws org.api4.java.ai.ml.core.exception.PredictionException,
                                                                                                          java.lang.InterruptedException
        Specified by:
        predict in interface org.api4.java.ai.ml.classification.multilabel.learner.IMultiLabelClassifier
        Specified by:
        predict in interface org.api4.java.ai.ml.core.learner.IPredictor<org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance,​org.api4.java.ai.ml.core.dataset.supervised.ILabeledDataset<? extends org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance>>
        Specified by:
        predict in class ai.libs.jaicore.ml.core.learner.ASupervisedLearner<org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance,​org.api4.java.ai.ml.core.dataset.supervised.ILabeledDataset<? extends org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance>,​org.api4.java.ai.ml.classification.multilabel.evaluation.IMultiLabelClassification,​org.api4.java.ai.ml.classification.multilabel.evaluation.IMultiLabelClassificationPredictionBatch>
        Throws:
        org.api4.java.ai.ml.core.exception.PredictionException
        java.lang.InterruptedException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object