public class ShapeletTransformTSClassifier extends ASimplifiedTSClassifier<java.lang.Integer>
classMapper, trained| Constructor and Description |
|---|
ShapeletTransformTSClassifier(int k,
int seed)
Constructs an Shapelet Transform classifier using
k shapelets,
k/2 clusters of the shapelets after shapelet extraction and the
FStat quality measure. |
ShapeletTransformTSClassifier(int k,
int numClusters,
IQualityMeasure qm,
int seed,
boolean clusterShapelets)
Constructs an Shapelet Transform classifier using
k shapelets,
k/2 clusters of the shapelets after shapelet extraction (if
clusterShapelets is true and the quality measure function
qm. |
ShapeletTransformTSClassifier(int k,
int numClusters,
IQualityMeasure qm,
int seed,
boolean clusterShapelets,
int minShapeletLength,
int maxShapeletLength,
boolean useHIVECOTEEnsemble,
int numFolds)
Constructs an Shapelet Transform classifier using
k shapelets,
k/2 clusters of the shapelets after shapelet extraction (if
clusterShapelets is true and the quality measure function
qm. |
ShapeletTransformTSClassifier(int k,
IQualityMeasure qm,
int seed,
boolean clusterShapelets)
Constructs an Shapelet Transform classifier using
k shapelets,
k/2 clusters of the shapelets after shapelet extraction (if
clusterShapelets is true and the quality measure function
qm. |
| Modifier and Type | Method and Description |
|---|---|
ShapeletTransformLearningAlgorithm |
getLearningAlgorithm(TimeSeriesDataset dataset) |
AMinimumDistanceSearchStrategy |
getMinDistanceSearchStrategy()
Getter for
minDistanceSearchStrategy. |
java.util.List<Shapelet> |
getShapelets()
Getter for
shapelets. |
java.lang.Integer |
predict(double[] univInstance)
Performs a prediction based on the given univariate double[] instance
representation and returns the result.
|
java.lang.Integer |
predict(java.util.List<double[]> multivInstance)
Performs a prediction based on the given multivariate list of double[]
instance representation and returns the result.
|
java.util.List<java.lang.Integer> |
predict(TimeSeriesDataset dataset)
Performs predictions based on the given instances in the given dataset.
|
void |
setClassifier(weka.classifiers.Classifier classifier)
Setter for
classifier. |
void |
setShapelets(java.util.List<Shapelet> shapelets)
Setter for
shapelets. |
checkWhetherPredictionIsPossible, getClassMapper, isTrained, setClassMapper, trainpublic ShapeletTransformTSClassifier(int k,
int seed)
k shapelets,
k/2 clusters of the shapelets after shapelet extraction and the
FStat quality measure.k - Number of shapelets searched for and used as shapelet clustering
inputseed - Seed for randomized operationspublic ShapeletTransformTSClassifier(int k,
IQualityMeasure qm,
int seed,
boolean clusterShapelets)
k shapelets,
k/2 clusters of the shapelets after shapelet extraction (if
clusterShapelets is true and the quality measure function
qm.k - Number of shapelets searched for and used as shapelet clustering
input if enabledqm - Quality measure function to be used to assess shapeletsseed - See for randomized operationsclusterShapelets - Indicator whether shapelet clustering should be used after
extracting the best k shapeletspublic ShapeletTransformTSClassifier(int k,
int numClusters,
IQualityMeasure qm,
int seed,
boolean clusterShapelets)
k shapelets,
k/2 clusters of the shapelets after shapelet extraction (if
clusterShapelets is true and the quality measure function
qm.k - Number of shapelets searched for and used as shapelet clustering
input if enablednumClusters - Number of clusters into which the shapelets are clusteredqm - Quality measure function to be used to assess shapeletsseed - See for randomized operationsclusterShapelets - Indicator whether shapelet clustering should be used after
extracting the best k shapeletspublic ShapeletTransformTSClassifier(int k,
int numClusters,
IQualityMeasure qm,
int seed,
boolean clusterShapelets,
int minShapeletLength,
int maxShapeletLength,
boolean useHIVECOTEEnsemble,
int numFolds)
k shapelets,
k/2 clusters of the shapelets after shapelet extraction (if
clusterShapelets is true and the quality measure function
qm. minShapeletLength and
maxShapeletLength specify the shapelet length borders, while
useHIVECOTEEnsemble defines whether the HIVE COTE ensemble or
the CAWPE ensemble should be used.k - Number of shapelets searched for and used as shapelet clustering
input if enabledqm - Quality measure function to be used to assess shapeletsseed - See for randomized operationsclusterShapelets - Indicator whether shapelet clustering should be used after
extracting the best k shapeletsminShapeletLength - The minimal length of the shapeletsmaxShapeletLength - The maximal length of the shapeletsuseHIVECOTEEnsemble - Indicator whether the HIVE COTE ensemble should be used (CAWPE
otherwise)timeout - The timeout used for the trainingnumFolds - See ShapeletTransformLearningAlgorithm#numFoldspublic java.util.List<Shapelet> getShapelets()
shapelets.public void setShapelets(java.util.List<Shapelet> shapelets)
shapelets.shapelets - The new list of shapelets to be setpublic void setClassifier(weka.classifiers.Classifier classifier)
classifier.classifier - The classifier to be setpublic java.lang.Integer predict(double[] univInstance)
throws PredictionException
predict in class ASimplifiedTSClassifier<java.lang.Integer>univInstance - Univariate instance given by a double vector of time
series values used for the predictionPredictionException - If something fails during the prediction process.public java.lang.Integer predict(java.util.List<double[]> multivInstance)
throws PredictionException
predict in class ASimplifiedTSClassifier<java.lang.Integer>multivInstance - Multivariate instance given by a list of multiple
double[] time series used for the predictionPredictionException - If something fails during the prediction process.public java.util.List<java.lang.Integer> predict(TimeSeriesDataset dataset) throws PredictionException
predict in class ASimplifiedTSClassifier<java.lang.Integer>dataset - The TimeSeriesDataset for which predictions should be
made.PredictionException - If something fails during the prediction processpublic AMinimumDistanceSearchStrategy getMinDistanceSearchStrategy()
minDistanceSearchStrategy.public ShapeletTransformLearningAlgorithm getLearningAlgorithm(TimeSeriesDataset dataset)
getLearningAlgorithm in class ASimplifiedTSClassifier<java.lang.Integer>