From 81b6f3b1d11f14119f7e42c99e0fb38f3292c726 Mon Sep 17 00:00:00 2001 From: "quant-ranger[bot]" <132915763+quant-ranger[bot]@users.noreply.github.com> Date: Tue, 2 Jan 2024 17:21:40 +0000 Subject: [PATCH 1/4] Pre-commit autoupdate (#745) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0aca0118..ccd5f9fe 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/Quantco/pre-commit-mirrors-black - rev: 23.11.0 + rev: 23.12.1 hooks: - id: black-conda args: @@ -23,12 +23,12 @@ repos: ] exclude: (^src/glum_benchmarks/orig_sklearn_fork/|^docs) - repo: https://github.com/Quantco/pre-commit-mirrors-isort - rev: 5.12.0 + rev: 5.13.2 hooks: - id: isort-conda additional_dependencies: [toml] - repo: https://github.com/Quantco/pre-commit-mirrors-mypy - rev: "1.7.1" + rev: "1.8.0" hooks: - id: mypy-conda args: From 89be1ac722e1fc3b819fb36b95e59ad219e152af Mon Sep 17 00:00:00 2001 From: Luca Bittarello <15511539+lbittarello@users.noreply.github.com> Date: Fri, 12 Jan 2024 08:17:34 +0000 Subject: [PATCH 2/4] Don't recompute average when guessing intercept (#750) --- src/glum/_distribution.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glum/_distribution.py b/src/glum/_distribution.py index 6b52187e..8050e4ab 100644 --- a/src/glum/_distribution.py +++ b/src/glum/_distribution.py @@ -1369,7 +1369,7 @@ def guess_intercept( second = np.log((mu ** (2 - p)).dot(sample_weight)) return first - second elif isinstance(link, LogitLink): - log_odds = np.log(avg_y) - np.log(np.average(1 - y, weights=sample_weight)) + log_odds = np.log(avg_y) - np.log(1 - avg_y) if eta is None: return log_odds avg_eta = eta if np.isscalar(eta) else np.average(eta, weights=sample_weight) From 48d48eb8cbd4a75a76312288a7f58f42bcb85aa8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 29 Jan 2024 15:55:40 +0100 Subject: [PATCH 3/4] Bump pypa/cibuildwheel from 2.16.2 to 2.16.4 (#755) Bumps [pypa/cibuildwheel](https://github.com/pypa/cibuildwheel) from 2.16.2 to 2.16.4. - [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.16.2...v2.16.4) --- updated-dependencies: - dependency-name: pypa/cibuildwheel dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/build_wheels.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index 5732b4d9..68b317ee 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -17,7 +17,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Build wheels - uses: pypa/cibuildwheel@v2.16.2 + uses: pypa/cibuildwheel@v2.16.4 env: CIBW_ARCHS_MACOS: x86_64 arm64 - uses: actions/upload-artifact@v3 From dfbb3557cfbbcdfeb4ef38d5887608fca27564cf Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 29 Jan 2024 15:56:44 +0100 Subject: [PATCH 4/4] Bump mamba-org/setup-micromamba from 1.7.0 to 1.8.0 (#754) Bumps [mamba-org/setup-micromamba](https://github.com/mamba-org/setup-micromamba) from 1.7.0 to 1.8.0. - [Release notes](https://github.com/mamba-org/setup-micromamba/releases) - [Commits](https://github.com/mamba-org/setup-micromamba/compare/8752438cc2755ab7d0de2a8d70b694f5586baae8...8767fb704bd78032e9392f0386bf46950bdd1194) --- updated-dependencies: - dependency-name: mamba-org/setup-micromamba dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/ci.yml | 4 ++-- .github/workflows/conda-build.yml | 2 +- .github/workflows/daily.yml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 36e2798d..fd0341b5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ jobs: - name: Checkout branch uses: actions/checkout@v4 - name: Set up micromamba - uses: mamba-org/setup-micromamba@8752438cc2755ab7d0de2a8d70b694f5586baae8 + uses: mamba-org/setup-micromamba@8767fb704bd78032e9392f0386bf46950bdd1194 - name: Add micromamba to GITHUB_PATH run: echo "${HOME}/micromamba-bin" >> "$GITHUB_PATH" - name: Install Python 3.11 @@ -41,7 +41,7 @@ jobs: - name: Checkout branch uses: actions/checkout@v4 - name: Set up conda env - uses: mamba-org/setup-micromamba@8752438cc2755ab7d0de2a8d70b694f5586baae8 + uses: mamba-org/setup-micromamba@8767fb704bd78032e9392f0386bf46950bdd1194 with: environment-file: environment.yml init-shell: ${{ matrix.os == 'windows-latest' && 'powershell' || 'bash' }} diff --git a/.github/workflows/conda-build.yml b/.github/workflows/conda-build.yml index 6f2da138..ef937200 100644 --- a/.github/workflows/conda-build.yml +++ b/.github/workflows/conda-build.yml @@ -32,7 +32,7 @@ jobs: uses: actions/checkout@v4 - name: Fetch full git history run: git fetch --prune --unshallow - - uses: mamba-org/setup-micromamba@8752438cc2755ab7d0de2a8d70b694f5586baae8 + - uses: mamba-org/setup-micromamba@8767fb704bd78032e9392f0386bf46950bdd1194 with: init-shell: ${{ matrix.os == 'windows-latest' && 'cmd.exe' || 'bash' }} environment-name: build diff --git a/.github/workflows/daily.yml b/.github/workflows/daily.yml index 610dfca8..4d1b1ba1 100644 --- a/.github/workflows/daily.yml +++ b/.github/workflows/daily.yml @@ -24,7 +24,7 @@ jobs: steps: - name: Checkout branch uses: actions/checkout@v4 - - uses: mamba-org/setup-micromamba@8752438cc2755ab7d0de2a8d70b694f5586baae8 + - uses: mamba-org/setup-micromamba@8767fb704bd78032e9392f0386bf46950bdd1194 with: environment-file: environment.yml create-args: >-