Skip to content

Commit

Permalink
Run actions again
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed May 9, 2024
1 parent ea03858 commit 1487b66
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,7 @@ jobs:
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- uses: actions/setup-python@v5
env:
PIP_DISABLE_PIP_VERSION_CHECK: 1
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.pyversion }}
architecture: x64
Expand Down
6 changes: 5 additions & 1 deletion py-forust/tests/test_booster.py
Original file line number Diff line number Diff line change
Expand Up @@ -1156,6 +1156,7 @@ def test_booster_to_xgboosts_with_contributions_shapley_from_xgboost(X_y):
assert np.allclose(contribs_shapley, xmod_contribs_shapley, atol=0.00001)
assert np.allclose(fmod_preds, xmod.predict(X, output_margin=True), atol=0.00001)


@pytest.mark.parametrize("growth_policy", ["depthwise", "lossguide"])
def test_from_xgboost(X_y, growth_policy):
X, y = X_y
Expand All @@ -1173,7 +1174,10 @@ def test_from_xgboost(X_y, growth_policy):
xmod.fit(X, y)

fmod = forust._from_xgboost_model(xmod)
assert np.allclose(xmod.predict(X, output_margin=True), fmod.predict(X), atol=0.00001)
assert np.allclose(
xmod.predict(X, output_margin=True), fmod.predict(X), atol=0.00001
)


def test_missing_branch_with_contributions(X_y):
X, y = X_y
Expand Down

0 comments on commit 1487b66

Please sign in to comment.