Wed Sep 27 10:57:33 2023 UTC ()
py-scikit-learn: updated to 1.3.1

Version 1.3.1
=============

Changed models
--------------

The following estimators and functions, when fit with the same data and
parameters, may produce different models from the previous version. This often
occurs due to changes in the modelling logic (bug fixes or enhancements), or in
random sampling procedures.

- |Fix| Ridge models with `solver='sparse_cg'` may have slightly different
  results with scipy>=1.12, because of an underlying change in the scipy solver

Changes impacting all modules
-----------------------------

- |Fix| The `set_output` API correctly works with list input.

Changelog
---------

:mod:`sklearn.calibration`
..........................

- |Fix| :class:`calibration.CalibratedClassifierCV` can now handle models that
  produce large prediction scores. Before it was numerically unstable.

:mod:`sklearn.cluster`
......................

- |Fix| :class:`cluster.BisectingKMeans` could crash when predicting on data
  with a different scale than the data used to fit the model.

- |Fix| :class:`cluster.BisectingKMeans` now works with data that has a single feature.

:mod:`sklearn.cross_decomposition`
..................................

- |Fix| :class:`cross_decomposition.PLSRegression` now automatically ravels the output
  of `predict` if fitted with one dimensional `y`.

:mod:`sklearn.ensemble`
.......................

- |Fix| Fix a bug in :class:`ensemble.AdaBoostClassifier` with `algorithm="SAMME"`
  where the decision function of each weak learner should be symmetric (i.e.
  the sum of the scores should sum to zero for a sample).

:mod:`sklearn.feature_selection`
................................

- |Fix| :func:`feature_selection.mutual_info_regression` now correctly computes the
  result when `X` is of integer dtype.

:mod:`sklearn.impute`
.....................

- |Fix| :class:`impute.KNNImputer` now correctly adds a missing indicator column in
  ``transform`` when ``add_indicator`` is set to ``True`` and missing values are observed
  during ``fit``.

:mod:`sklearn.metrics`
......................

- |Fix| Scorers used with :func:`metrics.get_scorer` handle properly
  multilabel-indicator matrix.

:mod:`sklearn.mixture`
......................

- |Fix| The initialization of :class:`mixture.GaussianMixture` from user-provided
  `precisions_init` for `covariance_type` of `full` or `tied` was not correct,
  and has been fixed.

:mod:`sklearn.neighbors`
........................

- |Fix| :meth:`neighbors.KNeighborsClassifier.predict` no longer raises an
  exception for `pandas.DataFrames` input.

- |Fix| Reintroduce :attr:`sklearn.neighbors.BallTree.valid_metrics` and
  :attr:`sklearn.neighbors.KDTree.valid_metrics` as public class attributes.

- |Fix| :class:`sklearn.model_selection.HalvingRandomSearchCV` no longer raises
  when the input to the `param_distributions` parameter is a list of dicts.

- |Fix| Neighbors based estimators now correctly work when `metric="minkowski"` and the
  metric parameter `p` is in the range `0 < p < 1`, regardless of the `dtype` of `X`.

:mod:`sklearn.preprocessing`
............................

- |Fix| :class:`preprocessing.LabelEncoder` correctly accepts `y` as a keyword
  argument.

- |Fix| :class:`preprocessing.OneHotEncoder` shows a more informative error message
  when `sparse_output=True` and the output is configured to be pandas.

:mod:`sklearn.tree`
...................

- |Fix| :func:`tree.plot_tree` now accepts `class_names=True` as documented.

- |Fix| The `feature_names` parameter of :func:`tree.plot_tree` now accepts any kind of
  array-like instead of just a list.


(adam)
diff -r1.21 -r1.22 pkgsrc/math/py-scikit-learn/Makefile
diff -r1.11 -r1.12 pkgsrc/math/py-scikit-learn/distinfo

cvs diff -r1.21 -r1.22 pkgsrc/math/py-scikit-learn/Makefile (expand / switch to unified diff)

