Skip to content

Commit

Permalink
Bugfix in tests (#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
robsdavis authored Apr 4, 2023
1 parent 7735045 commit a532cbe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/metrics/test_performance.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,11 @@ def test_evaluate_performance_survival_analysis(
assert "syn_ood.brier_score" in good_score

sz = 100
X_rnd = pd.DataFrame(np.random.randn(sz, len(X.columns)), columns=X.columns)
X_rnd = pd.DataFrame(
np.random.randn(sz, len(X.columns) - 1),
columns=[col for col in X.columns if col != "week"],
)
X_rnd.insert(loc=0, column="week", value=np.random.randint(1, 52, size=sz))
X_rnd["arrest"] = 1
score = evaluator.evaluate(
Xloader,
Expand Down

0 comments on commit a532cbe

Please sign in to comment.