public class ActiveLearningOptimizer extends BaseOptimizer
This implementation uses one uses a CompositeRegression model. The
variance between the predictions of the submodels defines the accuracy of the prediction, which
can also be used when selecting entries.
Usage: <Random fraction> <Worst fraction>
Implemented Commands:
set model $<model> - Define group of models to train during optimization
Modifier and Type | Field and Description |
---|---|
protected CompositeRegression |
Model
Internal model used to make predictions
|
protected double |
RandomFraction
Fraction of new entries to select randomly
|
protected double |
WorstFraction
Fraction of entries to select from the worst predictions
|
CurrentIteration, EntriesPerGeneration, HasStarted, InitialData, MaxIteration, ObjectiveFunction, Oracle, PrintStatus, SearchSpace, Statistics
Constructor and Description |
---|
ActiveLearningOptimizer() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkComponents()
Check if all of the necessary components are loaded
|
protected Dataset |
getNewCandidates()
Based on the current optimization state, return a list of new candidate entries
|
java.lang.String |
printUsage()
Print out required format for options.
|
protected void |
setComponent(java.util.List<java.lang.Object> Command)
Set a specific component or setting of an optimizer.
|
void |
setModel(CompositeRegression model)
Define the model used to perform the active learning
|
void |
setOptions(java.util.List Options)
Set any options for this object.
|
void |
setRandomFraction(double RandomFraction)
Define what fraction of new entries should be randomly selected.
|
void |
setWorstFraction(double WorstFraction)
Define what fraction of new entries are to come from entries with the
least-reliable predictions
|
about, checkIfReady, clone, currentIteration, errorIfStarted, evaluate, getEmptyDataset, getFullDataset, getFullSet, getGeneration, getInitialData, getObjectiveFunction, getSearchSpace, hasStarted, maximumIterations, printCommand, printDescription, run, runCommand, runStatisticsCommand, runWriteCommand, setEntriesPerGeneration, setInitialData, setMaxIterations, setObjectiveFunction, setOracle, setSearchSpace
protected CompositeRegression Model
protected double RandomFraction
protected double WorstFraction
public void setOptions(java.util.List Options) throws java.lang.Exception
Options
Options
- Array of options as Objects - can be null
java.lang.Exception
- if problem with inputspublic java.lang.String printUsage()
Options
public void setWorstFraction(double WorstFraction) throws java.lang.Exception
WorstFraction
- Desired fractionjava.lang.Exception
- If fraction is out of rangepublic void setRandomFraction(double RandomFraction) throws java.lang.Exception
RandomFraction
- Desired fractionjava.lang.Exception
- If fraction is out of rangepublic void setModel(CompositeRegression model) throws java.lang.Exception
model
- Desired modeljava.lang.Exception
- If model does not contain any submodelsprotected void checkComponents() throws java.lang.Exception
BaseOptimizer
checkComponents
in class BaseOptimizer
java.lang.Exception
- Tells the first unset component that was encounteredprotected Dataset getNewCandidates()
BaseOptimizer
getNewCandidates
in class BaseOptimizer
protected void setComponent(java.util.List<java.lang.Object> Command) throws java.lang.Exception
BaseOptimizer
setComponent
in class BaseOptimizer
Command
- Setting command to be processedjava.lang.Exception