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

[Add] f1_score/precision_score/recall_score/accuracy_score #405

Merged
merged 22 commits into from
Nov 19, 2023
Merged
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
Next Next commit
Update classification_emul.py
tarantula-leo authored Nov 17, 2023
commit 61f2e19795cda2e922839351adce78d6047d3d86
4 changes: 2 additions & 2 deletions sml/metrics/classification/classification_emul.py
Original file line number Diff line number Diff line change
@@ -95,8 +95,8 @@ def check(spu_result, sk_result):
# Test binary
y_true = jnp.array([0, 1, 1, 0, 1, 1])
y_pred = jnp.array([0, 0, 1, 0, 1, 1])
spu_result = emulator.run(proc)(y_true, y_pred, average=None, labels=[0, 1, 2])
sk_result = sklearn_proc(y_true, y_pred, average=None, labels=[0, 1, 2])
spu_result = emulator.run(proc)(y_true, y_pred, pos_label=1, transform=0)
sk_result = sklearn_proc(y_true, y_pred)
check(spu_result, sk_result)

# Test multiclass