Open aglenis opened 1 year ago
Thanks for taking the effort!
A couple of comments:
See: Alphabet Size
See: Window sizes
See: Ensemble
See: Ensemble
See: SFA with Variance
See: [Binning Strategy] (https://github.com/patrickzib/dictionary/blob/63633eeaa52680f3a1eb016ec95ea0ca2c5430b9/weasel/classification/dictionary_based/_weasel_v2.py#L125)
Hope, this helps. IMO: The most critical parts should be alphabet_size, window-size, differences, and variance in SFA.
Hi,
Sorry for the delayed response, I saw the notification and forgot about it...
First, thanks @aglenis for the effort and thanks @patrickzib for the feedback! I will need to look at the paper and the source code to provide more detailed, but I will answer some points first.
pyts
(I don't remember the default values in the original implementation of WEASEL, but I prefer in general relative values than absolute values for hyper-parameters).X_train_trend
and X_test_trend
.strategy
argument has different values in pyts
: uniform
stands for equi-width (the bins all have the same width), while quantile
stands for equi-depth (the same number of values fall in each bin).In general, I like having more hyper-parameters (even if the values are fixed in the original paper) because it might be useful to change these values for other datasets (many people have their own datasets and don't work on the UCR/UEA archive), but I try to keep the default values as close as possible to the ones in the original publication.
I'm very interested in adding WEASEL 2.0 to pyts
, so I will further look into your code and also start working on this on my own, and we'll see what we get!
FYI, WEASEL 2 is in aeon and we have run it to test results https://github.com/aeon-toolkit/aeon/blob/main/aeon/classification/dictionary_based/_weasel_v2.py
Description
I am trying to port WEASEL 2.0 (https://github.com/patrickzib/dictionary) to pyts however I failed to match WEASEL 2.0 accuracy results.
I don't know if its a bug in my code, or something like bad hyperparameters on my part.
Steps/Code to Reproduce
My code for WEASEL 2.0:
Versions
NumPy 1.21.6 SciPy 1.5.4 Scikit-Learn 1.0.2 Numba 0.55.2 Pyts 0.12.0