Skip to content

Commit

Permalink
Release 2.1.3 (#181)
Browse files Browse the repository at this point in the history
Release PR for 2.1.3

* changelog
* version bump
  • Loading branch information
fkiraly authored Jan 22, 2024
1 parent b2706e2 commit 95b77bc
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 7 deletions.
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.1.2 out now!** [Read the release notes here.](https://skpro.readthedocs.io/en/latest/changelog.html).
:rocket: **Version 2.1.3 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.1.2 (stable)",
"name": "2.1.3 (stable)",
"version": "stable",
"url": "https://skpro.readthedocs.io/en/v2.1.3/"
},
{
"name": "2.1.2",
"version": "stable",
"url": "https://skpro.readthedocs.io/en/v2.1.2/"
},
Expand Down
52 changes: 50 additions & 2 deletions docs/source/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,54 @@ You can also subscribe to ``skpro``'s

For planned changes and upcoming releases, see our :ref:`roadmap`.


[2.1.3] - 2023-01-22
====================

``sklearn`` compatibility update:

* compatibility with ``sklearn 1.4.X``
* addition of ``feature_names_in_`` and ``n_features_in_`` default attributes
to ``BaseProbaRegressor``, written to ``self`` in ``fit``

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

* ``sklearn`` bounds have been updated to ``<1.4.0,>=0.24.0``.

Core interface changes
~~~~~~~~~~~~~~~~~~~~~~

Probabilistic regression
^^^^^^^^^^^^^^^^^^^^^^^^

* probabilistic regressors will now always save attributes ``feature_names_in_``
and ``n_features_in_`` to ``self`` in ``fit``.
``feature_names_in_`` is an 1D ``np.ndarray`` of feature names seen in ``fit``,
``n_features_in_`` is an ``int``, and equal to ``len(feature_names_in_)``.
* this ensures compatibility with ``sklearn``, where these attributes are expected.
* the new attributes can also be queried via the existing ``get_fitted_params``
interface.

Enhancements
------------

* [ENH] in ``BaseRegressorProba.fit``, use ``"feature_names"`` metadata field
to store feature names and write to ``self`` in ``fit`` (:pr:`180`) :user:`dependabot`

Maintenance
-----------

* [MNT] [Dependabot](deps): Bump ``actions/dependency-review-action``
from 3 to 4 (:pr:`178`) :user:`dependabot`
* [MNT] [Dependabot](deps-dev): Update polars requirement from ``<0.20.0``
to ``<0.21.0`` (:pr:`176`) :user:`dependabot`
* [MNT] [Dependabot](deps-dev): Update ``sphinx-issues`` requirement
from ``<4.0.0`` to ``<5.0.0`` (:pr:`179`) :user:`dependabot`
* [MNT] [Dependabot](deps-dev): Update ``scikit-learn`` requirement
from ``<1.4.0,>=0.24.0`` to ``>=0.24.0,<1.5.0`` (:pr:`177`) :user:`dependabot`


[2.1.2] - 2023-01-07
====================

Expand Down Expand Up @@ -46,8 +94,8 @@ Probability distributions
Probabilistic regression
~~~~~~~~~~~~~~~~~~~~~~~~

* [ENH] ``sklearn`` wrappers to str-coerce columns of ``pd.DataFrame`` before passing by @fkiraly in https://github.com/sktime/skpro/pull/148
* [ENH] clean up copy-paste leftovers in ``BaseProbaRegressor`` by @fkiraly in https://github.com/sktime/skpro/pull/156
* [ENH] ``sklearn`` wrappers to str-coerce columns of ``pd.DataFrame`` before passing (:pr:`148`) :user:`fkiraly`
* [ENH] clean up copy-paste leftovers in ``BaseProbaRegressor`` (:pr:`156`) :user:`fkiraly`
* [ENH] adapter for ``sklearn`` probabilistic regressors (:pr:`163`) :user:`fkiraly`
* [ENH] add tags to ``SklearnProbaReg`` (:pr:`168`) :user:`fkiraly`
* [ENH] interfacing all concrete ``sklearn`` probabilistic regressors (:pr:`166`) :user:`fkiraly`
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "skpro"
version = "2.1.2"
version = "2.1.3"
description = "A unified framework for probability distributions and probabilistic supervised regression"
authors = [
{name = "skpro developers", email = "[email protected]"},
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.1.2"
__version__ = "2.1.3"

__all__ = ["show_versions"]

Expand Down
2 changes: 1 addition & 1 deletion skpro/datatypes/_table/_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"has_nans": bool, True iff the panel contains NaN values
"n_instances": int, number of instances/rows in the table
"n_features": int, number of variables in table
"feature_names": list of int or object, names of variables in tab;e
"feature_names": list of int or object, names of variables in table
"""

__author__ = ["fkiraly"]
Expand Down

0 comments on commit 95b77bc

Please sign in to comment.