Skip to content

Commit

Permalink
use clone estimator
Browse files Browse the repository at this point in the history
  • Loading branch information
hadifawaz1999 committed Nov 5, 2024
1 parent f38d62d commit 1e11520
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion aeon/clustering/deep_learning/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

from abc import abstractmethod

from aeon.base._base import _clone_estimator
from aeon.clustering._k_means import TimeSeriesKMeans
from aeon.clustering.base import BaseClusterer

Expand Down Expand Up @@ -116,7 +117,7 @@ def _fit_clustering(self, X):
n_clusters=2, distance="euclidean", averaging_method="mean"
)
if self.estimator is None
else self.estimator
else _clone_estimator(self.estimator)
)

# to be removed in 1.0.0
Expand Down
4 changes: 2 additions & 2 deletions aeon/testing/testing_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
"RSASTClassifier": ["check_fit_deterministic"],
"SAST": ["check_fit_deterministic"],
"RSAST": ["check_fit_deterministic"],
"AEFCNClusterer": ["check_fit_updates_state"],
"AEResNetClusterer": ["check_fit_updates_state"],
# "AEFCNClusterer": ["check_fit_updates_state"],
# "AEResNetClusterer": ["check_fit_updates_state"],
"SFA": ["check_persistence_via_pickle", "check_fit_deterministic"],
"CollectionId": ["check_transform_inverse_transform_equivalent"],
"ScaledLogitSeriesTransformer": ["check_transform_inverse_transform_equivalent"],
Expand Down

0 comments on commit 1e11520

Please sign in to comment.