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

[ENH] add new test parameter sets for TimeSeriesKMeansTslearn #6195

Merged
merged 3 commits into from Mar 23, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 13 additions & 1 deletion sktime/clustering/k_means/_k_means_tslearn.py
Expand Up @@ -204,8 +204,20 @@ def get_test_params(cls, parameter_set="default"):
"random_state": None,
"init": "random",
}
params3 = {
"n_clusters": 5,
"max_iter": 100,
"tol": 1e-5,
"n_init": 5,
"metric": "euclidean",
"max_iter_barycenter": 20,
"verbose": 1,
"random_state": 42,
"init": "random",
shankariraja marked this conversation as resolved.
Show resolved Hide resolved
}
return [params2, params3]
# return [params1, params2]
return [params2]
# return [params2]
shankariraja marked this conversation as resolved.
Show resolved Hide resolved

def _score(self, X, y=None) -> float:
return np.abs(self.inertia_)