Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-scikit-learn for openSUSE:Factory checked in at 2021-01-27 18:57:20 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-scikit-learn (Old) and /work/SRC/openSUSE:Factory/.python-scikit-learn.new.28504 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-scikit-learn" Wed Jan 27 18:57:20 2021 rev:13 rq:866156 version:0.24.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-scikit-learn/python-scikit-learn.changes 2020-12-21 12:35:22.854961260 +0100 +++ /work/SRC/openSUSE:Factory/.python-scikit-learn.new.28504/python-scikit-learn.changes 2021-01-27 18:57:21.820352510 +0100 @@ -1,0 +2,134 @@ +Fri Jan 22 18:54:07 UTC 2021 - Benjamin Greiner <c...@bnavigator.de> + +- Skip python36 because SciPy 1.6.0 dropped it +- optionally enable more tests with matplotlib and pandas by + --with extratests + +------------------------------------------------------------------- +Fri Jan 22 08:11:53 UTC 2021 - andy great <andythe_gr...@pm.me> + +- Skip test_convergence_dtype_consistency on 32 bit arch due to + precision-related errors on 32 bit arch. + https://github.com/scikit-learn/scikit-learn/issues/19230 +- Remove explicit dependecy python-matplotlib + +------------------------------------------------------------------- +Wed Jan 20 19:43:33 UTC 2021 - andy great <andythe_gr...@pm.me> + +- Remove assert_allclose-for-FP-comparison.patch, fixed. +- Update to version 0.24.1. + * sklearn.metrics + * Fix numerical stability bug that could happen in + metrics.adjusted_mutual_info_score and metrics.mutual_info_score + with NumPy 1.20+. + * sklearn.semi_supervised + * Fix semi_supervised.SelfTrainingClassifier is now accepting + meta-estimator (e.g. ensemble.StackingClassifier). The + validation of this estimator is done on the fitted estimator, + once we know the existence of the method predict_proba. +- Updates for version 0.24.0. + * sklearn.base + * Fix base.BaseEstimator.get_params now will raise an + AttributeError if a parameter cannot be retrieved as an + instance attribute. Previously it would return None. + * sklearn.calibration + * Efficiency calibration.CalibratedClassifierCV.fit now supports + parallelization via joblib.Parallel using argument n_jobs. + * Enhancement Allow calibration.CalibratedClassifierCV use with + prefit pipeline.Pipeline where data is not X is not array-like, + sparse matrix or dataframe at the start. #17546 by Lucy Liu. + * Enhancement Add ensemble parameter to + calibration.CalibratedClassifierCV, which enables + implementation of calibration via an ensemble of calibrators + (current method) or just one calibrator using all the data + (similar to the built-in feature of sklearn.svm estimators with + the probabilities=True parameter). + * sklearn.cluster + * Enhancement cluster.AgglomerativeClustering has a new + parameter compute_distances. When set to True, distances + between clusters are computed and stored in the distances_ + attribute even when the parameter distance_threshold is not + used. This new parameter is useful to produce dendrogram + visualizations, but introduces a computational and memory + overhead. + * Enhancement cluster.SpectralClustering and + cluster.spectral_clustering have a new keyword argument verbose. + When set to True, additional messages will be displayed which + can aid with debugging. #18052 by Sean O. Stalley. + * Enhancement Added cluster.kmeans_plusplus as public function. + Initialization by KMeans++ can now be called separately to + generate initial cluster centroids. + * API Change cluster.MiniBatchKMeans attributes, counts_ and + init_size_, are deprecated and will be removed in 1.1 + (renaming of 0.26). + * sklearn.compose + * Fix compose.ColumnTransformer will skip transformers the + column selector is a list of bools that are False. + * Fix compose.ColumnTransformer now displays the remainder in + the diagram display. #18167 by Thomas Fan. + * Fix compose.ColumnTransformer enforces strict count and order + of column names between fit and transform by raising an error + instead of a warning, following the deprecation cycle. + * sklearn.covariance + * API Change Deprecates cv_alphas_ in favor of + cv_results_['alphas'] and grid_scores_ in favor of split scores + in cv_results_ in covariance.GraphicalLassoCV. cv_alphas_ and + grid_scores_ will be removed in version 1.1 (renaming of 0.26). + * sklearn.cross_decomposition + * Fixed a bug in cross_decomposition.PLSSVD which would sometimes + return components in the reversed order of importance. + * Fixed a bug in cross_decomposition.PLSSVD, + cross_decomposition.CCA, and cross_decomposition.PLSCanonical, + which would lead to incorrect predictions for est.transform(Y) + when the training data is single-target. + * Fix Increases the stability of cross_decomposition.CCA + * API Change For cross_decomposition.NMF, the init value, when + ???init=None??? and n_components <= min(n_samples, n_features) + will be changed from 'nndsvd' to 'nndsvda' in 1.1 + (renaming of 0.26). + * API Change The bounds of the n_components parameter is now + restricted: + * into [1, min(n_samples, n_features, n_targets)], for + cross_decomposition.PLSSVD, cross_decomposition.CCA, and + cross_decomposition.PLSCanonical. + * into [1, n_features] or cross_decomposition.PLSRegression. + * An error will be raised in 1.1 (renaming of 0.26). + * API Change For cross_decomposition.PLSSVD, + cross_decomposition.CCA, and cross_decomposition.PLSCanonical, + the x_scores_ and y_scores_ attributes were deprecated and will + be removed in 1.1 (renaming of 0.26). They can be retrieved + by calling transform on the training data. The norm_y_weights + attribute will also be removed. #17095 by Nicolas Hug. + * API Change For cross_decomposition.PLSRegression, + cross_decomposition.PLSCanonical, cross_decomposition.CCA, + and cross_decomposition.PLSSVD, the x_mean_, y_mean_, x_std_, + and y_std_ attributes were deprecated and will be removed in + 1.1 (renaming of 0.26). + * Fix decomposition.TruncatedSVD becomes deterministic by using + the random_state. It controls the weights??? initialization of + the underlying ARPACK solver. + * sklearn.datasets + * Feature datasets.fetch_openml now validates md5 checksum of + arff files downloaded or cached to ensure data integrity. + * Feature datasets.fetch_openml now validates md5checksum of + arff files downloaded or cached to ensure data integrity. + * Enhancement datasets.fetch_openml now allows argument + as_frame to be ???auto???, which tries to convert returned data + to pandas DataFrame unless data is sparse. #17396 by Jiaxiang. + * Enhancement datasets.fetch_covtype now now supports the optional + argument as_frame; when it is set to True, the returned Bunch + object???s data and frame members are pandas DataFrames, and the + target member is a pandas Series. + * Enhancement datasets.fetch_kddcup99 now now supports the + optional argument as_frame; when it is set to True, the returned + Bunch object???s data and frame members are pandas DataFrames, + and the target member is a pandas Series. + * Enhancement datasets.fetch_20newsgroups_vectorized now supports + loading as a pandas DataFrame by setting as_frame=True. + * API Change The default value of as_frame in + datasets.fetch_openml is changed from False to ???auto???. + * Many more updates and fixes. +- Skip tests for test_fetch_openml_verify_checksum[True] and + test_fetch_openml_verify_checksum[False], not sure why it fail. + +------------------------------------------------------------------- Old: ---- assert_allclose-for-FP-comparison.patch scikit-learn-0.23.2.tar.gz New: ---- scikit-learn-0.24.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-scikit-learn.spec ++++++ --- /var/tmp/diff_new_pack.8P8o7P/_old 2021-01-27 18:57:22.864354125 +0100 +++ /var/tmp/diff_new_pack.8P8o7P/_new 2021-01-27 18:57:22.868354131 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-scikit-learn # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,43 +18,48 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 +# SciPy 1.6.0 dropped Python 3.6 support, NumPy 1.20 will do, too. +%define skip_python36 1 +%bcond_with extratest Name: python-scikit-learn -Version: 0.23.2 +Version: 0.24.1 Release: 0 Summary: Python modules for machine learning and data mining License: BSD-3-Clause URL: https://scikit-learn.org/ Source0: https://files.pythonhosted.org/packages/source/s/scikit-learn/scikit-learn-%{version}.tar.gz -# PATCH-FIX-UPSTREAM assert_allclose-for-FP-comparison.patch gh#scikit-learn/scikit-learn#18031 mc...@suse.com -# Use assert_allclose instead of equality in FP comparison -Patch0: assert_allclose-for-FP-comparison.patch -BuildRequires: %{python_module Cython} +BuildRequires: %{python_module Cython >= 0.28.5} BuildRequires: %{python_module devel} +BuildRequires: %{python_module joblib >= 0.11} BuildRequires: %{python_module numpy-devel >= 1.13.3} BuildRequires: %{python_module scipy >= 0.19.1} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module threadpoolctl >= 2.0.0} +BuildRequires: %{python_module xml} BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: gcc-fortran BuildRequires: openblas-devel BuildRequires: python-rpm-macros Requires: python-joblib >= 0.11 -Requires: python-matplotlib Requires: python-numpy >= 1.13.3 Requires: python-scipy >= 0.19.1 Requires: python-threadpoolctl >= 2.0.0 Requires: python-xml Provides: python-sklearn +Suggests: python-matplotlib +Suggests: python-pandas +Suggests: python-seaborn %if "%{python_flavor}" == "python3" || "%{?python_provides}" == "python3" Provides: sklearn %endif # SECTION test requirements -BuildRequires: %{python_module joblib} -BuildRequires: %{python_module matplotlib} -BuildRequires: %{python_module nose} BuildRequires: %{python_module pytest >= 4.0} -BuildRequires: %{python_module xml} +%if %{with extratest} +BuildRequires: %{python_module matplotlib >= 2.1.1} +BuildRequires: %{python_module pandas >= 0.25.0} +BuildRequires: %{python_module scikit-image >= 0.13} +%endif # /SECTION %python_subpackages @@ -69,13 +74,6 @@ %build %python_build -%{python_expand for d in %{buildroot}%{$python_sitelib} %{buildroot}%{$python_sitearch}; do \ -if [ -d $d ]; then - # find $d -name \*.pyc -delete - $python -m compileall $d - $python -O -m compileall $d -fi -done } %install %python_install @@ -89,6 +87,16 @@ NO_TESTS+=" or test_sparse_coder_parallel_mmap or test_explained_variances" # test_negative_sample_weights_mask_all_samples[weights-are-zero-NuSVC] Fatal Python error: Aborted NO_TESTS+=" or test_negative_sample_weights_mask_all_samples" +# Disable test_fetch_openml_verify_checksum for now, no clue why it fail. +NO_TESTS+=" or test_fetch_openml_verify_checksum[True]" +NO_TESTS+=" or test_fetch_openml_verify_checksum[False]" + +# Precision-related errors on 32 bit arch +# https://github.com/scikit-learn/scikit-learn/issues/19230 +%ifarch i586 %{arm} +NO_TESTS+=" or test_convergence_dtype_consistency" +%endif + mkdir test_dir pushd test_dir %pytest_arch -p no:cacheprovider -v -k "not ($NO_TESTS)" %{buildroot}%{$python_sitearch}/sklearn ++++++ scikit-learn-0.23.2.tar.gz -> scikit-learn-0.24.1.tar.gz ++++++ /work/SRC/openSUSE:Factory/python-scikit-learn/scikit-learn-0.23.2.tar.gz /work/SRC/openSUSE:Factory/.python-scikit-learn.new.28504/scikit-learn-0.24.1.tar.gz differ: char 5, line 1