--- pkgsrc/math/py-scikit-learn/Makefile 2023/07/17 19:51:04 1.21
+++ pkgsrc/math/py-scikit-learn/Makefile 2023/09/27 10:57:33 1.22
@@ -1,16 +1,16 @@ @@ -1,16 +1,16 @@
1# $NetBSD: Makefile,v 1.21 2023/07/17 19:51:04 adam Exp $ 1# $NetBSD: Makefile,v 1.22 2023/09/27 10:57:33 adam Exp $
2 2
3DISTNAME= scikit-learn-1.3.0 3DISTNAME= scikit-learn-1.3.1
4PKGNAME= ${PYPKGPREFIX}-${DISTNAME} 4PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
5CATEGORIES= math python 5CATEGORIES= math python
6MASTER_SITES= ${MASTER_SITE_PYPI:=s/scikit-learn/} 6MASTER_SITES= ${MASTER_SITE_PYPI:=s/scikit-learn/}
7 7
8MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
9HOMEPAGE= https://scikit-learn.org/ 9HOMEPAGE= https://scikit-learn.org/
10COMMENT= Machine learning algorithms for Python 10COMMENT= Machine learning algorithms for Python
11LICENSE= modified-bsd 11LICENSE= modified-bsd
12 12
13DEPENDS+= ${PYPKGPREFIX}-joblib>=1.1.1:../../devel/py-joblib 13DEPENDS+= ${PYPKGPREFIX}-joblib>=1.1.1:../../devel/py-joblib
14DEPENDS+= ${PYPKGPREFIX}-scipy>=1.5.0:../../math/py-scipy 14DEPENDS+= ${PYPKGPREFIX}-scipy>=1.5.0:../../math/py-scipy
15DEPENDS+= ${PYPKGPREFIX}-threadpoolctl>=2.0.0:../../parallel/py-threadpoolctl 15DEPENDS+= ${PYPKGPREFIX}-threadpoolctl>=2.0.0:../../parallel/py-threadpoolctl
16TEST_DEPENDS+= ${PYPKGPREFIX}-test>=5.3.1:../../devel/py-test 16TEST_DEPENDS+= ${PYPKGPREFIX}-test>=5.3.1:../../devel/py-test

cvs diff -r1.11 -r1.12 pkgsrc/math/py-scikit-learn/distinfo (expand / switch to unified diff)

--- pkgsrc/math/py-scikit-learn/distinfo 2023/07/17 19:51:04 1.11
+++ pkgsrc/math/py-scikit-learn/distinfo 2023/09/27 10:57:33 1.12
@@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
1$NetBSD: distinfo,v 1.11 2023/07/17 19:51:04 adam Exp $ 1$NetBSD: distinfo,v 1.12 2023/09/27 10:57:33 adam Exp $
2 2
3BLAKE2s (scikit-learn-1.3.0.tar.gz) = 45627d763603b1811c8b0058e2881b6043b73f54b9518bcd50c48ebe80dd4f60 3BLAKE2s (scikit-learn-1.3.1.tar.gz) = 2164e217f6cccff980dd652cea48eb6a782e262238d32d96bcd4ac15881f445d
4SHA512 (scikit-learn-1.3.0.tar.gz) = 8fc58812750e68b3b3160fdc46f8d485e9584f3bf33470b840fc69d1dfbe3f5b29849bc010e92a0375f109e8e367f9599a4e19accc9f26aca609f6088c77c741 4SHA512 (scikit-learn-1.3.1.tar.gz) = e4e7de217f4da177a94f2f7b30e6f41ed61b33528f931151cfc42fa41cb89f15bc681dcbf89851940e984898e3d503d04f4eadc4a4cded752a7d3dfdbad0be5b
5Size (scikit-learn-1.3.0.tar.gz) = 7483039 bytes 5Size (scikit-learn-1.3.1.tar.gz) = 7508552 bytes