Skip to content

Commit

Permalink
[DOC] Add 'Raises' section to docstring (#1766) (#2484)
Browse files Browse the repository at this point in the history
* Fix line endings

* Moved test_cboss.py to testing/tests directory

* Updated docstring comments and made methods protected

* Fix line endings

* Moved test_cboss.py to testing/tests directory

* Updated docstring comments and made methods protected

* Updated

* Updated

* Removed test_cboss.py

* Updated

* Updated
  • Loading branch information
Nikitas100 authored Feb 12, 2025
1 parent 9d4c45e commit 7617d53
Showing 1 changed file with 7 additions and 1 deletion.
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

0 comments on commit 7617d53

Please sign in to comment.