Skip to content

Commit 2c6c8c2

Browse files
[MNT] Clustering module 1.0 deprecations (#2306)
* remove y from predict * remove score * remove score, add fit_predict * remove score, add fit_predict * removed score and n_clusters from base class * fit_predict * clustering deprecations * notebook * fixed predict proba * fixed dnn tests * fixed dnn tests * fix notebook * fixed * removed deep learner n_clusters and assert labels_ exists * cont * fix dnns * pipeline clusterer * fix pipeline * revert * fix * remove score from dnns * remove score from notebooks * remove score from remaining * fix notebook * fixed notebook --------- Co-authored-by: Tony Bagnall <[email protected]> Co-authored-by: Tony Bagnall <[email protected]>
1 parent 5443b3d commit 2c6c8c2

File tree

4 files changed

+104
-277
lines changed

4 files changed

+104
-277
lines changed

aeon/clustering/__init__.py

-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"TimeSeriesCLARANS",
88
"TimeSeriesKMeans",
99
"TimeSeriesKShape",
10-
"TimeSeriesKShapes",
1110
"TimeSeriesKernelKMeans",
1211
"ElasticSOM",
1312
"KSpectralCentroid",
@@ -21,7 +20,6 @@
2120
from aeon.clustering._k_medoids import TimeSeriesKMedoids
2221
from aeon.clustering._k_sc import KSpectralCentroid
2322
from aeon.clustering._k_shape import TimeSeriesKShape
24-
from aeon.clustering._k_shapes import TimeSeriesKShapes
2523
from aeon.clustering._kernel_k_means import TimeSeriesKernelKMeans
2624
from aeon.clustering.base import BaseClusterer
2725
from aeon.clustering.dummy import DummyClusterer

aeon/clustering/_k_means.py

-12
Original file line numberDiff line numberDiff line change
@@ -169,20 +169,8 @@ def __init__(
169169
averaging_method: Union[str, Callable[[np.ndarray], np.ndarray]] = "ba",
170170
distance_params: Optional[dict] = None,
171171
average_params: Optional[dict] = None,
172-
init_algorithm: Optional[Union[str, np.ndarray]] = None,
173172
):
174173
self.init = init
175-
self.init_algorithm = init_algorithm
176-
if init_algorithm is not None:
177-
import warnings
178-
179-
warnings.warn(
180-
"The 'init_algorithm' parameter is deprecated and will be "
181-
"removed in a future. Version Use 'init' instead.",
182-
DeprecationWarning,
183-
stacklevel=2,
184-
)
185-
self.init = self.init_algorithm
186174
self.distance = distance
187175
self.n_init = n_init
188176
self.max_iter = max_iter

aeon/clustering/_k_shapes.py

-183
This file was deleted.

0 commit comments

Comments
 (0)