sktime: [BUG] RocketClassifier SystemError: _PyEval_EvalFrameDefault
Please, how to fix this error when Training RocketClassifier on 3d data? When I run the basic example from Docs, it works perfectly. But just change data to 3d numpy array and error comes not allowing train. 3d data in shape [n_instances, n_dimensions, series_length] as specified in the Docs. X_train data shape: (2618, 2, 3) (2618 samples, 2 features, 3 lookback length). Thank you!
from sktime.classification.kernel_based import RocketClassifier
clf = RocketClassifier(num_kernels=500, rocket_transform='multirocket', use_multivariate='yes', n_jobs=-1)
clf.fit(X_train, y_train)
---------------------------------------------------------------------------
AssertionError Traceback (most recent call last)
AssertionError: Sizes of $372binary_subscr.15, $390binary_subscr.26 do not match on /usr/local/lib/python3.10/dist-packages/sktime/transformations/panel/rocket/_multirocket_multi_numba.py (736)
The above exception was the direct cause of the following exception:
SystemError Traceback (most recent call last)
[<ipython-input-50-bed19c0333df>](https://localhost:8080/#) in <cell line: 1>()
----> 1 clf.fit(rolling_X_train, y_train_seq)
9 frames
[/usr/local/lib/python3.10/dist-packages/sktime/transformations/panel/rocket/_multirocket_multivariate.py](https://localhost:8080/#) in _transform(self, X, y)
171 set_num_threads(n_jobs)
172
--> 173 X = _transform(
174 X,
175 _X1,
SystemError: _PyEval_EvalFrameDefault returned a result with an exception set
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 16
Yes, should have noticed - 3 is kind of short. Not much of a time series to talk about…
Probably better dealt with via tabular classification?
That would be weird if that helps, as internally afaik it is reshaped to 3d again.
Can you update us whether 2d works?
This looks like a
numbarelated error to me, although I cannot make sense of the traceback.Full error traceback:
I have reproduced the error using the exact data, on windows, python 3.11, numba 0.57.1.
Versions:
Useful code to load the files:
can you check:
nanor infinite?numpyarray of same size and pass it, do you still get the error?Thanks!
Well, that’s odd. If you can’t share your data, could you share the output of the following?
Well, that looks weird. Looks like some
numbafailure?May I ask for diagnosis:
sktimedummy data or random numpy arrays? Or is it only happening for your data?