Class ATSCAlgorithm<Y,D extends TimeSeriesDataset,C extends ATimeSeriesClassificationModel<Y,D>>
- java.lang.Object
-
- ai.libs.jaicore.ml.classification.singlelabel.timeseries.learner.ATSCAlgorithm<Y,D,C>
-
- Type Parameters:
Y- 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:
java.lang.Iterable<org.api4.java.algorithm.events.IAlgorithmEvent>,java.util.concurrent.Callable<C>,java.util.Iterator<org.api4.java.algorithm.events.IAlgorithmEvent>,org.api4.java.algorithm.IAlgorithm<TimeSeriesDataset,C>,org.api4.java.common.control.ICancelable
public abstract class ATSCAlgorithm<Y,D extends TimeSeriesDataset,C extends ATimeSeriesClassificationModel<Y,D>> extends java.lang.Object implements org.api4.java.algorithm.IAlgorithm<TimeSeriesDataset,C>
Abstract algorithm class which is able to takeTimeSeriesDatasetobjects and buildsATimeSeriesClassificationModelinstances 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 ATimeSeriesClassificationModel<Y,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 ATimeSeriesClassificationModel<Y,D> model
The model which is maintained during algorithm calls
-
input
protected D extends TimeSeriesDataset input
TheTimeSeriesDatasetobject used for maintaining themodel.
-
-
Method Detail
-
setModel
public <T extends ATimeSeriesClassificationModel<Y,D>> void setModel(T model)
Setter for the model to be maintained.- Parameters:
model- TheATimeSeriesClassificationModelmodel 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
-
getInput
public D getInput()
Getter for the data set input used during algorithm calls.- Specified by:
getInputin interfaceorg.api4.java.algorithm.IAlgorithm<Y,D extends TimeSeriesDataset>
-
-