Class ScikitLearnClassificationWrapper

  • All Implemented Interfaces:
    IScikitLearnWrapper, 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.control.ILoggingCustomizable

    public class ScikitLearnClassificationWrapper
    extends AScikitLearnWrapper<org.api4.java.ai.ml.classification.singlelabel.evaluation.ISingleLabelClassification,​org.api4.java.ai.ml.classification.singlelabel.evaluation.ISingleLabelClassificationPredictionBatch>
    • Constructor Detail

      • ScikitLearnClassificationWrapper

        public ScikitLearnClassificationWrapper​(java.lang.String pipeline,
                                                java.lang.String imports)
                                         throws java.io.IOException,
                                                java.lang.InterruptedException
        Throws:
        java.io.IOException
        java.lang.InterruptedException
    • Method Detail

      • doLabelsFitToProblemType

        protected boolean doLabelsFitToProblemType​(org.api4.java.ai.ml.core.dataset.supervised.ILabeledDataset<? extends org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance> data)
        Specified by:
        doLabelsFitToProblemType in class AScikitLearnWrapper<org.api4.java.ai.ml.classification.singlelabel.evaluation.ISingleLabelClassification,​org.api4.java.ai.ml.classification.singlelabel.evaluation.ISingleLabelClassificationPredictionBatch>
      • handleOutput

        protected org.api4.java.ai.ml.classification.singlelabel.evaluation.ISingleLabelClassificationPredictionBatch handleOutput​(java.io.File outputFile)
                                                                                                                            throws org.api4.java.ai.ml.core.exception.PredictionException,
                                                                                                                                   org.api4.java.ai.ml.core.exception.TrainingException
        Specified by:
        handleOutput in class AScikitLearnWrapper<org.api4.java.ai.ml.classification.singlelabel.evaluation.ISingleLabelClassification,​org.api4.java.ai.ml.classification.singlelabel.evaluation.ISingleLabelClassificationPredictionBatch>
        Throws:
        org.api4.java.ai.ml.core.exception.PredictionException
        org.api4.java.ai.ml.core.exception.TrainingException