Skip to content

Commit

Permalink
minor changes in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
saanikat committed Oct 2, 2024
1 parent e67e094 commit 24a5d77
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions bedms/utils_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,6 @@ def train_model(
print(f"Early stop at {best_epoch + 1} epoch.")
y_true = label_binarize(y_true, classes=list(range(output_size)))

# Convert to numpy arrays
y_true = np.array(y_true)
y_scores = np.array(y_scores)

Expand All @@ -531,9 +530,7 @@ def train_model(
tpr = {}
roc_auc = {}

for i in range(
output_size
): # Replace output_size with your actual number of classes
for i in range(output_size):
fpr[i], tpr[i], _ = roc_curve(y_true[:, i], y_scores[:, i])
roc_auc[i] = auc(fpr[i], tpr[i])

Expand Down

0 comments on commit 24a5d77

Please sign in to comment.