Package ai.libs.jaicore.ml.scikitwrapper
Class ScikitLearnClassificationWrapper
- java.lang.Object
-
- 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>,P,B>
-
- ai.libs.jaicore.ml.scikitwrapper.AScikitLearnWrapper<org.api4.java.ai.ml.classification.singlelabel.evaluation.ISingleLabelClassification,org.api4.java.ai.ml.classification.singlelabel.evaluation.ISingleLabelClassificationPredictionBatch>
-
- ai.libs.jaicore.ml.scikitwrapper.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>
-
-
Field Summary
-
Fields inherited from class ai.libs.jaicore.ml.scikitwrapper.AScikitLearnWrapper
configurationUID, data, logger, modelFile, pipeline, problemType, PYTHON_MINIMUM_REQUIRED_VERSION_MAJ, PYTHON_MINIMUM_REQUIRED_VERSION_MIN, PYTHON_MINIMUM_REQUIRED_VERSION_REL, PYTHON_OPTIONAL_MODULES, PYTHON_REQUIRED_MODULES, pythonConfig, scikitLearnWrapperConfig, seed, targetIndices, timeout
-
-
Constructor Summary
Constructors Constructor Description ScikitLearnClassificationWrapper(java.lang.String pipeline, java.lang.String imports)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleandoLabelsFitToProblemType(org.api4.java.ai.ml.core.dataset.supervised.ILabeledDataset<? extends org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance> data)protected org.api4.java.ai.ml.classification.singlelabel.evaluation.ISingleLabelClassificationPredictionBatchhandleOutput(java.io.File outputFile)-
Methods inherited from class ai.libs.jaicore.ml.scikitwrapper.AScikitLearnWrapper
constructCommandLineParametersForFitAndPredictMode, constructCommandLineParametersForFitMode, constructCommandLineParametersForPredictMode, fit, fit, fitAndPredict, fitAndPredict, getCommandBuilder, getCommandBuilder, getDataName, getLoggerName, getModelFile, getModelFileName, getModelPath, getOutputFile, getRawPredictionResults, getSKLearnScriptFile, predict, predict, predict, predict, setLoggerName, setModelPath, setPythonConfig, setPythonTemplate, setScikitLearnWrapperConfig, setSeed, setTargetIndices, setTimeout, toString
-
Methods inherited from class ai.libs.jaicore.ml.core.learner.ASupervisedLearner
fitAndPredict, fitAndPredict, getConfig, setConfig
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
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:
doLabelsFitToProblemTypein classAScikitLearnWrapper<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:
handleOutputin classAScikitLearnWrapper<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.PredictionExceptionorg.api4.java.ai.ml.core.exception.TrainingException
-
-