Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into fix-resid-double-sq
Browse files Browse the repository at this point in the history
  • Loading branch information
meh2135 committed Dec 6, 2024
2 parents 282bde9 + 78876d6 commit db7df6f
Show file tree
Hide file tree
Showing 15 changed files with 965 additions and 83 deletions.
11 changes: 11 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,17 @@
"maintenance"
]
},
{
"login": "meraldoantonio",
"name": "Meraldo Antonio",
"avatar_url": "https://avatars.githubusercontent.com/u/37468543?v=4",
"profile": "https://github.com/meraldoantonio",
"contributions": [
"bug",
"code",
"doc"
]
},
{
"login": "szepeviktor",
"name": "Viktor Szépe",
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ jobs:
run: make test

- name: Publish code coverage
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v5

run-tests-all-extras:
needs: code-quality
Expand Down Expand Up @@ -142,4 +142,4 @@ jobs:
run: make test

- name: Publish code coverage
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v5
14 changes: 14 additions & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# The file specifies framework level core developers for automated review requests
#
# Note: historically, this file has been used to maintain a list of
# algorithm maintainers as specified in GOVERNANCE.md.
# This is no longer the case, algorithm maintainers are now
# specified directly in the estimator,
# in the "maintainers" tag of the respective scikit-base object.
#
# Algorithm maintainers are programmatically queryable
# via Estimator.get_class_tag("maintainers").
# Further lookup such as "which algorithms does M maintain"
# can be carried out using registry.all_estimators

* @achieveordie @benheid @fkiraly @fnhirwa @geetu040 @pranavvp16 @sairevanth25 @XinyuWuu @yarnabrina
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<a href="https://skpro.readthedocs.io/en/latest"><img src="https://github.com/sktime/skpro/blob/main/docs/source/images/skpro-banner.png" width="500" align="right" /></a>

:rocket: **Version 2.7.0 out now!** [Read the release notes here.](https://skpro.readthedocs.io/en/latest/changelog.html).
:rocket: **Version 2.8.0 out now!** [Read the release notes here.](https://skpro.readthedocs.io/en/latest/changelog.html).

`skpro` is a library for supervised probabilistic prediction in python.
It provides `scikit-learn`-like, `scikit-base` compatible interfaces to:
Expand Down
7 changes: 6 additions & 1 deletion docs/source/_static/switcher.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@
"url": "https://skpro.readthedocs.io/en/latest/"
},
{
"name": "2.7.0 (stable)",
"name": "2.8.0 (stable)",
"version": "stable",
"url": "https://skpro.readthedocs.io/en/v2.8.0/"
},
{
"name": "2.7.0",
"version": "stable",
"url": "https://skpro.readthedocs.io/en/v2.7.0/"
},
Expand Down
40 changes: 40 additions & 0 deletions docs/source/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,46 @@ You can also subscribe to ``skpro``'s
For planned changes and upcoming releases, see roadmap in the
`issue tracker <https://github.com/sktime/skpro/issues>`_.

[2.8.0] - 2024-11-17
====================

Feature and maintenance release.

Dependency changes
~~~~~~~~~~~~~~~~~~

* ``scikit-base`` bounds have been updated to ``>=0.6.1,<0.13.0``.
* ``pymc`` is now a soft dependency, for probabilistic regressors.
* ``polars`` (data container soft dependency) bounds have been updated to ``<1.14.0``.

Enhancements
~~~~~~~~~~~~

* [ENH] Creating a new Bayesian Regressor with ``pymc`` as a backend (:pr:`358`) :user:`meraldoantonio`
* [ENH] add suite test for docstring and ``get_test_params`` coverage (:pr:`482`) :user:`fkiraly`
* [ENH] Synchronize dependency checker with ``sktime`` counterpart (:pr:`490`) :user:`meraldoantonio`

Maintenance
~~~~~~~~~~~

* [MNT] fix failing ``code-quality`` CI step (:pr:`483`) :user:`fkiraly`
* [MNT] [Dependabot](deps): Update ``scikit-base`` requirement from ``<0.12.0,>=0.6.1`` to ``>=0.6.1,<0.13.0`` (:pr:`483`) :user:`dependabot[bot]`
* [MNT] [Dependabot](deps): Update ``sphinx-gallery`` requirement from ``<0.18.0`` to ``<0.19.0`` (:pr:`481`) :user:`dependabot[bot]`
* [MNT] [Dependabot](deps): Update ``sphinx-issues`` requirement from ``<5.0.0`` to ``<6.0.0`` (:pr:`484`) :user:`dependabot[bot]`
* [MNT] [Dependabot](deps): Update ``polars`` requirement from ``<1.10.0`` to ``<1.14.0`` (:pr:`491`) :user:`dependabot[bot]`
* [MNT] [Dependabot](deps): Bump codecov/codecov-action from ``4`` to ``5`` (:pr:`494`) :user:`dependabot[bot]`

Documentation
~~~~~~~~~~~~~

* [DOC] in docstring, rename ``Example`` to ``Examples`` sections (:pr:`487`) :user:`fkiraly`

Contributors
~~~~~~~~~~~~

:user:`fkiraly`,
:user:`meraldoantonio`


[2.7.0] - 2024-10-08
====================
Expand Down
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "skpro"
version = "2.7.0"
version = "2.8.0"
description = "A unified framework for tabular probabilistic regression, time-to-event prediction, and probability distributions in python"
authors = [
{name = "skpro developers", email = "[email protected]"},
Expand Down Expand Up @@ -42,7 +42,7 @@ dependencies = [
"numpy>=1.21.0,<2.2",
"pandas>=1.1.0,<2.3.0",
"packaging",
"scikit-base>=0.6.1,<0.12.0",
"scikit-base>=0.6.1,<0.13.0",
"scikit-learn>=0.24.0,<1.6.0",
"scipy<2.0.0,>=1.2.0",
]
Expand All @@ -57,6 +57,7 @@ all_extras = [
"ngboost<0.6.0; python_version < '3.13'",
"polars<1.14.0",
"pyarrow<14.0.0; python_version < '3.12'",
"pymc; python_version < '3.13'",
"scikit-survival<0.24.0; python_version < '3.13'",
"statsmodels>=0.12.1",
]
Expand Down
2 changes: 1 addition & 1 deletion skpro/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""skpro."""

__version__ = "2.7.0"
__version__ = "2.8.0"

__all__ = ["show_versions"]

Expand Down
24 changes: 0 additions & 24 deletions skpro/base/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,30 +28,6 @@ class BaseObject(_CommonTags, _BaseObject):
def __init__(self):
super().__init__()

import sys
from warnings import warn

from packaging.specifiers import SpecifierSet

py39_or_higher = SpecifierSet(">=3.9")
sys_version = sys.version.split(" ")[0]

# todo 2.8.0 - check whether python 3.8 eol is reached.
# If yes, remove this msg.
if sys_version not in py39_or_higher:
warn(
f"From skpro 2.5.0, skpro requires Python version >=3.9, "
f"but found {sys_version}. "
"The package can still be installed, until 3.8 end of life "
"is reached, "
"but some functionality may not work as test coverage is dropped."
"Kindly note for context: python 3.8 will reach end of life "
"in October 2024, and multiple skpro core dependencies, "
"including scikit-learn, have already dropped support for 3.8. ",
category=DeprecationWarning,
stacklevel=2,
)


class BaseEstimator(_CommonTags, _BaseEstimator):
"""Base class for fittable objects."""
Expand Down
Loading

0 comments on commit db7df6f

Please sign in to comment.