Class AScikitLearnLearnerFactory
- java.lang.Object
-
- ai.libs.mlplan.multiclass.sklearn.AScikitLearnLearnerFactory
-
- All Implemented Interfaces:
ai.libs.jaicore.components.optimizingfactory.BaseFactory<ai.libs.jaicore.ml.scikitwrapper.ScikitLearnWrapper<org.api4.java.ai.ml.core.evaluation.IPrediction,org.api4.java.ai.ml.core.evaluation.IPredictionBatch>>,ai.libs.mlplan.core.ILearnerFactory<ai.libs.jaicore.ml.scikitwrapper.ScikitLearnWrapper<org.api4.java.ai.ml.core.evaluation.IPrediction,org.api4.java.ai.ml.core.evaluation.IPredictionBatch>>,org.api4.java.common.control.ILoggingCustomizable
- Direct Known Subclasses:
ATwoStepPipelineScikitLearnFactory,ScikitLearnRULFactory
public abstract class AScikitLearnLearnerFactory extends java.lang.Object implements ai.libs.mlplan.core.ILearnerFactory<ai.libs.jaicore.ml.scikitwrapper.ScikitLearnWrapper<org.api4.java.ai.ml.core.evaluation.IPrediction,org.api4.java.ai.ml.core.evaluation.IPredictionBatch>>, org.api4.java.common.control.ILoggingCustomizableThe SKLearnClassifierFactory takes a ground component instance and parses it into aScikitLearnWrapperas defined in the project jaicore-ml. This factory may be used in the context of HASCO, especially for ML-Plan.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringN_PREPROCESSOR
-
Constructor Summary
Constructors Constructor Description AScikitLearnLearnerFactory(ai.libs.jaicore.ml.core.EScikitLearnProblemType sklearnProblemType)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.StringextractSKLearnConstructInstruction(ai.libs.jaicore.components.model.ComponentInstance groundComponent, java.util.Set<java.lang.String> importSet)ai.libs.jaicore.ml.scikitwrapper.ScikitLearnWrapper<org.api4.java.ai.ml.core.evaluation.IPrediction,org.api4.java.ai.ml.core.evaluation.IPredictionBatch>getComponentInstantiation(ai.libs.jaicore.components.model.ComponentInstance groundComponent)java.lang.StringgetLoggerName()abstract java.lang.StringgetPipelineBuildString(ai.libs.jaicore.components.model.ComponentInstance groundComponent, java.util.Set<java.lang.String> importSet)voidsetLoggerName(java.lang.String name)voidsetPythonConfig(ai.libs.python.IPythonConfig pythonConfig)voidsetSeed(long seed)voidsetTimeout(org.api4.java.algorithm.Timeout timeout)
-
-
-
Field Detail
-
N_PREPROCESSOR
public static final java.lang.String N_PREPROCESSOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
getComponentInstantiation
public ai.libs.jaicore.ml.scikitwrapper.ScikitLearnWrapper<org.api4.java.ai.ml.core.evaluation.IPrediction,org.api4.java.ai.ml.core.evaluation.IPredictionBatch> getComponentInstantiation(ai.libs.jaicore.components.model.ComponentInstance groundComponent) throws ai.libs.jaicore.components.exceptions.ComponentInstantiationFailedException- Specified by:
getComponentInstantiationin interfaceai.libs.jaicore.components.optimizingfactory.BaseFactory<ai.libs.jaicore.ml.scikitwrapper.ScikitLearnWrapper<org.api4.java.ai.ml.core.evaluation.IPrediction,org.api4.java.ai.ml.core.evaluation.IPredictionBatch>>- Throws:
ai.libs.jaicore.components.exceptions.ComponentInstantiationFailedException
-
getPipelineBuildString
public abstract java.lang.String getPipelineBuildString(ai.libs.jaicore.components.model.ComponentInstance groundComponent, java.util.Set<java.lang.String> importSet)
-
extractSKLearnConstructInstruction
public java.lang.String extractSKLearnConstructInstruction(ai.libs.jaicore.components.model.ComponentInstance groundComponent, java.util.Set<java.lang.String> importSet)
-
getLoggerName
public java.lang.String getLoggerName()
- Specified by:
getLoggerNamein interfaceorg.api4.java.common.control.ILoggingCustomizable
-
setLoggerName
public void setLoggerName(java.lang.String name)
- Specified by:
setLoggerNamein interfaceorg.api4.java.common.control.ILoggingCustomizable
-
setPythonConfig
public void setPythonConfig(ai.libs.python.IPythonConfig pythonConfig)
-
setSeed
public void setSeed(long seed)
-
setTimeout
public void setTimeout(org.api4.java.algorithm.Timeout timeout)
-
-