public class LearningCurveExtrapolationEvaluator extends java.lang.Object implements IClassifierEvaluator, ai.libs.jaicore.basic.ILoggingCustomizable, ai.libs.jaicore.basic.events.IEventEmitter
| Constructor and Description |
|---|
LearningCurveExtrapolationEvaluator(int[] anchorpoints,
ISamplingAlgorithmFactory<IInstance,? extends ASamplingAlgorithm<IInstance>> samplingAlgorithmFactory,
IDataset<? extends IInstance> dataset,
double trainSplitForAnchorpointsMeasurement,
LearningCurveExtrapolationMethod extrapolationMethod,
long seed)
Create a classifier evaluator with learning curve extrapolation.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Double |
evaluate(weka.classifiers.Classifier classifier)
Computes the (estimated) measure of the classifier on the full dataset
|
java.lang.String |
getLoggerName() |
void |
registerListener(java.lang.Object listener)
Register observers for learning curve predictions (including estimates of the time)
|
void |
setFullDatasetSize(int fullDatasetSize) |
void |
setLoggerName(java.lang.String name) |
public LearningCurveExtrapolationEvaluator(int[] anchorpoints,
ISamplingAlgorithmFactory<IInstance,? extends ASamplingAlgorithm<IInstance>> samplingAlgorithmFactory,
IDataset<? extends IInstance> dataset,
double trainSplitForAnchorpointsMeasurement,
LearningCurveExtrapolationMethod extrapolationMethod,
long seed)
anchorpoints - Anchorpoints for the learning
curve extrapolation.samplingAlgorithmFactory - Subsampling factory to create a
subsampler for the samples at the given anchorpoints.dataset - Dataset to evaluate the classifier with.trainSplitForAnchorpointsMeasurement - Ratio to split the subsamples at
the anchorpoints into train and test.extrapolationMethod - Method to extrapolate a learning
curve from the accuracy
measurements at the anchorpoints.seed - Random seed.public void setFullDatasetSize(int fullDatasetSize)
public java.lang.Double evaluate(weka.classifiers.Classifier classifier)
throws java.lang.InterruptedException,
ai.libs.jaicore.basic.algorithm.exceptions.ObjectEvaluationFailedException
evaluate in interface ai.libs.jaicore.basic.IObjectEvaluator<weka.classifiers.Classifier,java.lang.Double>java.lang.InterruptedExceptionai.libs.jaicore.basic.algorithm.exceptions.ObjectEvaluationFailedExceptionpublic java.lang.String getLoggerName()
getLoggerName in interface ai.libs.jaicore.basic.ILoggingCustomizablepublic void setLoggerName(java.lang.String name)
setLoggerName in interface ai.libs.jaicore.basic.ILoggingCustomizablepublic void registerListener(java.lang.Object listener)
registerListener in interface ai.libs.jaicore.basic.events.IEventEmitterlistener -