Skip to content

Commit

Permalink
updated test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramana-Raja authored Dec 20, 2024
1 parent ba3f7cc commit 73d8b72
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions aeon/clustering/feature_based/tests/test_r_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,8 @@
def test_r_cluster():
"""Test implementation of RCluster."""
X_train = np.array(X_)
num_clusters = len(np.unique(Y))
X = np.expand_dims(X_train, axis=1)
Rcluster = RClusterer(n_clusters=num_clusters, n_init=10)
Rcluster = RClusterer(n_clusters=8, n_init=10,random_state=1)
labels_pred1 = Rcluster.fit_predict(X)
score = metrics.adjusted_rand_score(labels_true=Y, labels_pred=labels_pred1)
assert score > 0.36

0 comments on commit 73d8b72

Please sign in to comment.