Class ATSCAlgorithm<L,V,D extends TimeSeriesDataset<L>,C extends TSClassifier<L,V,D>>
- java.lang.Object
-
- ai.libs.jaicore.ml.tsc.classifier.ATSCAlgorithm<L,V,D,C>
-
- Type Parameters:
L- The type of the target that theto be trained V- The value type of the target that theto be trained predicts. D- The type of the time series data set used to learn from and predict batches.C- The time series classifier which is modified and returned as algorithm result.
- All Implemented Interfaces:
ai.libs.jaicore.basic.algorithm.IAlgorithm<TimeSeriesDataset<L>,C>,ai.libs.jaicore.basic.Cancelable,java.lang.Iterable<ai.libs.jaicore.basic.algorithm.events.AlgorithmEvent>,java.util.concurrent.Callable<C>,java.util.Iterator<ai.libs.jaicore.basic.algorithm.events.AlgorithmEvent>
public abstract class ATSCAlgorithm<L,V,D extends TimeSeriesDataset<L>,C extends TSClassifier<L,V,D>> extends java.lang.Object implements ai.libs.jaicore.basic.algorithm.IAlgorithm<TimeSeriesDataset<L>,C>
Abstract algorithm class which is able to takeTimeSeriesDatasetobjects and buildsTSClassifierinstances specified by the generic parameter.
-
-
Field Summary
Fields Modifier and Type Field Description protected DinputTheTimeSeriesDatasetobject used for maintaining themodel.protected CmodelThe model which is maintained during algorithm calls
-
Constructor Summary
Constructors Constructor Description ATSCAlgorithm()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DgetInput()Getter for the data set input used during algorithm calls.voidsetInput(D input)Setter for the data set input used during algorithm calls.<T extends TSClassifier<L,V,D>>
voidsetModel(T model)Setter for the model to be maintained.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Field Detail
-
model
protected C extends TSClassifier<L,V,D> model
The model which is maintained during algorithm calls
-
input
protected D extends TimeSeriesDataset<L> input
TheTimeSeriesDatasetobject used for maintaining themodel.
-
-
Method Detail
-
setModel
public <T extends TSClassifier<L,V,D>> void setModel(T model)
Setter for the model to be maintained.- Parameters:
model- TheTSClassifiermodel which is maintained during algorithm calls.
-
setInput
public void setInput(D input)
Setter for the data set input used during algorithm calls.- Parameters:
input- TheTimeSeriesDatasetobject (or a subtype) used for the model maintenance
-
-