You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The classification base class does not check for a different series length in predict than the one used in fit. This should raise an exception unless the classifier can handle unequal length.
Possibly impacts other base classes, but have not checked.
The below example has two estimators raise an exception like excepted, but this in internal to the specific estimator from the following lines:
n_cases, n_channels, n_timepoints=X.shapeifn_channels!=self.n_channels_:
raiseValueError(
"The number of channels in the train data does not match the number ""of channels in the test data"
)
ifn_timepoints!=self.n_timepoints_:
raiseValueError(
"The series length of the train data does not match the series length ""of the test data"
)
All classifiers except for KNN which can handle unequal length throw an exception in the base class.
Actual results
Only DrCIF and HC2 (which contains DrCIF) throw exceptions, neither in the base class.
<class 'aeon.classification.convolution_based._arsenal.Arsenal'>
[1 1 1 0 1 1 1 0 0 1]
[1]
[1]
[1 1 1 1 1 1 1 1 1 1]
<class 'aeon.classification.hybrid._hivecote_v2.HIVECOTEV2'>
[0 0 1 1 0 1 0 0 1 0]
[0]
X4 failed
The series length of the train data does not match the series length of the test data
X5 failed
The series length of the train data does not match the series length of the test data
<class 'aeon.classification.distance_based._time_series_neighbors.KNeighborsTimeSeriesClassifier'>
[1 1 1 1 0 1 1 1 1 0]
[1]
[0]
[1 0 0 0 0 1 1 0 1 0]
<class 'aeon.classification.interval_based._drcif.DrCIFClassifier'>
[1 0 1 1 1 1 0 1 1 1]
[1]
X4 failed
The series length of the train data does not match the series length of the test data
X5 failed
The series length of the train data does not match the series length of the test data
Versions
N/A
The text was updated successfully, but these errors were encountered:
Describe the bug
From #1696
The classification base class does not check for a different series length in
predict
than the one used infit
. This should raise an exception unless the classifier can handle unequal length.Possibly impacts other base classes, but have not checked.
The below example has two estimators raise an exception like excepted, but this in internal to the specific estimator from the following lines:
Steps/Code to reproduce the bug
Expected results
All classifiers except for KNN which can handle unequal length throw an exception in the base class.
Actual results
Only DrCIF and HC2 (which contains DrCIF) throw exceptions, neither in the base class.
Versions
N/A
The text was updated successfully, but these errors were encountered: