aeon
aeon copied to clipboard
[ENH] Code improvement in `ElasticEnsemble` classifier
Describe the feature or idea you want to propose
When ddtw
or wddtw
distance measures are used, the derivative of X is calculated and then used with dtw
or wdtw
. This need not be done as ddtw
and wddtw
themselves calculate the derivatives of the time series.
https://github.com/aeon-toolkit/aeon/blob/v0.9.0/aeon/classification/distance_based/_elastic_ensemble.py#L159
Describe your proposed solution
The data should not be transformed into derivatives and the ddtw
and wddtw
distances from the distance module should be used directly like the other distances.
Describe alternatives you've considered, if relevant
No response
Additional context
No response