Many thanks for testing and confirming @seanlaw
Hello, guys!
I ran numba tests with macos Catalina 10.15.17, Intel-based CPU, Python 3.9.2 version and Numba 0.53.0rc3 and got the following:
host$ python3 -m numba.tests.test_runtests --verbose
test_all (__main__.TestCase) ... ok
test_check_slice (__main__.TestCase) ... ok
test_check_slicing_equivalent (__main__.TestCase) ... ok
test_cuda (__main__.TestCase) ... ok
test_cuda_submodules (__main__.TestCase) ... skipped 'NO CUDA'
test_default (__main__.TestCase) ... ok
test_include_exclude_tags (__main__.TestCase) ... ok
test_module (__main__.TestCase) ... ok
test_random (__main__.TestCase) ... ok
test_subpackage (__main__.TestCase) ... ok
----------------------------------------------------------------------
Ran 10 tests in 39.782s
Full test suite completed with following:
host$ python3 -m numba.runtests -v -m
Ran 9433 tests in 1521.144s
FAILED (failures=10, skipped=479, expected failures=12)
Errors occured:
======================================================================
FAIL: test_nanquantile_basic (numba.tests.test_array_reductions.TestArrayReductions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/numba/tests/test_array_reductions.py", line 530, in test_nanquantile_basic
self.check_percentile_and_quantile(pyfunc, q_upper_bound=1)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/numba/tests/test_array_reductions.py", line 372, in check_percentile_and_quantile
check(a, q)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/numba/tests/test_array_reductions.py", line 359, in check
self.assertPreciseEqual(got, expected, abs_tol=abs_tol)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/numba/tests/support.py", line 343, in assertPreciseEqual
self.fail("when comparing %s and %s: %s" % (first, second, failure_msg))
AssertionError: when comparing [ -inf -1.70182786 -0.46359554 nan -0.53228227 -inf
-1.41421824 0.57995536 -0.02271934 nan 0.17140244 -1.06597053
-inf -0.77504848] and [ nan -1.70182786 -0.46359554 nan -0.53228227 nan
-1.41421824 0.57995536 -0.02271934 nan 0.17140244 -1.06597053
nan -0.77504848]: -inf != nan
======================================================================
FAIL: test_nanquantile_basic (numba.tests.test_array_reductions.TestArrayReductions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/numba/tests/support.py", line 728, in tearDown
self.memory_leak_teardown()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/numba/tests/support.py", line 702, in memory_leak_teardown
self.assert_no_memory_leak()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/numba/tests/support.py", line 711, in assert_no_memory_leak
self.assertEqual(total_alloc, total_free)
AssertionError: 69 != 68
======================================================================
FAIL: test_nanpercentile_basic (numba.tests.test_array_reductions.TestArrayReductions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/numba/tests/test_array_reductions.py", line 518, in test_nanpercentile_basic
self.check_percentile_and_quantile(pyfunc, q_upper_bound=100)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/numba/tests/test_array_reductions.py", line 372, in check_percentile_and_quantile
check(a, q)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/numba/tests/test_array_reductions.py", line 359, in check
self.assertPreciseEqual(got, expected, abs_tol=abs_tol)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/numba/tests/support.py", line 343, in assertPreciseEqual
self.fail("when comparing %s and %s: %s" % (first, second, failure_msg))
AssertionError: when comparing [ -inf -1.70182786 -0.46359554 nan -0.53228227 -inf
-1.41421824 0.57995536 -0.02271934 nan 0.17140244 -1.06597053
-inf -0.77504848] and [ nan -1.70182786 -0.46359554 nan -0.53228227 nan
-1.41421824 0.57995536 -0.02271934 nan 0.17140244 -1.06597053
nan -0.77504848]: -inf != nan
======================================================================
FAIL: test_nanpercentile_basic (numba.tests.test_array_reductions.TestArrayReductions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/numba/tests/support.py", line 728, in tearDown
self.memory_leak_teardown()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/numba/tests/support.py", line 702, in memory_leak_teardown
self.assert_no_memory_leak()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/numba/tests/support.py", line 711, in assert_no_memory_leak
self.assertEqual(total_alloc, total_free)
AssertionError: 69 != 68
======================================================================
FAIL: test_percentile_basic (numba.tests.test_array_reductions.TestArrayReductions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/numba/tests/test_array_reductions.py", line 513, in test_percentile_basic
self.check_percentile_edge_cases(pyfunc, q_upper_bound=100)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/numba/tests/test_array_reductions.py", line 433, in check_percentile_edge_cases
check(a, q)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/numba/tests/test_array_reductions.py", line 417, in check
self.assertPreciseEqual(got, expected, abs_tol=abs_tol)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/numba/tests/support.py", line 343, in assertPreciseEqual
self.fail("when comparing %s and %s: %s" % (first, second, failure_msg))
AssertionError: when comparing [-inf -inf -inf 1.] and [nan nan nan 1.]: -inf != nan
======================================================================
FAIL: test_percentile_basic (numba.tests.test_array_reductions.TestArrayReductions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/numba/tests/support.py", line 728, in tearDown
self.memory_leak_teardown()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/numba/tests/support.py", line 702, in memory_leak_teardown
self.assert_no_memory_leak()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/numba/tests/support.py", line 711, in assert_no_memory_leak
self.assertEqual(total_alloc, total_free)
AssertionError: 291 != 290
======================================================================
FAIL: test_quantile_basic (numba.tests.test_array_reductions.TestArrayReductions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/numba/tests/test_array_reductions.py", line 525, in test_quantile_basic
self.check_percentile_edge_cases(pyfunc, q_upper_bound=1)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/numba/tests/test_array_reductions.py", line 433, in check_percentile_edge_cases
check(a, q)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/numba/tests/test_array_reductions.py", line 417, in check
self.assertPreciseEqual(got, expected, abs_tol=abs_tol)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/numba/tests/support.py", line 343, in assertPreciseEqual
self.fail("when comparing %s and %s: %s" % (first, second, failure_msg))
AssertionError: when comparing [-inf -inf -inf 1.] and [nan nan nan 1.]: -inf != nan
======================================================================
FAIL: test_quantile_basic (numba.tests.test_array_reductions.TestArrayReductions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/numba/tests/support.py", line 728, in tearDown
self.memory_leak_teardown()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/numba/tests/support.py", line 702, in memory_leak_teardown
self.assert_no_memory_leak()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/numba/tests/support.py", line 711, in assert_no_memory_leak
self.assertEqual(total_alloc, total_free)
AssertionError: 291 != 290
======================================================================
FAIL: test_windowing (numba.tests.test_np_functions.TestNPFunctions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/numba/tests/test_np_functions.py", line 3683, in test_windowing
check_window(np_bartlett)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/numba/tests/test_np_functions.py", line 3676, in check_window
self.assertPreciseEqual(expected, got, prec='double')
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/numba/tests/support.py", line 343, in assertPreciseEqual
self.fail("when comparing %s and %s: %s" % (first, second, failure_msg))
AssertionError: when comparing [0. 0.18181818 0.36363636 0.54545455 0.72727273 0.90909091
0.90909091 0.72727273 0.54545455 0.36363636 0.18181818 0. ] and [0. 0.18181818 0.36363636 0.54545455 0.72727273 0.90909091
0.90909091 0.72727273 0.54545455 0.36363636 0.18181818 0. ]: 0.18181818181818177 != 0.18181818181818182 within 4.037174635000569e-17 delta (5.551115123125783e-17 difference)
======================================================================
FAIL: test_windowing (numba.tests.test_np_functions.TestNPFunctions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/numba/tests/support.py", line 728, in tearDown
self.memory_leak_teardown()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/numba/tests/support.py", line 702, in memory_leak_teardown
self.assert_no_memory_leak()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/numba/tests/support.py", line 711, in assert_no_memory_leak
self.assertEqual(total_alloc, total_free)
AssertionError: 12 != 11
Hi @AlexanderUp,
Many thanks for testing. It seems like all these errors are floating point related. Questions:
- Which version of NumPy are you using?
- Where did you get the packages in the environment from? (Mainly interested in Numba and NumPy and whether it’s conda or wheels).
Thanks for your help.
I tried to replicate this as I am also on Catalina 10.15.7 – but I have not been able to do so yet. Here are the commands I used to setup the environement and run the tests:
$ conda create -n numba_test -c numba numba=0.53.0rc3 python==3.9.2
...
$ conda activate numba_test
...
$ python3 -m numba.runtests -v -m 4 numba.tests.test_array_reductions.TestArrayReductions
Can you add information about how you installed Python and Numba too, please? Thank you!
Tests for cudf branch-0.19 and dask-cudf branch-0.19 are looking good with Numba 0.53.0RC3.
Bodo’s test suite (~6600 multi-part tests) and several large end-to-end applications pass with Numba 0.53.0RC3.
Hi, @stuartarchibald!
Which version of NumPy are you using?
My NumPy version is 1.20.1
Where did you get the packages in the environment from?
Numba and NumPy got from pip.
I hope it will help you to investigate this matter.
Hello, @esc!
Can you add information about how you installed Python and Numba too, please?
Python was installed by official pkg-file from python.org, Numba - from pip.
Hope it will help.
Hi @AlexanderUp,
thank you for submitting this additional information. Did you use any environment management software, like pyvenv or virtualenv?
best,
@AlexanderUp thank you again for submitting this. I can reproduce this and have narrowed it down to Numpy 1.20.1 – I used Python from miniconda/conda and obtained Numpy 1.20.1 from conda-forge. I only obtained 8 failures, but they look very similar to the ones you posted.
Can you try to just downgrade Numpy to 1.19.2 and re-run the tests to see if helps? Thank you!
Hi @esc!
No, I don’t use neither pyenv nor virtualenv for numba tests.
Of course, will do it today later.
For the record, here is trace of the errors I received:
$ python3 -m numba.runtests -v -m 4 numba.tests.test_array_reductions.TestArrayReductions
...
======================================================================
FAIL: test_nanpercentile_basic (numba.tests.test_array_reductions.TestArrayReductions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/vhaenel/miniconda3/envs/numba_test/lib/python3.9/site-packages/numba/tests/test_array_reductions.py", line 518, in test_nanpercentile_basic
self.check_percentile_and_quantile(pyfunc, q_upper_bound=100)
File "/Users/vhaenel/miniconda3/envs/numba_test/lib/python3.9/site-packages/numba/tests/test_array_reductions.py", line 372, in check_percentile_and_quantile
check(a, q)
File "/Users/vhaenel/miniconda3/envs/numba_test/lib/python3.9/site-packages/numba/tests/test_array_reductions.py", line 359, in check
self.assertPreciseEqual(got, expected, abs_tol=abs_tol)
File "/Users/vhaenel/miniconda3/envs/numba_test/lib/python3.9/site-packages/numba/tests/support.py", line 343, in assertPreciseEqual
self.fail("when comparing %s and %s: %s" % (first, second, failure_msg))
AssertionError: when comparing [ -inf -1.70182786 -0.46359554 nan -0.53228227 -inf
-1.41421824 0.57995536 -0.02271934 nan 0.17140244 -1.06597053
-inf -0.77504848] and [ nan -1.70182786 -0.46359554 nan -0.53228227 nan
-1.41421824 0.57995536 -0.02271934 nan 0.17140244 -1.06597053
nan -0.77504848]: -inf != nan
======================================================================
FAIL: test_nanpercentile_basic (numba.tests.test_array_reductions.TestArrayReductions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/vhaenel/miniconda3/envs/numba_test/lib/python3.9/site-packages/numba/tests/support.py", line 728, in tearDown
self.memory_leak_teardown()
File "/Users/vhaenel/miniconda3/envs/numba_test/lib/python3.9/site-packages/numba/tests/support.py", line 702, in memory_leak_teardown
self.assert_no_memory_leak()
File "/Users/vhaenel/miniconda3/envs/numba_test/lib/python3.9/site-packages/numba/tests/support.py", line 711, in assert_no_memory_leak
self.assertEqual(total_alloc, total_free)
AssertionError: 69 != 68
======================================================================
FAIL: test_nanquantile_basic (numba.tests.test_array_reductions.TestArrayReductions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/vhaenel/miniconda3/envs/numba_test/lib/python3.9/site-packages/numba/tests/test_array_reductions.py", line 530, in test_nanquantile_basic
self.check_percentile_and_quantile(pyfunc, q_upper_bound=1)
File "/Users/vhaenel/miniconda3/envs/numba_test/lib/python3.9/site-packages/numba/tests/test_array_reductions.py", line 372, in check_percentile_and_quantile
check(a, q)
File "/Users/vhaenel/miniconda3/envs/numba_test/lib/python3.9/site-packages/numba/tests/test_array_reductions.py", line 359, in check
self.assertPreciseEqual(got, expected, abs_tol=abs_tol)
File "/Users/vhaenel/miniconda3/envs/numba_test/lib/python3.9/site-packages/numba/tests/support.py", line 343, in assertPreciseEqual
self.fail("when comparing %s and %s: %s" % (first, second, failure_msg))
AssertionError: when comparing [ -inf -1.70182786 -0.46359554 nan -0.53228227 -inf
-1.41421824 0.57995536 -0.02271934 nan 0.17140244 -1.06597053
-inf -0.77504848] and [ nan -1.70182786 -0.46359554 nan -0.53228227 nan
-1.41421824 0.57995536 -0.02271934 nan 0.17140244 -1.06597053
nan -0.77504848]: -inf != nan
======================================================================
FAIL: test_nanquantile_basic (numba.tests.test_array_reductions.TestArrayReductions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/vhaenel/miniconda3/envs/numba_test/lib/python3.9/site-packages/numba/tests/support.py", line 728, in tearDown
self.memory_leak_teardown()
File "/Users/vhaenel/miniconda3/envs/numba_test/lib/python3.9/site-packages/numba/tests/support.py", line 702, in memory_leak_teardown
self.assert_no_memory_leak()
File "/Users/vhaenel/miniconda3/envs/numba_test/lib/python3.9/site-packages/numba/tests/support.py", line 711, in assert_no_memory_leak
self.assertEqual(total_alloc, total_free)
AssertionError: 69 != 68
======================================================================
FAIL: test_percentile_basic (numba.tests.test_array_reductions.TestArrayReductions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/vhaenel/miniconda3/envs/numba_test/lib/python3.9/site-packages/numba/tests/test_array_reductions.py", line 513, in test_percentile_basic
self.check_percentile_edge_cases(pyfunc, q_upper_bound=100)
File "/Users/vhaenel/miniconda3/envs/numba_test/lib/python3.9/site-packages/numba/tests/test_array_reductions.py", line 433, in check_percentile_edge_cases
check(a, q)
File "/Users/vhaenel/miniconda3/envs/numba_test/lib/python3.9/site-packages/numba/tests/test_array_reductions.py", line 417, in check
self.assertPreciseEqual(got, expected, abs_tol=abs_tol)
File "/Users/vhaenel/miniconda3/envs/numba_test/lib/python3.9/site-packages/numba/tests/support.py", line 343, in assertPreciseEqual
self.fail("when comparing %s and %s: %s" % (first, second, failure_msg))
AssertionError: when comparing [-inf -inf -inf 1.] and [nan nan nan 1.]: -inf != nan
======================================================================
FAIL: test_percentile_basic (numba.tests.test_array_reductions.TestArrayReductions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/vhaenel/miniconda3/envs/numba_test/lib/python3.9/site-packages/numba/tests/support.py", line 728, in tearDown
self.memory_leak_teardown()
File "/Users/vhaenel/miniconda3/envs/numba_test/lib/python3.9/site-packages/numba/tests/support.py", line 702, in memory_leak_teardown
self.assert_no_memory_leak()
File "/Users/vhaenel/miniconda3/envs/numba_test/lib/python3.9/site-packages/numba/tests/support.py", line 711, in assert_no_memory_leak
self.assertEqual(total_alloc, total_free)
AssertionError: 291 != 290
======================================================================
FAIL: test_quantile_basic (numba.tests.test_array_reductions.TestArrayReductions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/vhaenel/miniconda3/envs/numba_test/lib/python3.9/site-packages/numba/tests/test_array_reductions.py", line 525, in test_quantile_basic
self.check_percentile_edge_cases(pyfunc, q_upper_bound=1)
File "/Users/vhaenel/miniconda3/envs/numba_test/lib/python3.9/site-packages/numba/tests/test_array_reductions.py", line 433, in check_percentile_edge_cases
check(a, q)
File "/Users/vhaenel/miniconda3/envs/numba_test/lib/python3.9/site-packages/numba/tests/test_array_reductions.py", line 417, in check
self.assertPreciseEqual(got, expected, abs_tol=abs_tol)
File "/Users/vhaenel/miniconda3/envs/numba_test/lib/python3.9/site-packages/numba/tests/support.py", line 343, in assertPreciseEqual
self.fail("when comparing %s and %s: %s" % (first, second, failure_msg))
AssertionError: when comparing [-inf -inf -inf 1.] and [nan nan nan 1.]: -inf != nan
======================================================================
FAIL: test_quantile_basic (numba.tests.test_array_reductions.TestArrayReductions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/vhaenel/miniconda3/envs/numba_test/lib/python3.9/site-packages/numba/tests/support.py", line 728, in tearDown
self.memory_leak_teardown()
File "/Users/vhaenel/miniconda3/envs/numba_test/lib/python3.9/site-packages/numba/tests/support.py", line 702, in memory_leak_teardown
self.assert_no_memory_leak()
File "/Users/vhaenel/miniconda3/envs/numba_test/lib/python3.9/site-packages/numba/tests/support.py", line 711, in assert_no_memory_leak
self.assertEqual(total_alloc, total_free)
AssertionError: 291 != 290
----------------------------------------------------------------------
Ran 393 tests in 92.018s
FAILED (failures=8)
I can report the same issue arises on Numpy 1.20.0
RE: Regressions for Numba 0.53.0rc*
unit tests against NumPy 1.20.x
. I think it’s due to this (quite possibly due to a NumPy bug fix)…
Reproducer:
import numpy as np
print(f"Version: {np.__version__}")
a = np.array([-np.inf, 1],)
q = np.array([0.0, 0.1,])
print(np.nanquantile(a, q))
With 1.19:
$ python numpy_bug.py
Version: 1.19.2
[-inf -inf]
with 1.20
Version: 1.20.0
<path>/site-packages/numpy/lib/function_base.py:3963: RuntimeWarning: invalid value encountered in multiply
lerp_interpolation = asanyarray(add(a, diff_b_a*t, out=out))
<path>/site-packages/numpy/lib/function_base.py:3963: RuntimeWarning: invalid value encountered in add
lerp_interpolation = asanyarray(add(a, diff_b_a*t, out=out))
[nan nan]
Numba’s implementation matches NumPy 1.19.
Suspect this PR as the root cause of the change: https://github.com/numpy/numpy/pull/16273 and would guess at Update numpy/lib/function_base.py · numpy/numpy@2b7f671 · GitHub being the patch that changes the behaviour.
With regards to Numba 0.53.0RC3, I’m of the view that this is not a release blocking issue.
Hi, @esc!
Tried to test today (under pyvenv) with Numpy version 1.19.2, but another error occured. Anyway I treat this error as my system specific, and suggest do not take into mind.
$ python3 -m numba.tests.test_runtests --verbose
Python(25861,0x11b1a9dc0) malloc: can't allocate region
:*** mach_vm_map(size=18446744071752646656, flags: 100) failed (error code=3)
Python(25861,0x11b1a9dc0) malloc: *** set a breakpoint in malloc_error_break to debug
init_dgelsd failed init
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py", line 188, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py", line 111, in _get_module_details
__import__(pkg_name)
File "/Users/alexanderuperenko/Desktop/Python - my projects/numba_tests/lib/python3.9/site-packages/numba/__init__.py", line 21, in <module>
from numba.core import types, errors
File "/Users/alexanderuperenko/Desktop/Python - my projects/numba_tests/lib/python3.9/site-packages/numba/core/types/__init__.py", line 3, in <module>
import numpy as np
File "/Users/alexanderuperenko/Desktop/Python - my projects/numba_tests/lib/python3.9/site-packages/numpy/__init__.py", line 286, in <module>
raise RuntimeError(msg)
RuntimeError: Polyfit sanity test emitted a warning, most likely due to using a buggy Accelerate backend. If you compiled yourself, see site.cfg.example for information. Otherwise report this to the vendor that provided NumPy.
RankWarning: Polyfit may be poorly conditioned
Best regards.