Class ShotgunEnsembleLearnerAlgorithm
- java.lang.Object
-
- ai.libs.jaicore.basic.algorithm.AAlgorithm<TimeSeriesDataset2,C>
-
- ai.libs.jaicore.ml.classification.singlelabel.timeseries.learner.ASimplifiedTSCLearningAlgorithm<java.lang.Integer,ShotgunEnsembleClassifier>
-
- ai.libs.jaicore.ml.classification.singlelabel.timeseries.learner.neighbors.ShotgunEnsembleLearnerAlgorithm
-
- All Implemented Interfaces:
java.lang.Iterable<org.api4.java.algorithm.events.IAlgorithmEvent>,java.util.concurrent.Callable<ShotgunEnsembleClassifier>,java.util.Iterator<org.api4.java.algorithm.events.IAlgorithmEvent>,org.api4.java.algorithm.IAlgorithm<TimeSeriesDataset2,ShotgunEnsembleClassifier>,org.api4.java.common.control.ICancelable,org.api4.java.common.control.ILoggingCustomizable
public class ShotgunEnsembleLearnerAlgorithm extends ASimplifiedTSCLearningAlgorithm<java.lang.Integer,ShotgunEnsembleClassifier>
Implementation of Shotgun Ensemble Algorihm as published in "Towards Time Series Classfication without Human Preprocessing" by Patrick Schäfer (2014). Given a maximal window lengthmaxWindowLengthand a minumum window lengthminWindowLength, the Shotgun Ensemble algorithm determines for each of the window lengths formmaxWindowLengthdowntominWindowLengththe number of correct predicitions on the training data using the leave-one-out technique.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceShotgunEnsembleLearnerAlgorithm.IShotgunEnsembleLearnerConfig
-
Constructor Summary
Constructors Constructor Description ShotgunEnsembleLearnerAlgorithm(ShotgunEnsembleLearnerAlgorithm.IShotgunEnsembleLearnerConfig config, ShotgunEnsembleClassifier classifier, TimeSeriesDataset2 dataset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ShotgunEnsembleClassifiercall()ShotgunEnsembleLearnerAlgorithm.IShotgunEnsembleLearnerConfiggetConfig()org.api4.java.algorithm.events.IAlgorithmEventnextWithException()-
Methods inherited from class ai.libs.jaicore.ml.classification.singlelabel.timeseries.learner.ASimplifiedTSCLearningAlgorithm
cancel, getClassifier, hasNext, iterator, next, registerListener
-
Methods inherited from class ai.libs.jaicore.basic.algorithm.AAlgorithm
activate, announceTimeoutDetected, avoidReinterruptionOnShutdownOnCurrentThread, checkAndConductTermination, checkTermination, computeTimeoutAware, getActivationTime, getId, getInput, getLoggerName, getNumCPUs, getRemainingTimeToDeadline, getState, getTimeout, getTimeoutPrecautionOffset, hasThreadBeenInterruptedDuringShutdown, interruptThreadAsPartOfShutdown, isCanceled, isShutdownInitialized, isStopCriterionSatisfied, isTimeouted, post, registerActiveThread, resolveShutdownInterruptOnCurrentThread, setConfig, setDeadline, setLoggerName, setMaxNumThreads, setNumCPUs, setState, setTimeout, setTimeout, setTimeoutPrecautionOffset, shutdown, terminate, unregisterActiveThread, unregisterThreadAndShutdown
-
-
-
-
Constructor Detail
-
ShotgunEnsembleLearnerAlgorithm
public ShotgunEnsembleLearnerAlgorithm(ShotgunEnsembleLearnerAlgorithm.IShotgunEnsembleLearnerConfig config, ShotgunEnsembleClassifier classifier, TimeSeriesDataset2 dataset)
-
-
Method Detail
-
nextWithException
public org.api4.java.algorithm.events.IAlgorithmEvent nextWithException()
Description copied from class:ASimplifiedTSCLearningAlgorithm- Specified by:
nextWithExceptionin interfaceorg.api4.java.algorithm.IAlgorithm<TimeSeriesDataset2,ShotgunEnsembleClassifier>- Overrides:
nextWithExceptionin classASimplifiedTSCLearningAlgorithm<java.lang.Integer,ShotgunEnsembleClassifier>
-
getConfig
public ShotgunEnsembleLearnerAlgorithm.IShotgunEnsembleLearnerConfig getConfig()
- Specified by:
getConfigin interfaceorg.api4.java.algorithm.IAlgorithm<TimeSeriesDataset2,ShotgunEnsembleClassifier>- Overrides:
getConfigin classai.libs.jaicore.basic.algorithm.AAlgorithm<TimeSeriesDataset2,ShotgunEnsembleClassifier>
-
call
public ShotgunEnsembleClassifier call() throws org.api4.java.algorithm.exceptions.AlgorithmException
- Throws:
org.api4.java.algorithm.exceptions.AlgorithmException
-
-