Package ai.libs.jaicore.experiments
Class ExperimentDatabasePreparer
- java.lang.Object
-
- ai.libs.jaicore.experiments.ExperimentDatabasePreparer
-
- All Implemented Interfaces:
org.api4.java.common.control.ILoggingCustomizable
public class ExperimentDatabasePreparer extends java.lang.Object implements org.api4.java.common.control.ILoggingCustomizable
-
-
Constructor Summary
Constructors Constructor Description ExperimentDatabasePreparer(IExperimentSetConfig config, IExperimentDatabaseHandle databaseHandle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExperimentSetAnalyzergetConfigAnalyzer()IExperimentDatabaseHandlegetHandle()java.lang.StringgetLoggerName()java.util.List<ExperimentDBEntry>installSubGridOfExperiments(int numberOfExperiments)Installs not all but only a sub-sample of the defined experiments.voidsetLoggerName(java.lang.String name)java.util.List<ExperimentDBEntry>synchronizeExperiments()Creates all experiments in the database that should exist with respect to the configuration but have not been created yet.
-
-
-
Constructor Detail
-
ExperimentDatabasePreparer
public ExperimentDatabasePreparer(IExperimentSetConfig config, IExperimentDatabaseHandle databaseHandle)
-
-
Method Detail
-
installSubGridOfExperiments
public java.util.List<ExperimentDBEntry> installSubGridOfExperiments(int numberOfExperiments) throws org.api4.java.algorithm.exceptions.AlgorithmTimeoutedException, IllegalExperimentSetupException, java.lang.InterruptedException, org.api4.java.algorithm.exceptions.AlgorithmExecutionCanceledException, ExperimentDBInteractionFailedException, ExperimentAlreadyExistsInDatabaseException
Installs not all but only a sub-sample of the defined experiments. The experiments are sampled based on Latin Hypercube sampling.- Parameters:
numberOfExperiments-- Returns:
- Throws:
org.api4.java.algorithm.exceptions.AlgorithmExecutionCanceledExceptionjava.lang.InterruptedExceptionIllegalExperimentSetupExceptionorg.api4.java.algorithm.exceptions.AlgorithmTimeoutedExceptionExperimentAlreadyExistsInDatabaseExceptionExperimentDBInteractionFailedException
-
synchronizeExperiments
public java.util.List<ExperimentDBEntry> synchronizeExperiments() throws ExperimentDBInteractionFailedException, IllegalExperimentSetupException, ExperimentAlreadyExistsInDatabaseException, org.api4.java.algorithm.exceptions.AlgorithmTimeoutedException, java.lang.InterruptedException, org.api4.java.algorithm.exceptions.AlgorithmExecutionCanceledException
Creates all experiments in the database that should exist with respect to the configuration but have not been created yet.- Returns:
- Throws:
ExperimentDBInteractionFailedExceptionIllegalExperimentSetupExceptionExperimentAlreadyExistsInDatabaseExceptionorg.api4.java.algorithm.exceptions.AlgorithmTimeoutedExceptionjava.lang.InterruptedExceptionorg.api4.java.algorithm.exceptions.AlgorithmExecutionCanceledException
-
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
-
getConfigAnalyzer
public ExperimentSetAnalyzer getConfigAnalyzer()
-
getHandle
public IExperimentDatabaseHandle getHandle()
-
-