Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix acc for supervised (in the same way as #195) #196

Closed
wants to merge 5 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 17, 2023
commit b4e3e9e9e0ab77fcd7affeb6a8eb72584c29562c
2 changes: 1 addition & 1 deletion elk/training/supervised.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def evaluate_supervised(

labels = repeat(val_labels, "n -> (n v)", v=v)
lr_acc = accuracy(labels, raw_preds.flatten())

one_hot_labels = to_one_hot(labels, k).flatten()
lr_auroc = roc_auc_ci(one_hot_labels, logits.flatten())

Expand Down