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-02-16 22:34:07
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
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"

Tue Feb 16 22:34:07 2021 rev:14 rq:872043 version:0.24.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-scikit-learn/python-scikit-learn.changes  
2021-01-27 18:57:21.820352510 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-scikit-learn.new.28504/python-scikit-learn.changes
       2021-02-16 22:34:08.629468651 +0100
@@ -1,0 +2,6 @@
+Sat Feb 13 19:10:14 UTC 2021 - Ben Greiner <c...@bnavigator.de>
+
+- Add scikit-learn-pr19101-npfloat.patch in order to work with
+  NumPy 1.20 
+
+-------------------------------------------------------------------

New:
----
  scikit-learn-pr19101-npfloat.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-scikit-learn.spec ++++++
--- /var/tmp/diff_new_pack.rfZ7oa/_old  2021-02-16 22:34:09.289469556 +0100
+++ /var/tmp/diff_new_pack.rfZ7oa/_new  2021-02-16 22:34:09.293469562 +0100
@@ -18,7 +18,7 @@
 
 %{?!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.
+# SciPy 1.6.0 and NumPy 1.20 dropped Python 3.6 support.
 %define         skip_python36 1
 %bcond_with extratest
 Name:           python-scikit-learn
@@ -28,6 +28,8 @@
 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  scikit-learn-pr19101-npfloat.patch 
gh#scikit-learn/scikit-learn#19101
+Patch0:         
https://github.com/scikit-learn/scikit-learn/pull/19101.patch#/scikit-learn-pr19101-npfloat.patch
 BuildRequires:  %{python_module Cython >= 0.28.5}
 BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module joblib >= 0.11}

++++++ scikit-learn-pr19101-npfloat.patch ++++++
>From e7ef22c3ba2334cb3b476e95d7c083cf6b48ce56 Mon Sep 17 00:00:00 2001
From: Guillaume Lemaitre <g.lemaitr...@gmail.com>
Date: Mon, 4 Jan 2021 10:57:03 +0100
Subject: [PATCH] TST explicit convert array to float that will contains np.nan
 [scipy-dev]

---
 sklearn/metrics/tests/test_common.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sklearn/metrics/tests/test_common.py 
b/sklearn/metrics/tests/test_common.py
index 767228d46078..181baf19de3c 100644
--- a/sklearn/metrics/tests/test_common.py
+++ b/sklearn/metrics/tests/test_common.py
@@ -198,7 +198,7 @@ def precision_recall_curve_padded_thresholds(*args, 
**kwargs):
     return np.array([
         precision,
         recall,
-        np.pad(thresholds,
+        np.pad(thresholds.astype(np.float64),
                pad_width=(0, pad_threshholds),
                mode='constant',
                constant_values=[np.nan])

Reply via email to