Package ai.libs.mlplan.bigdata
Class MLPlan4BigFileInput
- java.lang.Object
-
- ai.libs.jaicore.basic.algorithm.AAlgorithm<java.io.File,weka.classifiers.Classifier>
-
- ai.libs.mlplan.bigdata.MLPlan4BigFileInput
-
- All Implemented Interfaces:
java.lang.Iterable<org.api4.java.algorithm.events.IAlgorithmEvent>,java.util.concurrent.Callable<weka.classifiers.Classifier>,java.util.Iterator<org.api4.java.algorithm.events.IAlgorithmEvent>,org.api4.java.algorithm.IAlgorithm<java.io.File,weka.classifiers.Classifier>,org.api4.java.common.control.ICancelable,org.api4.java.common.control.ILoggingCustomizable
public class MLPlan4BigFileInput extends ai.libs.jaicore.basic.algorithm.AAlgorithm<java.io.File,weka.classifiers.Classifier> implements org.api4.java.common.control.ILoggingCustomizableThis is a version of ML-Plan that tries to cope with medium sized data in the sense of big files. That is, the data is still enough to be organized in a single file such that no streaming is required. The data is, however, in general too large to be entirely loaded into memory. We use simple sampling to create a relatively small subset of the data, then run info gain, and then ML-Plan with learning curve prediction.
-
-
Constructor Summary
Constructors Constructor Description MLPlan4BigFileInput(java.io.File input)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description weka.classifiers.Classifiercall()java.lang.StringgetLoggerName()org.api4.java.algorithm.events.IAlgorithmEventnextWithException()voidreceiveClassifierCreatedEvent(ai.libs.mlplan.core.events.SupervisedLearnerCreatedEvent e)voidreceiveExtrapolationFinishedEvent(ai.libs.jaicore.ml.functionprediction.learner.learningcurveextrapolation.LearningCurveExtrapolatedEvent e)voidreceiveMCCVFinishedEvent(ai.libs.jaicore.ml.core.evaluation.evaluator.events.MCCVSplitEvaluationEvent e)voidsetLoggerName(java.lang.String loggerName)-
Methods inherited from class ai.libs.jaicore.basic.algorithm.AAlgorithm
activate, announceTimeoutDetected, avoidReinterruptionOnShutdownOnCurrentThread, cancel, checkAndConductTermination, checkTermination, computeTimeoutAware, getActivationTime, getConfig, getId, getInput, getListeners, getNumCPUs, getRemainingTimeToDeadline, getState, getTimeout, getTimeoutPrecautionOffset, hasNext, hasThreadBeenInterruptedDuringShutdown, interruptThreadAsPartOfShutdown, isCanceled, isShutdownInitialized, isStopCriterionSatisfied, isTimeouted, iterator, next, post, registerActiveThread, registerListener, resolveShutdownInterruptOnCurrentThread, setConfig, setDeadline, setMaxNumThreads, setNumCPUs, setState, setTimeout, setTimeout, setTimeoutPrecautionOffset, shutdown, terminate, unregisterActiveThread, unregisterThreadAndShutdown
-
-
-
-
Method Detail
-
nextWithException
public org.api4.java.algorithm.events.IAlgorithmEvent nextWithException() throws java.lang.InterruptedException, org.api4.java.algorithm.exceptions.AlgorithmExecutionCanceledException, org.api4.java.algorithm.exceptions.AlgorithmTimeoutedException, org.api4.java.algorithm.exceptions.AlgorithmException- Specified by:
nextWithExceptionin interfaceorg.api4.java.algorithm.IAlgorithm<java.io.File,weka.classifiers.Classifier>- Throws:
java.lang.InterruptedExceptionorg.api4.java.algorithm.exceptions.AlgorithmExecutionCanceledExceptionorg.api4.java.algorithm.exceptions.AlgorithmTimeoutedExceptionorg.api4.java.algorithm.exceptions.AlgorithmException
-
receiveClassifierCreatedEvent
public void receiveClassifierCreatedEvent(ai.libs.mlplan.core.events.SupervisedLearnerCreatedEvent e)
-
receiveExtrapolationFinishedEvent
public void receiveExtrapolationFinishedEvent(ai.libs.jaicore.ml.functionprediction.learner.learningcurveextrapolation.LearningCurveExtrapolatedEvent e)
-
receiveMCCVFinishedEvent
public void receiveMCCVFinishedEvent(ai.libs.jaicore.ml.core.evaluation.evaluator.events.MCCVSplitEvaluationEvent e)
-
call
public weka.classifiers.Classifier call() throws java.lang.InterruptedException, org.api4.java.algorithm.exceptions.AlgorithmExecutionCanceledException, org.api4.java.algorithm.exceptions.AlgorithmTimeoutedException, org.api4.java.algorithm.exceptions.AlgorithmException- Specified by:
callin interfacejava.util.concurrent.Callable<weka.classifiers.Classifier>- Specified by:
callin interfaceorg.api4.java.algorithm.IAlgorithm<java.io.File,weka.classifiers.Classifier>- Throws:
java.lang.InterruptedExceptionorg.api4.java.algorithm.exceptions.AlgorithmExecutionCanceledExceptionorg.api4.java.algorithm.exceptions.AlgorithmTimeoutedExceptionorg.api4.java.algorithm.exceptions.AlgorithmException
-
setLoggerName
public void setLoggerName(java.lang.String loggerName)
- Specified by:
setLoggerNamein interfaceorg.api4.java.common.control.ILoggingCustomizable- Overrides:
setLoggerNamein classai.libs.jaicore.basic.algorithm.AAlgorithm<java.io.File,weka.classifiers.Classifier>
-
getLoggerName
public java.lang.String getLoggerName()
- Specified by:
getLoggerNamein interfaceorg.api4.java.common.control.ILoggingCustomizable- Overrides:
getLoggerNamein classai.libs.jaicore.basic.algorithm.AAlgorithm<java.io.File,weka.classifiers.Classifier>
-
-