L - The attribute type of the target.V - The value type of the target attribute.D - The type of the time series data set used to learn from and
predict batches.public abstract class TSClassifier<L,V,D extends TimeSeriesDataset<L>> extends ABatchLearner<L,V,TimeSeriesInstance<L>,D>
algorithm to train the model parameters (if necessary).| Modifier and Type | Field and Description |
|---|---|
protected ATSCAlgorithm<L,V,D,? extends TSClassifier<L,V,D>> |
algorithm
The algorithm object used for the training of the classifier.
|
| Constructor and Description |
|---|
TSClassifier(ATSCAlgorithm<L,V,D,? extends TSClassifier<L,V,D>> algorithm)
Constructor for a time series classifier.
|
| Modifier and Type | Method and Description |
|---|---|
ATSCAlgorithm<L,V,D,? extends IBatchLearner<V,TimeSeriesInstance<L>,D>> |
getAlgorithm()
Getter for the model's training algorithm object.
|
IPredictiveModelConfiguration |
getConfiguration()
Returns the
IPredictiveModelConfiguration of this model. |
java.util.List<V> |
predict(D dataset)
Performs multiple predictions based on the
IInstances contained in
the given AILabeledAttributeArrayDatasets and returns the result. |
void |
setAlgorithm(ATSCAlgorithm<L,V,D,? extends IBatchLearner<V,TimeSeriesInstance<L>,D>> algorithm)
Sets the training algorithm for the classifier.
|
void |
setConfiguration(IPredictiveModelConfiguration configuration)
Sets the
IPredictiveModelConfiguration of this model to the given
one. |
void |
train(D dataset)
Trains this
IBatchLearner using the given AILabeledAttributeArrayDataset. |
getTargetType, setTargetTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpredictprotected ATSCAlgorithm<L,V,D extends TimeSeriesDataset<L>,? extends TSClassifier<L,V,D extends TimeSeriesDataset<L>>> algorithm
public TSClassifier(ATSCAlgorithm<L,V,D,? extends TSClassifier<L,V,D>> algorithm)
algorithm - The algorithm object used for the training of the classifierpublic void train(D dataset) throws TrainingException
IBatchLearner using the given AILabeledAttributeArrayDataset.dataset - The AILabeledAttributeArrayDataset which should be used for the training.TrainingException - If something fails during the training process.public ATSCAlgorithm<L,V,D,? extends IBatchLearner<V,TimeSeriesInstance<L>,D>> getAlgorithm()
public void setAlgorithm(ATSCAlgorithm<L,V,D,? extends IBatchLearner<V,TimeSeriesInstance<L>,D>> algorithm)
algorithm - The algorithm object used to maintain the model's parameters.public java.util.List<V> predict(D dataset) throws PredictionException
IInstances contained in
the given AILabeledAttributeArrayDatasets and returns the result.dataset - The AILabeledAttributeArrayDataset for which predictions should be made.PredictionException - If something fails during the prediction process.public IPredictiveModelConfiguration getConfiguration()
IPredictiveModelConfiguration of this model.IPredictiveModelConfiguration of this model.public void setConfiguration(IPredictiveModelConfiguration configuration) throws ConfigurationException
IPredictiveModelConfiguration of this model to the given
one.ConfigurationException - If something fails during the configuration process.