Skip to content
8 changes: 7 additions & 1 deletion aeon/classification/dictionary_based/_cboss.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,13 @@ class ContractableBOSS(BaseClassifier):
weights_ :
Weight of each classifier in the ensemble.

Raises
------
ValueError
Raised when ``min_window`` is greater than ``max_window + 1``.
This ensures that ``min_window`` does not exceed ``max_window``,
preventing invalid window size configurations.

See Also
--------
BOSSEnsemble, IndividualBOSS
Expand Down Expand Up @@ -305,7 +312,6 @@ def _predict(self, X) -> np.ndarray:
-------
1D np.ndarray
Predicted class labels shape = (n_cases).

"""
rng = check_random_state(self.random_state)
return np.array(
Expand Down