Source: python-pomegranate
Version: 0.14.8-4
Severity: serious
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Dear maintainer,
your package has an autopkgtest regression with NumPy 1.26.
Hopefully relevent excerpt from the test log:
52s > ???
52s E ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
52s
52s pomegranate/kmeans.pyx:232: ValueError
52s =============================== warnings summary ===============================
52s ../../../../usr/lib/python3/dist-packages/dateutil/tz/tz.py:37
52s /usr/lib/python3/dist-packages/dateutil/tz/tz.py:37: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.
fromtimestamp(timestamp, datetime.UTC).
52s EPOCH = datetime.datetime.utcfromtimestamp(0)
52s
52s tests/test_custom_distributions.py: 29600 warnings
52s tests/test_hmm.py: 375 warnings
52s /usr/lib/python3/dist-packages/joblib/parallel.py:1792: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this
operation. (Deprecated NumPy 1.25.)
52s res = func(*args, **kwargs)
52s
52s tests/test_custom_distributions.py: 40 warnings
52s /tmp/autopkgtest-lxc.qczb1z7m/downtmp/autopkgtest_tmp/tests/test_custom_distributions.py:223: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from
your array before performing this operation. (Deprecated NumPy 1.25.)
52s assert_array_almost_equal(model1.log_probability(X), model2.log_probability(X))
52s
52s tests/test_custom_distributions.py: 400 warnings
52s /tmp/autopkgtest-lxc.qczb1z7m/downtmp/autopkgtest_tmp/tests/test_custom_distributions.py:232: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from
your array before performing this operation. (Deprecated NumPy 1.25.)
52s assert_array_almost_equal(model1.log_probability(X), model2.log_probability(X))
52s
52s tests/test_custom_distributions.py: 200 warnings
52s /tmp/autopkgtest-lxc.qczb1z7m/downtmp/autopkgtest_tmp/tests/test_custom_distributions.py:345: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from
your array before performing this operation. (Deprecated NumPy 1.25.)
52s assert_array_almost_equal(model1.log_probability(X), model2.log_probability(X))
52s
52s tests/test_custom_distributions.py: 200 warnings
52s /tmp/autopkgtest-lxc.qczb1z7m/downtmp/autopkgtest_tmp/tests/test_custom_distributions.py:359: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from
your array before performing this operation. (Deprecated NumPy 1.25.)
52s assert_array_almost_equal(model1.predict(X), model2.predict(X))
52s
52s tests/test_custom_distributions.py: 200 warnings
52s /tmp/autopkgtest-lxc.qczb1z7m/downtmp/autopkgtest_tmp/tests/test_custom_distributions.py:373: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from
your array before performing this operation. (Deprecated NumPy 1.25.)
52s assert_array_almost_equal(model1.predict_proba(X), model2.predict_proba(X))
52s
52s tests/test_custom_distributions.py: 200 warnings
52s /tmp/autopkgtest-lxc.qczb1z7m/downtmp/autopkgtest_tmp/tests/test_custom_distributions.py:387: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from
your array before performing this operation. (Deprecated NumPy 1.25.)
52s assert_array_almost_equal(model1.predict_log_proba(X), model2.predict_log_proba(X))
52s
52s tests/test_custom_distributions.py: 200 warnings
52s /tmp/autopkgtest-lxc.qczb1z7m/downtmp/autopkgtest_tmp/tests/test_custom_distributions.py:402: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from
your array before performing this operation. (Deprecated NumPy 1.25.)
52s assert_array_almost_equal(model1.log_probability(X), model2.log_probability(X))
52s
52s tests/test_custom_distributions.py: 2000 warnings
52s /tmp/autopkgtest-lxc.qczb1z7m/downtmp/autopkgtest_tmp/tests/test_custom_distributions.py:411: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from
your array before performing this operation. (Deprecated NumPy 1.25.)
52s assert_array_almost_equal(model1.log_probability(X), model2.log_probability(X))
52s
52s tests/test_custom_distributions.py: 40 warnings
52s /tmp/autopkgtest-lxc.qczb1z7m/downtmp/autopkgtest_tmp/tests/test_custom_distributions.py:493: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from
your array before performing this operation. (Deprecated NumPy 1.25.)
52s assert_array_almost_equal(model1.log_probability(X), model2.log_probability(X))
52s
52s tests/test_custom_distributions.py: 400 warnings
52s /tmp/autopkgtest-lxc.qczb1z7m/downtmp/autopkgtest_tmp/tests/test_custom_distributions.py:504: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from
your array before performing this operation. (Deprecated NumPy 1.25.)
52s assert_array_almost_equal(model1.log_probability(X), model2.log_probability(X))
52s
52s tests/test_custom_distributions.py: 200 warnings
52s /tmp/autopkgtest-lxc.qczb1z7m/downtmp/autopkgtest_tmp/tests/test_custom_distributions.py:620: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from
your array before performing this operation. (Deprecated NumPy 1.25.)
52s assert_array_almost_equal(model1.log_probability(X), model2.log_probability(X))
52s
52s tests/test_custom_distributions.py: 200 warnings
52s /tmp/autopkgtest-lxc.qczb1z7m/downtmp/autopkgtest_tmp/tests/test_custom_distributions.py:634: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from
your array before performing this operation. (Deprecated NumPy 1.25.)
52s assert_array_almost_equal(model1.predict(X), model2.predict(X))
52s
52s tests/test_custom_distributions.py: 200 warnings
52s /tmp/autopkgtest-lxc.qczb1z7m/downtmp/autopkgtest_tmp/tests/test_custom_distributions.py:648: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from
your array before performing this operation. (Deprecated NumPy 1.25.)
52s assert_array_almost_equal(model1.predict_proba(X), model2.predict_proba(X))
52s
52s tests/test_custom_distributions.py: 200 warnings
52s /tmp/autopkgtest-lxc.qczb1z7m/downtmp/autopkgtest_tmp/tests/test_custom_distributions.py:662: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from
your array before performing this operation. (Deprecated NumPy 1.25.)
52s assert_array_almost_equal(model1.predict_log_proba(X), model2.predict_log_proba(X))
52s
52s tests/test_custom_distributions.py: 200 warnings
52s /tmp/autopkgtest-lxc.qczb1z7m/downtmp/autopkgtest_tmp/tests/test_custom_distributions.py:679: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from
your array before performing this operation. (Deprecated NumPy 1.25.)
52s assert_array_almost_equal(model1.log_probability(X), model2.log_probability(X))
52s
52s tests/test_custom_distributions.py: 2000 warnings
52s /tmp/autopkgtest-lxc.qczb1z7m/downtmp/autopkgtest_tmp/tests/test_custom_distributions.py:690: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from
your array before performing this operation. (Deprecated NumPy 1.25.)
52s assert_array_almost_equal(model1.log_probability(X), model2.log_probability(X))
52s
52s tests/test_custom_distributions.py: 10 warnings
52s /tmp/autopkgtest-lxc.qczb1z7m/downtmp/autopkgtest_tmp/tests/test_custom_distributions.py:700: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from
your array before performing this operation. (Deprecated NumPy 1.25.)
52s assert_array_almost_equal(model1.log_probability(X), model2.log_probability(X))
52s
52s tests/test_custom_distributions.py: 30 warnings
52s /tmp/autopkgtest-lxc.qczb1z7m/downtmp/autopkgtest_tmp/tests/test_custom_distributions.py:705: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from
your array before performing this operation. (Deprecated NumPy 1.25.)
52s assert_array_equal(model1.predict(X), model2.predict(X))
52s
52s tests/test_custom_distributions.py: 30 warnings
52s /tmp/autopkgtest-lxc.qczb1z7m/downtmp/autopkgtest_tmp/tests/test_custom_distributions.py:710: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from
your array before performing this operation. (Deprecated NumPy 1.25.)
52s assert_array_almost_equal(model1.predict_proba(X), model2.predict_proba(X))
52s
52s tests/test_custom_distributions.py: 30 warnings
52s /tmp/autopkgtest-lxc.qczb1z7m/downtmp/autopkgtest_tmp/tests/test_custom_distributions.py:715: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from
your array before performing this operation. (Deprecated NumPy 1.25.)
52s assert_array_almost_equal(model1.predict_log_proba(X), model2.predict_log_proba(X))
52s
52s tests/test_custom_distributions.py: 10 warnings
52s /tmp/autopkgtest-lxc.qczb1z7m/downtmp/autopkgtest_tmp/tests/test_custom_distributions.py:724: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from
your array before performing this operation. (Deprecated NumPy 1.25.)
52s assert_array_almost_equal(model1.log_probability(X), model2.log_probability(X))
52s
52s tests/test_custom_distributions.py::test_custom_normal_hmm_from_samples
52s tests/test_custom_distributions.py::test_custom_normal_hmm_from_samples
52s tests/test_custom_distributions.py::test_custom_normal_hmm_from_samples
52s tests/test_custom_distributions.py::test_custom_normal_hmm_from_samples
52s /tmp/autopkgtest-lxc.qczb1z7m/downtmp/autopkgtest_tmp/tests/test_custom_distributions.py:733: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from
your array before performing this operation. (Deprecated NumPy 1.25.)
52s assert_array_almost_equal(model1.log_probability(X), model2.log_probability(X))
52s
52s tests/test_custom_distributions.py: 50 warnings
52s /tmp/autopkgtest-lxc.qczb1z7m/downtmp/autopkgtest_tmp/tests/test_custom_distributions.py:787: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from
your array before performing this operation. (Deprecated NumPy 1.25.)
52s assert_array_almost_equal(model1.log_probability(X), model2.log_probability(X))
52s
52s tests/test_custom_distributions.py: 150 warnings
52s /tmp/autopkgtest-lxc.qczb1z7m/downtmp/autopkgtest_tmp/tests/test_custom_distributions.py:792: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from
your array before performing this operation. (Deprecated NumPy 1.25.)
52s assert_array_almost_equal(model1.predict(X), model2.predict(X))
52s
52s tests/test_custom_distributions.py: 150 warnings
52s /tmp/autopkgtest-lxc.qczb1z7m/downtmp/autopkgtest_tmp/tests/test_custom_distributions.py:797: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from
your array before performing this operation. (Deprecated NumPy 1.25.)
52s assert_array_almost_equal(model1.predict_proba(X), model2.predict_proba(X))
52s
52s tests/test_custom_distributions.py: 150 warnings
52s /tmp/autopkgtest-lxc.qczb1z7m/downtmp/autopkgtest_tmp/tests/test_custom_distributions.py:802: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from
your array before performing this operation. (Deprecated NumPy 1.25.)
52s assert_array_almost_equal(model1.predict_log_proba(X), model2.predict_log_proba(X))
52s
52s tests/test_custom_distributions.py: 30 warnings
52s /tmp/autopkgtest-lxc.qczb1z7m/downtmp/autopkgtest_tmp/tests/test_custom_distributions.py:811: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from
your array before performing this operation. (Deprecated NumPy 1.25.)
52s assert_array_almost_equal(model1.log_probability(X), model2.log_probability(X))
52s
52s tests/test_custom_distributions.py: 20 warnings
52s /tmp/autopkgtest-lxc.qczb1z7m/downtmp/autopkgtest_tmp/tests/test_custom_distributions.py:820: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from
your array before performing this operation. (Deprecated NumPy 1.25.)
52s assert_array_almost_equal(model1.log_probability(X), model2.log_probability(X))
52s
52s -- Docs:
https://docs.pytest.org/en/stable/how-to/capture-warnings.html
52s =========================== short test summary info ============================
52s ERROR tests/test_kmeans.py::test_kmeans_from_samples - ValueError: The truth ...
52s ERROR tests/test_kmeans.py::test_kmeans_from_samples_parallel - ValueError: T...
52s ERROR tests/test_kmeans.py::test_kmeans_predict - ValueError: The truth value...
52s ERROR tests/test_kmeans.py::test_kmeans_predict_parallel - ValueError: The tr...
52s ERROR tests/test_kmeans.py::test_kmeans_predict_large - ValueError: The truth...
52s ERROR tests/test_kmeans.py::test_kmeans_predict_large_parallel - ValueError: ...
52s ERROR tests/test_kmeans.py::test_kmeans_fit - ValueError: The truth value of ...
52s ERROR tests/test_kmeans.py::test_kmeans_fit_parallel - ValueError: The truth ...
52s ERROR tests/test_kmeans.py::test_kmeans_multiple_init - ValueError: The truth...
52s ERROR tests/test_kmeans.py::test_kmeans_ooc_from_samples - ValueError: The tr...
52s ERROR tests/test_kmeans.py::test_kmeans_ooc_fit - ValueError: The truth value...
52s ERROR tests/test_kmeans.py::test_kmeans_minibatch_from_samples - ValueError: ...
52s ERROR tests/test_kmeans.py::test_kmeans_minibatch_fit - ValueError: The truth...
52s ERROR tests/test_kmeans.py::test_kmeans_nan_from_samples - ValueError: The tr...
52s ERROR tests/test_kmeans.py::test_kmeans_nan_from_samples_parallel - ValueErro...
52s ERROR tests/test_kmeans.py::test_kmeans_nan_fit - ValueError: The truth value...
52s ERROR tests/test_kmeans.py::test_kmeans_nan_fit_parallel - ValueError: The tr...
52s ERROR tests/test_kmeans.py::test_kmeans_nan_fit_large - ValueError: The truth...
52s ERROR tests/test_kmeans.py::test_kmeans_nan_fit_large_parallel - ValueError: ...
52s ERROR tests/test_kmeans.py::test_kmeans_nan_predict - ValueError: The truth v...
52s ERROR tests/test_kmeans.py::test_kmeans_nan_predict_parallel - ValueError: Th...
52s ERROR tests/test_kmeans.py::test_kmeans_nan_large_predict - ValueError: The t...
52s ERROR tests/test_kmeans.py::test_kmeans_nan_large_predict_parallel - ValueErr...
52s ERROR tests/test_kmeans.py::test_kmeans_nan_multiple_init - ValueError: The t...
52s ERROR tests/test_kmeans.py::test_kmeans_ooc_nan_from_samples - ValueError: Th...
52s ERROR tests/test_kmeans.py::test_kmeans_ooc_nan_fit - ValueError: The truth v...
52s ERROR tests/test_kmeans.py::test_kmeans_minibatch_nan_from_samples - ValueErr...
52s ERROR tests/test_kmeans.py::test_kmeans_minibatch_nan_fit - ValueError: The t...
52s =============== 570 passed, 37520 warnings, 28 errors in 12.06s ================
Cheers
Timo
-----BEGIN PGP SIGNATURE-----
iQGzBAEBCgAdFiEEJvtDgpxjkjCIVtam+C8H+466LVkFAmX7CZ0ACgkQ+C8H+466 LVmVkwwAuOtQXo3x25mlH+PZeeqrV63YJe7jkGTcc/YZdUCSyusbB1uo4l8yTDB5 2NOulpwngUDermnKKXv0ywgFaWMODDLUb9Sar0HGWZjO6rOCD81HQ5fDt2ZTtFUk 7quuAq/XQrUAaMtesFKumXX/xAAXnLZMf3N0GdcoqxCJWua90DdaFwHmuKgsIX3V jYuBI/C9+C/zyixXbBVhaRD+QrUXtqSWpxL2Y/Spahdk0c5Ce0WSSf/pDWzIY4GF Oy6Sx1RJsiyvUvsZ8mHBmVsI5UEDCamaHfBjTPCLgg6BPp5GqNSX1bnGqIMxwH9x FxGpewdpHcGKYqhAqxnyx7IG7bK0qztVmLIcPcxGE5wg8XaH40B1lsPCFkjnVa2q nfJtKwpBc64iGPUg6cidzC+hI3n48RU0FPeSqU6OAL1zrLyLD+LKDfLwlZbQALEX D07xrJfZ3l82jc+yowGQicvtwk8mwv825P+hGjMFLazDBeIsgA7EN8HeFoucDk5/
A6KgQ75O
=zOCg
-----END PGP SIGNATURE-----
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)