Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DOC] Add 'Raises' section to docstring (#1766) #2484

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
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