Skip to content

Commit

Permalink
Update metric.py
Browse files Browse the repository at this point in the history
  • Loading branch information
SubmissionsIn authored Feb 28, 2023
1 parent 81942e7 commit 921da90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions metric.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from sklearn.metrics import v_measure_score, adjusted_rand_score, accuracy_score
from sklearn.metrics import normalized_mutual_info_score, adjusted_rand_score, accuracy_score
from sklearn.cluster import KMeans
from scipy.optimize import linear_sum_assignment
from torch.utils.data import DataLoader
Expand Down Expand Up @@ -36,7 +36,7 @@ def purity(y_true, y_pred):


def evaluate(label, pred):
nmi = v_measure_score(label, pred)
nmi = normalized_mutual_info_score(label, pred)
ari = adjusted_rand_score(label, pred)
acc = cluster_acc(label, pred)
pur = purity(label, pred)
Expand Down

0 comments on commit 921da90

Please sign in to comment.