Package ai.libs.mlplan.core
Class AbstractMLPlanBuilder<L extends 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>>,B extends AbstractMLPlanBuilder<L,B>>
- java.lang.Object
-
- ai.libs.mlplan.core.AbstractMLPlanBuilder<L,B>
-
- All Implemented Interfaces:
IMLPlanBuilder<L,B>,org.api4.java.common.control.ILoggingCustomizable
- Direct Known Subclasses:
MLPlanSimpleBuilder
public abstract class AbstractMLPlanBuilder<L extends 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>>,B extends AbstractMLPlanBuilder<L,B>> extends java.lang.Object implements IMLPlanBuilder<L,B>, org.api4.java.common.control.ILoggingCustomizable
The MLPlanBuilder helps to easily configure and initialize ML-Plan with specific parameter settings. For convenient use, the MLPlanBuilder also offers methods for initializing ML-Plan with default configuration to use ML-Plan for single label classification in combination with WEKA or scikit-learn or for multi-label classification in combination with MEKA and consequently with WEKA (for baselearners of multi-label reduction strategies).
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.api4.java.ai.ml.core.evaluation.supervised.loss.IDeterministicPredictionPerformanceMeasure<java.lang.Object,java.lang.Object>DEFAULT_PERFORMANCE_MEASUREprotected static intDEFAULT_SEARCH_NUM_MC_ITERATIONSprotected static doubleDEFAULT_SEARCH_TRAIN_FOLD_SIZEprotected static intDEFAULT_SELECTION_NUM_MC_ITERATIONSprotected static doubleDEFAULT_SELECTION_TRAIN_FOLD_SIZEprotected ai.libs.jaicore.ml.core.evaluation.evaluator.factory.ISupervisedLearnerEvaluatorFactory<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>>factoryForPipelineEvaluationInSearchPhaseprotected ai.libs.jaicore.ml.core.evaluation.evaluator.factory.ISupervisedLearnerEvaluatorFactory<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>>factoryForPipelineEvaluationInSelectionPhase
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractMLPlanBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MLPlan<L>build()Builds an ML-Plan object with the dataset provided earlier to this builder.MLPlan<L>build(org.api4.java.ai.ml.core.dataset.supervised.ILabeledDataset<?> dataset)Builds an ML-Plan object for the given dataset as input.voidcheckPreconditionsForInitialization()MLPlanClassifierConfiggetAlgorithmConfig()org.api4.java.algorithm.TimeoutgetCandidateEvaluationTimeOut()java.util.Map<ai.libs.hasco.model.Component,java.util.Map<ai.libs.hasco.model.Parameter,ai.libs.hasco.model.ParameterRefinementConfiguration>>getComponentParameterConfigurations()java.util.Collection<ai.libs.hasco.model.Component>getComponents()org.api4.java.ai.ml.core.dataset.supervised.ILabeledDataset<?>getDataset()ai.libs.hasco.variants.forwarddecomposition.HASCOViaFDFactorygetHASCOFactory()ai.libs.jaicore.ml.core.evaluation.evaluator.factory.ISupervisedLearnerEvaluatorFactory<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>>getLearnerEvaluationFactoryForSearchPhase()This is the factory that will be used to create the pipeline evaluators for evaluation during search timeai.libs.jaicore.ml.core.evaluation.evaluator.factory.ISupervisedLearnerEvaluatorFactory<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>>getLearnerEvaluationFactoryForSelectionPhase()This is the factory that will be used to create the pipeline evaluators for evaluation during selection timeILearnerFactory<L>getLearnerFactory()java.lang.StringgetLoggerName()org.api4.java.algorithm.TimeoutgetNodeEvaluationTimeOut()doublegetPortionOfDataReservedForSelectionPhase()java.lang.StringgetRequestedInterface()protected ai.libs.jaicore.ml.core.evaluation.evaluator.factory.ISupervisedLearnerEvaluatorFactory<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>>getSearchEvaluatorFactory()org.api4.java.ai.ml.core.dataset.splitter.IFoldSizeConfigurableRandomDatasetSplitter<org.api4.java.ai.ml.core.dataset.supervised.ILabeledDataset<? extends org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance>>getSearchSelectionDatasetSplitter()This is the splitter that splits the given input data into data for the search phase and for the selection phasejava.io.FilegetSearchSpaceConfigFile()protected ai.libs.jaicore.ml.core.evaluation.evaluator.factory.ISupervisedLearnerEvaluatorFactory<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>>getSelectionEvaluatorFactory()org.api4.java.algorithm.TimeoutgetTimeOut()voidprepareNodeEvaluatorInFactoryWithData()voidsetLoggerName(java.lang.String name)BwithAlgorithmConfig(MLPlanClassifierConfig config)Loads the MLPlanClassifierConfig with default values and replaces all properties according to the properties defined in the given config file.BwithAlgorithmConfigFile(java.io.File algorithmConfigFile)Loads the MLPlanClassifierConfig with default values and replaces all properties according to the properties defined in the given config file.BwithCandidateEvaluationTimeOut(org.api4.java.algorithm.Timeout timeout)BwithClassifierFactory(ILearnerFactory<L> classifierFactory)Set the classifier factory that translatesCompositionInstanceobjects to classifiers that can be evaluated.BwithDataset(org.api4.java.ai.ml.core.dataset.supervised.ILabeledDataset<?> dataset)Set the data for which ML-Plan is supposed to find the best pipeline.BwithDatasetSplitterForSearchSelectionSplit(org.api4.java.ai.ml.core.dataset.splitter.IFoldSizeConfigurableRandomDatasetSplitter<org.api4.java.ai.ml.core.dataset.supervised.ILabeledDataset<?>> datasetSplitter)Set the dataset splitter that is used for generating the holdout data portion that is put aside during search.ai.libs.jaicore.ml.core.evaluation.evaluator.factory.MonteCarloCrossValidationEvaluatorFactorywithMCCVBasedCandidateEvaluationInSearchPhase()ai.libs.jaicore.ml.core.evaluation.evaluator.factory.MonteCarloCrossValidationEvaluatorFactorywithMCCVBasedCandidateEvaluationInSelectionPhase()BwithNodeEvaluationTimeOut(org.api4.java.algorithm.Timeout timeout)BwithNumCpus(int numCpus)Sets the number of cpus that may be used by ML-Plan.BwithPipelineValidityCheckingNodeEvaluator(PipelineValidityCheckingNodeEvaluator ne)BwithPortionOfDataReservedForSelection(double value)BwithPreferredNodeEvaluator(org.api4.java.ai.graphsearch.problem.pathsearch.pathevaluation.IPathEvaluator<ai.libs.jaicore.planning.hierarchical.algorithms.forwarddecomposition.graphgenerators.tfd.TFDNode,java.lang.String,java.lang.Double> preferredNodeEvaluator)This ADDs a new preferred node evaluator; requires that the search will be a best-first search.BwithRandomCompletionBasedBestFirstSearch()BwithRequestedInterface(java.lang.String requestedInterface)BwithSearchFactory(org.api4.java.ai.graphsearch.problem.IOptimalPathInORGraphSearchFactory searchFactory, ai.libs.jaicore.basic.algorithm.reduction.AlgorithmicProblemReduction transformer)voidwithSearchPhaseEvaluatorFactory(ai.libs.jaicore.ml.core.evaluation.evaluator.factory.ISupervisedLearnerEvaluatorFactory<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>> evaluatorFactory)Sets the evaluator factory for the search phase.BwithSearchSpaceConfigFile(java.io.File searchSpaceConfig)Specify the search space in which ML-Plan is required to work.BwithSeed(long seed)BwithSelectionPhaseEvaluatorFactory(ai.libs.jaicore.ml.core.evaluation.evaluator.factory.ISupervisedLearnerEvaluatorFactory<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>> evaluatorFactory)Sets the evaluator factory for the selection phase.BwithTimeOut(org.api4.java.algorithm.Timeout timeout)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ai.libs.mlplan.core.IMLPlanBuilder
getSelf
-
-
-
-
Field Detail
-
DEFAULT_SEARCH_NUM_MC_ITERATIONS
protected static final int DEFAULT_SEARCH_NUM_MC_ITERATIONS
- See Also:
- Constant Field Values
-
DEFAULT_SEARCH_TRAIN_FOLD_SIZE
protected static final double DEFAULT_SEARCH_TRAIN_FOLD_SIZE
- See Also:
- Constant Field Values
-
DEFAULT_SELECTION_NUM_MC_ITERATIONS
protected static final int DEFAULT_SELECTION_NUM_MC_ITERATIONS
- See Also:
- Constant Field Values
-
DEFAULT_SELECTION_TRAIN_FOLD_SIZE
protected static final double DEFAULT_SELECTION_TRAIN_FOLD_SIZE
- See Also:
- Constant Field Values
-
DEFAULT_PERFORMANCE_MEASURE
protected static final org.api4.java.ai.ml.core.evaluation.supervised.loss.IDeterministicPredictionPerformanceMeasure<java.lang.Object,java.lang.Object> DEFAULT_PERFORMANCE_MEASURE
-
factoryForPipelineEvaluationInSearchPhase
protected ai.libs.jaicore.ml.core.evaluation.evaluator.factory.ISupervisedLearnerEvaluatorFactory<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>> factoryForPipelineEvaluationInSearchPhase
-
factoryForPipelineEvaluationInSelectionPhase
protected ai.libs.jaicore.ml.core.evaluation.evaluator.factory.ISupervisedLearnerEvaluatorFactory<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>> factoryForPipelineEvaluationInSelectionPhase
-
-
Method Detail
-
withPreferredNodeEvaluator
public B withPreferredNodeEvaluator(org.api4.java.ai.graphsearch.problem.pathsearch.pathevaluation.IPathEvaluator<ai.libs.jaicore.planning.hierarchical.algorithms.forwarddecomposition.graphgenerators.tfd.TFDNode,java.lang.String,java.lang.Double> preferredNodeEvaluator)
This ADDs a new preferred node evaluator; requires that the search will be a best-first search. It is possible to specify several preferred node evaluators, which will be ordered by the order in which they are specified. The latest given evaluator is the most preferred one.- Parameters:
preferredNodeEvaluator-- Returns:
-
withSearchFactory
public B withSearchFactory(org.api4.java.ai.graphsearch.problem.IOptimalPathInORGraphSearchFactory searchFactory, ai.libs.jaicore.basic.algorithm.reduction.AlgorithmicProblemReduction transformer)
-
withRandomCompletionBasedBestFirstSearch
public B withRandomCompletionBasedBestFirstSearch()
-
getComponents
public java.util.Collection<ai.libs.hasco.model.Component> getComponents() throws java.io.IOException- Throws:
java.io.IOException
-
getComponentParameterConfigurations
public java.util.Map<ai.libs.hasco.model.Component,java.util.Map<ai.libs.hasco.model.Parameter,ai.libs.hasco.model.ParameterRefinementConfiguration>> getComponentParameterConfigurations() throws java.io.IOException- Throws:
java.io.IOException
-
withAlgorithmConfigFile
public B withAlgorithmConfigFile(java.io.File algorithmConfigFile)
Loads the MLPlanClassifierConfig with default values and replaces all properties according to the properties defined in the given config file.- Parameters:
algorithmConfigFile- The file specifying the property values to replace the default configuration.- Returns:
- The MLPlanBuilder object.
- Throws:
java.io.IOException- An IOException is thrown if there are issues reading the config file.
-
withAlgorithmConfig
public B withAlgorithmConfig(MLPlanClassifierConfig config)
Loads the MLPlanClassifierConfig with default values and replaces all properties according to the properties defined in the given config file.- Parameters:
config- The algorithm configuration.- Returns:
- The MLPlanBuilder object.
- Throws:
java.io.IOException- An IOException is thrown if there are issues reading the config file.
-
withDataset
public B withDataset(org.api4.java.ai.ml.core.dataset.supervised.ILabeledDataset<?> dataset)
Set the data for which ML-Plan is supposed to find the best pipeline.- Parameters:
dataset- The dataset for which ML-Plan is to be run.- Returns:
- The builder object.
-
getDataset
public org.api4.java.ai.ml.core.dataset.supervised.ILabeledDataset<?> getDataset()
-
withSearchSpaceConfigFile
public B withSearchSpaceConfigFile(java.io.File searchSpaceConfig) throws java.io.IOException
Specify the search space in which ML-Plan is required to work.- Parameters:
searchSpaceConfig- The file of the search space configuration.- Returns:
- The builder object.
- Throws:
java.io.IOException- Thrown if the given file does not exist.
-
withClassifierFactory
public B withClassifierFactory(ILearnerFactory<L> classifierFactory)
Set the classifier factory that translatesCompositionInstanceobjects to classifiers that can be evaluated.- Parameters:
classifierFactory- The classifier factory to be used to translate CompositionInstance objects to classifiers.- Returns:
- The builder object.
-
withDatasetSplitterForSearchSelectionSplit
public B withDatasetSplitterForSearchSelectionSplit(org.api4.java.ai.ml.core.dataset.splitter.IFoldSizeConfigurableRandomDatasetSplitter<org.api4.java.ai.ml.core.dataset.supervised.ILabeledDataset<?>> datasetSplitter)
Set the dataset splitter that is used for generating the holdout data portion that is put aside during search.- Parameters:
datasetSplitter- The dataset splitter to be used.- Returns:
- The builder obect.
-
withRequestedInterface
public B withRequestedInterface(java.lang.String requestedInterface)
-
withTimeOut
public B withTimeOut(org.api4.java.algorithm.Timeout timeout)
- Parameters:
timeout- The timeout for ML-Plan to search for the best classifier.- Returns:
- The builder object.
-
getTimeOut
public org.api4.java.algorithm.Timeout getTimeOut()
- Returns:
- The timeout for ML-Plan to search for the best classifier.
-
withNodeEvaluationTimeOut
public B withNodeEvaluationTimeOut(org.api4.java.algorithm.Timeout timeout)
- Parameters:
timeout- The timeout for a single candidate evaluation.- Returns:
- The builder object.
-
getNodeEvaluationTimeOut
public org.api4.java.algorithm.Timeout getNodeEvaluationTimeOut()
- Returns:
- The timeout for ML-Plan to search for the best classifier.
-
withCandidateEvaluationTimeOut
public B withCandidateEvaluationTimeOut(org.api4.java.algorithm.Timeout timeout)
- Parameters:
timeout- The timeout for a single candidate evaluation.- Returns:
- The builder object.
-
getCandidateEvaluationTimeOut
public org.api4.java.algorithm.Timeout getCandidateEvaluationTimeOut()
- Returns:
- The timeout for ML-Plan to search for the best classifier.
-
withMCCVBasedCandidateEvaluationInSearchPhase
public ai.libs.jaicore.ml.core.evaluation.evaluator.factory.MonteCarloCrossValidationEvaluatorFactory withMCCVBasedCandidateEvaluationInSearchPhase()
-
withMCCVBasedCandidateEvaluationInSelectionPhase
public ai.libs.jaicore.ml.core.evaluation.evaluator.factory.MonteCarloCrossValidationEvaluatorFactory withMCCVBasedCandidateEvaluationInSelectionPhase()
-
getLearnerEvaluationFactoryForSearchPhase
public ai.libs.jaicore.ml.core.evaluation.evaluator.factory.ISupervisedLearnerEvaluatorFactory<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>> getLearnerEvaluationFactoryForSearchPhase()
Description copied from interface:IMLPlanBuilderThis is the factory that will be used to create the pipeline evaluators for evaluation during search time- Specified by:
getLearnerEvaluationFactoryForSearchPhasein interfaceIMLPlanBuilder<L extends 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>>,B extends AbstractMLPlanBuilder<L,B>>- Returns:
-
getLearnerEvaluationFactoryForSelectionPhase
public ai.libs.jaicore.ml.core.evaluation.evaluator.factory.ISupervisedLearnerEvaluatorFactory<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>> getLearnerEvaluationFactoryForSelectionPhase()
Description copied from interface:IMLPlanBuilderThis is the factory that will be used to create the pipeline evaluators for evaluation during selection time- Specified by:
getLearnerEvaluationFactoryForSelectionPhasein interfaceIMLPlanBuilder<L extends 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>>,B extends AbstractMLPlanBuilder<L,B>>- Returns:
-
withSearchPhaseEvaluatorFactory
public void withSearchPhaseEvaluatorFactory(ai.libs.jaicore.ml.core.evaluation.evaluator.factory.ISupervisedLearnerEvaluatorFactory<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>> evaluatorFactory)
Sets the evaluator factory for the search phase.- Parameters:
evaluatorFactory- The evaluator factory for the search phase.
-
getSearchEvaluatorFactory
protected ai.libs.jaicore.ml.core.evaluation.evaluator.factory.ISupervisedLearnerEvaluatorFactory<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>> getSearchEvaluatorFactory()
- Returns:
- The factory for the classifier evaluator of the search phase.
-
withSelectionPhaseEvaluatorFactory
public B withSelectionPhaseEvaluatorFactory(ai.libs.jaicore.ml.core.evaluation.evaluator.factory.ISupervisedLearnerEvaluatorFactory<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>> evaluatorFactory)
Sets the evaluator factory for the selection phase.- Parameters:
evaluatorFactory- The evaluator factory for the selection phase.- Returns:
- The builder object.
-
withNumCpus
public B withNumCpus(int numCpus)
Sets the number of cpus that may be used by ML-Plan.- Parameters:
numCpus- The number of cpus to use.- Returns:
- The builder object.
-
withSeed
public B withSeed(long seed)
-
getSelectionEvaluatorFactory
protected ai.libs.jaicore.ml.core.evaluation.evaluator.factory.ISupervisedLearnerEvaluatorFactory<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>> getSelectionEvaluatorFactory()
- Returns:
- The factory for the classifier evaluator of the selection phase.
-
getHASCOFactory
public ai.libs.hasco.variants.forwarddecomposition.HASCOViaFDFactory getHASCOFactory()
- Specified by:
getHASCOFactoryin interfaceIMLPlanBuilder<L extends 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>>,B extends AbstractMLPlanBuilder<L,B>>
-
getLearnerFactory
public ILearnerFactory<L> getLearnerFactory()
- Specified by:
getLearnerFactoryin interfaceIMLPlanBuilder<L extends 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>>,B extends AbstractMLPlanBuilder<L,B>>
-
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
-
getRequestedInterface
public java.lang.String getRequestedInterface()
- Specified by:
getRequestedInterfacein interfaceIMLPlanBuilder<L extends 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>>,B extends AbstractMLPlanBuilder<L,B>>
-
getSearchSelectionDatasetSplitter
public org.api4.java.ai.ml.core.dataset.splitter.IFoldSizeConfigurableRandomDatasetSplitter<org.api4.java.ai.ml.core.dataset.supervised.ILabeledDataset<? extends org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance>> getSearchSelectionDatasetSplitter()
Description copied from interface:IMLPlanBuilderThis is the splitter that splits the given input data into data for the search phase and for the selection phase- Specified by:
getSearchSelectionDatasetSplitterin interfaceIMLPlanBuilder<L extends 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>>,B extends AbstractMLPlanBuilder<L,B>>- Returns:
-
getSearchSpaceConfigFile
public java.io.File getSearchSpaceConfigFile()
- Specified by:
getSearchSpaceConfigFilein interfaceIMLPlanBuilder<L extends 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>>,B extends AbstractMLPlanBuilder<L,B>>
-
getAlgorithmConfig
public MLPlanClassifierConfig getAlgorithmConfig()
- Specified by:
getAlgorithmConfigin interfaceIMLPlanBuilder<L extends 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>>,B extends AbstractMLPlanBuilder<L,B>>
-
withPipelineValidityCheckingNodeEvaluator
public B withPipelineValidityCheckingNodeEvaluator(PipelineValidityCheckingNodeEvaluator ne)
-
prepareNodeEvaluatorInFactoryWithData
public void prepareNodeEvaluatorInFactoryWithData()
-
withPortionOfDataReservedForSelection
public B withPortionOfDataReservedForSelection(double value)
-
getPortionOfDataReservedForSelectionPhase
public double getPortionOfDataReservedForSelectionPhase()
- Specified by:
getPortionOfDataReservedForSelectionPhasein interfaceIMLPlanBuilder<L extends 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>>,B extends AbstractMLPlanBuilder<L,B>>
-
build
public MLPlan<L> build(org.api4.java.ai.ml.core.dataset.supervised.ILabeledDataset<?> dataset)
Builds an ML-Plan object for the given dataset as input.- Parameters:
dataset- The dataset for which an ML-Plan object is to be built.- Returns:
- The ML-Plan object configured with this builder.
-
checkPreconditionsForInitialization
public void checkPreconditionsForInitialization()
-
-