Skip to content

Add Gamma regressor#1021

Open
Ahmed-Zahran02 wants to merge 3 commits into
sktime:mainfrom
Ahmed-Zahran02:add-gamma-regressor
Open

Add Gamma regressor#1021
Ahmed-Zahran02 wants to merge 3 commits into
sktime:mainfrom
Ahmed-Zahran02:add-gamma-regressor

Conversation

@Ahmed-Zahran02

@Ahmed-Zahran02 Ahmed-Zahran02 commented Mar 31, 2026

Copy link
Copy Markdown
Contributor

Reference Issues/PRs

Extends #7

What does this implement/fix? Explain your changes.

This Pr adapts sklearn.GammaRegressor for skpro interface.

Copilot AI review requested due to automatic review settings March 31, 2026 08:13

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a probabilistic regression adapter for sklearn.linear_model.GammaRegressor to the skpro regressor interface (Fix #7).

Changes:

  • Introduces skpro.regression.linear.GammaRegressor wrapping sklearn’s GammaRegressor.
  • Implements variance and full predictive distribution output via a Gamma distribution.
  • Exposes the new regressor from skpro.regression.linear via __init__.py.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
skpro/regression/linear/_sklearn_gamma.py New sklearn adapter implementing fit/predict/predict_var/predict_proba for Gamma GLM.
skpro/regression/linear/__init__.py Re-exports GammaRegressor from the linear regression module.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread skpro/regression/linear/_sklearn_gamma.py Outdated
Comment thread skpro/regression/linear/_sklearn_gamma.py Outdated
Comment thread skpro/regression/linear/_sklearn_gamma.py Outdated
Ahmed-Zahran02 and others added 2 commits March 31, 2026 10:21
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants