Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 26, 2023
1 parent 43b4d3a commit f66aff7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
from torch import Tensor

from torchmetrics.functional.clustering.utils import (
calculate_pair_cluster_confusion_matrix,
calculate_contingency_matrix,
calculate_pair_cluster_confusion_matrix,
check_cluster_labels,
)

Expand Down
2 changes: 1 addition & 1 deletion src/torchmetrics/functional/clustering/rand_score.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
from torch import Tensor

from torchmetrics.functional.clustering.utils import (
calculate_pair_cluster_confusion_matrix,
calculate_contingency_matrix,
calculate_pair_cluster_confusion_matrix,
check_cluster_labels,
)

Expand Down
2 changes: 1 addition & 1 deletion tests/unittests/clustering/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
from sklearn.metrics.cluster import pair_confusion_matrix as sklearn_pair_confusion_matrix
from sklearn.metrics.cluster._supervised import _generalized_average as sklearn_generalized_average
from torchmetrics.functional.clustering.utils import (
calculate_pair_cluster_confusion_matrix,
calculate_contingency_matrix,
calculate_entropy,
calculate_generalized_mean,
calculate_pair_cluster_confusion_matrix,
)

from unittests import BATCH_SIZE, NUM_BATCHES
Expand Down

0 comments on commit f66aff7

Please sign in to comment.