Class MLPlanScikitLearnBuilder
- java.lang.Object
-
- ai.libs.mlplan.core.AMLPlanBuilder<ai.libs.jaicore.ml.scikitwrapper.ScikitLearnWrapper<org.api4.java.ai.ml.core.evaluation.IPrediction,org.api4.java.ai.ml.core.evaluation.IPredictionBatch>,MLPlanScikitLearnBuilder>
-
- ai.libs.mlplan.multiclass.sklearn.builder.MLPlanScikitLearnBuilder
-
- All Implemented Interfaces:
ai.libs.mlplan.core.IMLPlanBuilder<ai.libs.jaicore.ml.scikitwrapper.ScikitLearnWrapper<org.api4.java.ai.ml.core.evaluation.IPrediction,org.api4.java.ai.ml.core.evaluation.IPredictionBatch>,MLPlanScikitLearnBuilder>,org.api4.java.common.control.ILoggingCustomizable
public class MLPlanScikitLearnBuilder extends ai.libs.mlplan.core.AMLPlanBuilder<ai.libs.jaicore.ml.scikitwrapper.ScikitLearnWrapper<org.api4.java.ai.ml.core.evaluation.IPrediction,org.api4.java.ai.ml.core.evaluation.IPredictionBatch>,MLPlanScikitLearnBuilder>
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMLPlanScikitLearnBuilder(EMLPlanScikitLearnProblemType problemType)Creates a new ML-Plan Builder for scikit-learn.MLPlanScikitLearnBuilder(EMLPlanScikitLearnProblemType problemType, boolean skipSetupCheck)Creates a new ML-Plan Builder for scikit-learn.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ai.libs.mlplan.core.MLPlan<ai.libs.jaicore.ml.scikitwrapper.ScikitLearnWrapper<org.api4.java.ai.ml.core.evaluation.IPrediction,org.api4.java.ai.ml.core.evaluation.IPredictionBatch>>build()static MLPlanScikitLearnBuilderforClassification()static MLPlanScikitLearnBuilderforClassificationWithUnlimitedLength()static MLPlanScikitLearnBuilderforRegression()static MLPlanScikitLearnBuilderforRUL()AScikitLearnLearnerFactorygetLearnerFactory()MLPlanScikitLearnBuildergetSelf()MLPlanScikitLearnBuilderwithCandidateEvaluationTimeOut(org.api4.java.algorithm.Timeout timeout)MLPlanScikitLearnBuilderwithProblemType(ai.libs.mlplan.core.IProblemType<ai.libs.jaicore.ml.scikitwrapper.ScikitLearnWrapper<org.api4.java.ai.ml.core.evaluation.IPrediction,org.api4.java.ai.ml.core.evaluation.IPredictionBatch>> problemType)MLPlanScikitLearnBuilderwithSeed(long seed)-
Methods inherited from class ai.libs.mlplan.core.AMLPlanBuilder
build, checkPreconditionsForInitialization, getAlgorithmConfig, getCandidateEvaluationTimeOut, getComponentParameterConfigurations, getComponents, getDataset, getHASCOFactory, getLearnerEvaluationFactoryForSearchPhase, getLearnerEvaluationFactoryForSelectionPhase, getLoggerName, getMetricForSearchPhase, getMetricForSelectionPhase, getNodeEvaluationTimeOut, getPipelineValidityCheckingNodeEvaluator, getPortionOfDataReservedForSelectionPhase, getPreferredComponents, getPreferredNodeEvaluators, getRequestedInterface, getSafeGuardFactory, getSearchEvaluatorFactory, getSearchSelectionDatasetSplitter, getSearchSpaceConfigFile, getSelectionEvaluatorFactory, getTimeOut, getTimeoutPrecautionOffsetInSeconds, setLoggerName, withAlgorithmConfig, withAlgorithmConfigFile, withDataset, withDatasetSplitterForSearchSelectionSplit, withLearnerFactory, withMCCVBasedCandidateEvaluationInSearchPhase, withMCCVBasedCandidateEvaluationInSelectionPhase, withNodeEvaluationTimeOut, withNumCpus, withPerformanceMeasure, withPerformanceMeasureForSearchPhase, withPerformanceMeasureForSelectionPhase, withPipelineValidityCheckingNodeEvaluator, withPortionOfDataReservedForSelection, withPreferredComponents, withPreferredComponentsFile, withPreferredNodeEvaluator, withRequestedInterface, withSafeGuardFactory, withSearchFactory, withSearchPhaseEvaluatorFactory, withSearchSpaceConfigFile, withSelectionPhaseEvaluatorFactory, withTimeOut, withTimeoutPrecautionOffsetInSeconds
-
-
-
-
Constructor Detail
-
MLPlanScikitLearnBuilder
protected MLPlanScikitLearnBuilder(EMLPlanScikitLearnProblemType problemType) throws java.io.IOException
Creates a new ML-Plan Builder for scikit-learn.- Throws:
java.io.IOException- Thrown if configuration files cannot be read.
-
MLPlanScikitLearnBuilder
public MLPlanScikitLearnBuilder(EMLPlanScikitLearnProblemType problemType, boolean skipSetupCheck) throws java.io.IOException
Creates a new ML-Plan Builder for scikit-learn.- Parameters:
skipSetupCheck- Flag whether to skip the system's setup check, which examines whether the operating system has python installed in the required version and all the required python modules are installed.- Throws:
java.io.IOException- Thrown if configuration files cannot be read.
-
-
Method Detail
-
forClassification
public static MLPlanScikitLearnBuilder forClassification() throws java.io.IOException
- Throws:
java.io.IOException
-
forClassificationWithUnlimitedLength
public static MLPlanScikitLearnBuilder forClassificationWithUnlimitedLength() throws java.io.IOException
- Throws:
java.io.IOException
-
forRegression
public static MLPlanScikitLearnBuilder forRegression() throws java.io.IOException
- Throws:
java.io.IOException
-
forRUL
public static MLPlanScikitLearnBuilder forRUL() throws java.io.IOException
- Throws:
java.io.IOException
-
withProblemType
public MLPlanScikitLearnBuilder withProblemType(ai.libs.mlplan.core.IProblemType<ai.libs.jaicore.ml.scikitwrapper.ScikitLearnWrapper<org.api4.java.ai.ml.core.evaluation.IPrediction,org.api4.java.ai.ml.core.evaluation.IPredictionBatch>> problemType) throws java.io.IOException
- Overrides:
withProblemTypein classai.libs.mlplan.core.AMLPlanBuilder<ai.libs.jaicore.ml.scikitwrapper.ScikitLearnWrapper<org.api4.java.ai.ml.core.evaluation.IPrediction,org.api4.java.ai.ml.core.evaluation.IPredictionBatch>,MLPlanScikitLearnBuilder>- Throws:
java.io.IOException
-
withSeed
public MLPlanScikitLearnBuilder withSeed(long seed)
- Overrides:
withSeedin classai.libs.mlplan.core.AMLPlanBuilder<ai.libs.jaicore.ml.scikitwrapper.ScikitLearnWrapper<org.api4.java.ai.ml.core.evaluation.IPrediction,org.api4.java.ai.ml.core.evaluation.IPredictionBatch>,MLPlanScikitLearnBuilder>
-
withCandidateEvaluationTimeOut
public MLPlanScikitLearnBuilder withCandidateEvaluationTimeOut(org.api4.java.algorithm.Timeout timeout)
- Overrides:
withCandidateEvaluationTimeOutin classai.libs.mlplan.core.AMLPlanBuilder<ai.libs.jaicore.ml.scikitwrapper.ScikitLearnWrapper<org.api4.java.ai.ml.core.evaluation.IPrediction,org.api4.java.ai.ml.core.evaluation.IPredictionBatch>,MLPlanScikitLearnBuilder>
-
getLearnerFactory
public AScikitLearnLearnerFactory getLearnerFactory()
- Specified by:
getLearnerFactoryin interfaceai.libs.mlplan.core.IMLPlanBuilder<ai.libs.jaicore.ml.scikitwrapper.ScikitLearnWrapper<org.api4.java.ai.ml.core.evaluation.IPrediction,org.api4.java.ai.ml.core.evaluation.IPredictionBatch>,MLPlanScikitLearnBuilder>- Overrides:
getLearnerFactoryin classai.libs.mlplan.core.AMLPlanBuilder<ai.libs.jaicore.ml.scikitwrapper.ScikitLearnWrapper<org.api4.java.ai.ml.core.evaluation.IPrediction,org.api4.java.ai.ml.core.evaluation.IPredictionBatch>,MLPlanScikitLearnBuilder>
-
getSelf
public MLPlanScikitLearnBuilder getSelf()
-
build
public ai.libs.mlplan.core.MLPlan<ai.libs.jaicore.ml.scikitwrapper.ScikitLearnWrapper<org.api4.java.ai.ml.core.evaluation.IPrediction,org.api4.java.ai.ml.core.evaluation.IPredictionBatch>> build()
- Overrides:
buildin classai.libs.mlplan.core.AMLPlanBuilder<ai.libs.jaicore.ml.scikitwrapper.ScikitLearnWrapper<org.api4.java.ai.ml.core.evaluation.IPrediction,org.api4.java.ai.ml.core.evaluation.IPredictionBatch>,MLPlanScikitLearnBuilder>
-
-