pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/math/py-scikit-learn



Module Name:    pkgsrc
Committed By:   adam
Date:           Wed Sep 27 10:57:33 UTC 2023

Modified Files:
        pkgsrc/math/py-scikit-learn: Makefile distinfo

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 pkgsrc/math/py-scikit-learn/Makefile
cvs rdiff -u -r1.11 -r1.12 pkgsrc/math/py-scikit-learn/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/math/py-scikit-learn/Makefile
diff -u pkgsrc/math/py-scikit-learn/Makefile:1.21 pkgsrc/math/py-scikit-learn/Makefile:1.22
--- pkgsrc/math/py-scikit-learn/Makefile:1.21   Mon Jul 17 19:51:04 2023
+++ pkgsrc/math/py-scikit-learn/Makefile        Wed Sep 27 10:57:33 2023
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.21 2023/07/17 19:51:04 adam Exp $
+# $NetBSD: Makefile,v 1.22 2023/09/27 10:57:33 adam Exp $
 
-DISTNAME=      scikit-learn-1.3.0
+DISTNAME=      scikit-learn-1.3.1
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    math python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=s/scikit-learn/}

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



Home | Main Index | Thread Index | Old Index