Skip to content

Commit

Permalink
Update classification_emul.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tarantula-leo authored Nov 17, 2023
1 parent d2c2ba0 commit 61f2e19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sml/metrics/classification/classification_emul.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 61f2e19

Please sign in to comment.