Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-wolbeck committed Jan 9, 2024
1 parent 046743c commit 0f4bbfa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_distns.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,11 @@ def classification_data():
)
return X_train, X_test, y_train, y_test


def is_t_distribution(dist, learner, regression_data):
return dist == T


@pytest.mark.slow
@pytest.mark.parametrize(
"dist",
Expand All @@ -66,7 +68,9 @@ def is_t_distribution(dist, learner, regression_data):
DecisionTreeRegressor(criterion="friedman_mse", max_depth=5),
],
)
@pytest.mark.xfail(condition=is_t_distribution, reason="Known to fail with T distribution")
@pytest.mark.xfail(
condition=is_t_distribution, reason="Known to fail with T distribution"
)
def test_dists_runs_on_examples_logscore(dist: Distn, learner, regression_data):
X_train, X_test, y_train, y_test = regression_data
# TODO: test early stopping features
Expand Down

0 comments on commit 0f4bbfa

Please sign in to comment.