Skip to content

Commit

Permalink
[DOC] added type hints to 'classification->convolution_based' module (#…
Browse files Browse the repository at this point in the history
…2494)

* added type hints to classification->convolution_based

* Automatic `pre-commit` fixes
  • Loading branch information
YashviMehta03 authored Jan 24, 2025
1 parent e8a633e commit 222d287
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 19 deletions.
16 changes: 8 additions & 8 deletions aeon/classification/convolution_based/_arsenal.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,15 +130,15 @@ class Arsenal(BaseClassifier):

def __init__(
self,
n_kernels=2000,
n_estimators=25,
rocket_transform="rocket",
max_dilations_per_kernel=32,
n_features_per_kernel=4,
time_limit_in_minutes=0.0,
contract_max_n_estimators=100,
n_kernels: int = 2000,
n_estimators: int = 25,
rocket_transform: str = "rocket",
max_dilations_per_kernel: int = 32,
n_features_per_kernel: int = 4,
time_limit_in_minutes: float = 0.0,
contract_max_n_estimators: int = 100,
class_weight=None,
n_jobs=1,
n_jobs: int = 1,
random_state=None,
):
self.n_kernels = n_kernels
Expand Down
7 changes: 6 additions & 1 deletion aeon/classification/convolution_based/_hydra.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,12 @@ class HydraClassifier(BaseClassifier):
}

def __init__(
self, n_kernels=8, n_groups=64, class_weight=None, n_jobs=1, random_state=None
self,
n_kernels: int = 8,
n_groups: int = 64,
class_weight=None,
n_jobs: int = 1,
random_state=None,
):
self.n_kernels = n_kernels
self.n_groups = n_groups
Expand Down
6 changes: 3 additions & 3 deletions aeon/classification/convolution_based/_minirocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ class MiniRocketClassifier(BaseClassifier):

def __init__(
self,
n_kernels=10000,
max_dilations_per_kernel=32,
n_kernels: int = 10000,
max_dilations_per_kernel: int = 32,
estimator=None,
class_weight=None,
n_jobs=1,
n_jobs: int = 1,
random_state=None,
):
self.n_kernels = n_kernels
Expand Down
7 changes: 6 additions & 1 deletion aeon/classification/convolution_based/_mr_hydra.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,12 @@ class MultiRocketHydraClassifier(BaseClassifier):
}

def __init__(
self, n_kernels=8, n_groups=64, class_weight=None, n_jobs=1, random_state=None
self,
n_kernels: int = 8,
n_groups: int = 64,
class_weight=None,
n_jobs: int = 1,
random_state=None,
):
self.n_kernels = n_kernels
self.n_groups = n_groups
Expand Down
8 changes: 4 additions & 4 deletions aeon/classification/convolution_based/_multirocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@ class MultiRocketClassifier(BaseClassifier):

def __init__(
self,
n_kernels=10000,
max_dilations_per_kernel=32,
n_features_per_kernel=4,
n_kernels: int = 10000,
max_dilations_per_kernel: int = 32,
n_features_per_kernel: int = 4,
estimator=None,
class_weight=None,
n_jobs=1,
n_jobs: int = 1,
random_state=None,
):
self.n_kernels = n_kernels
Expand Down
4 changes: 2 additions & 2 deletions aeon/classification/convolution_based/_rocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ class RocketClassifier(BaseClassifier):

def __init__(
self,
n_kernels=10000,
n_kernels: int = 10000,
estimator=None,
class_weight=None,
n_jobs=1,
n_jobs: int = 1,
random_state=None,
):
self.n_kernels = n_kernels
Expand Down

0 comments on commit 222d287

Please sign in to comment.