Skip to content

Commit

Permalink
fix KeyError: 'mae' in assert test_metrics["mae"] < 260, test_metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
janosh committed Jun 24, 2022
1 parent 4b48f59 commit 4d0470f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_wrenformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ def test_wrenformer_regression(df_matbench_phonons_wyckoff):
epochs=30,
)

assert test_metrics["mae"] < 260, test_metrics
assert test_metrics["rmse"] < 420, test_metrics
assert test_metrics["r2"] > 0.1, test_metrics
assert test_metrics["MAE"] < 260, test_metrics
assert test_metrics["RMSE"] < 420, test_metrics
assert test_metrics["R2"] > 0.1, test_metrics


def test_wrenformer_classification(df_matbench_phonons_wyckoff):
Expand All @@ -36,4 +36,4 @@ def test_wrenformer_classification(df_matbench_phonons_wyckoff):
)

assert test_metrics["accuracy"] > 0.7, test_metrics
assert test_metrics["rocauc"] > 0.8, test_metrics
assert test_metrics["ROCAUC"] > 0.8, test_metrics

0 comments on commit 4d0470f

Please sign in to comment.