Skip to content

Commit

Permalink
Automatic pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramana-Raja authored and github-actions[bot] committed Mar 3, 2025
1 parent 75a9dce commit dbb3b0f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion aeon/clustering/feature_based/_r_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,4 +481,4 @@ def _get_test_params(cls, parameter_set="default") -> dict:
return {
"n_clusters": 2,
"random_state": 1,
}
}
7 changes: 4 additions & 3 deletions aeon/clustering/feature_based/tests/test_r_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

import numpy as np
from sklearn import metrics
from aeon.datasets import load_gunpoint

from aeon.clustering.feature_based._r_cluster import RClusterer
from aeon.datasets import load_gunpoint

X_ = [
[
Expand Down Expand Up @@ -139,9 +140,9 @@ def test_r_cluster_custom_dataset():
score = metrics.adjusted_rand_score(labels_true=Y, labels_pred=labels_pred1)
assert score > 0.36


def test_r_cluster_dataset():
"""Test implementation of RCluster using aeon dataset."""

X_train, y_train = load_gunpoint(split="train")
X_test, y_test = load_gunpoint(split="test")
num_points = 20
Expand Down Expand Up @@ -173,4 +174,4 @@ def test_r_cluster_dataset():
assert rcluster.estimator.n_iter_ == 3
assert np.array_equal(
rcluster.labels_, [1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0]
)
)

0 comments on commit dbb3b0f

Please sign in to comment.