From 9a7bf4172a23b2d2899fcfa383cea7d61968902b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 13 May 2024 23:56:50 -0700 Subject: [PATCH] Bump pypa/cibuildwheel from 2.17.0 to 2.18.0 (#50) * Bump pypa/cibuildwheel from 2.17.0 to 2.18.0 Bumps [pypa/cibuildwheel](https://github.com/pypa/cibuildwheel) from 2.17.0 to 2.18.0. - [Release notes](https://github.com/pypa/cibuildwheel/releases) - [Changelog](https://github.com/pypa/cibuildwheel/blob/main/docs/changelog.md) - [Commits](https://github.com/pypa/cibuildwheel/compare/v2.17.0...v2.18.0) --- updated-dependencies: - dependency-name: pypa/cibuildwheel dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * Relax OOB score test equality * Relax docstring example outputs --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Reid Johnson --- .github/workflows/publish.yml | 2 +- quantile_forest/_quantile_forest.py | 4 ++-- quantile_forest/tests/test_quantile_forest.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b374182..422fffe 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -19,7 +19,7 @@ jobs: - uses: actions/checkout@v4 - name: Build wheels - uses: pypa/cibuildwheel@v2.17.0 + uses: pypa/cibuildwheel@v2.18.0 env: CIBW_BUILD: cp3*-* CIBW_SKIP: pp* *i686* *win32 *musllinux* diff --git a/quantile_forest/_quantile_forest.py b/quantile_forest/_quantile_forest.py index 1a2ab70..bc52a16 100755 --- a/quantile_forest/_quantile_forest.py +++ b/quantile_forest/_quantile_forest.py @@ -1125,7 +1125,7 @@ class RandomForestQuantileRegressor(BaseForestQuantileRegressor): >>> qrf.fit(X[:1000], y[:1000]) RandomForestQuantileRegressor(random_state=0) >>> qrf.score(X, y, quantiles=0.5) - 0.3592... + 0.359... """ def __init__( @@ -1456,7 +1456,7 @@ class ExtraTreesQuantileRegressor(BaseForestQuantileRegressor): >>> qrf.fit(X[:1000], y[:1000]) ExtraTreesQuantileRegressor(random_state=0) >>> qrf.score(X, y, quantiles=0.5) - 0.3352... + 0.3... """ def __init__( diff --git a/quantile_forest/tests/test_quantile_forest.py b/quantile_forest/tests/test_quantile_forest.py index fab3620..7691556 100755 --- a/quantile_forest/tests/test_quantile_forest.py +++ b/quantile_forest/tests/test_quantile_forest.py @@ -932,7 +932,7 @@ def check_predict_oob( else: assert y_pred.shape == (len(X),) if quantiles == "mean" and aggregate_leaves_first is False: - assert est.oob_score_ == y_pred_score + assert math.isclose(est.oob_score_, y_pred_score) else: assert abs(est.oob_score_ - y_pred_score) < 0.1