Control: tags -1 + fixed-upstream patch Control: forwarded -1 https://github.com/scikit-learn/scikit-learn/commit/63f92d4adb61aed58d656544cc6caa9d68cb6065
On Sun, 13 Nov 2022 12:26:18 +0000 Graham Inggs wrote:
> scikit-learn FTBFS with Python 3.11 as a supported version.
I noticed that upstream has some commits adding 3.11 support,
but none of them seem like they would fix the build failure.
Looking at the changes to the file with the failing test I found the
commit above and then confirmed that this hunk from it fixes the build.
--- a/sklearn/datasets/tests/test_lfw.py
+++ b/sklearn/datasets/tests/test_lfw.py
@@ -84,8 +84,8 @@ def setup_module():
for i in range(5):
first_name, second_name = random_state.sample(FAKE_NAMES, 2)
- first_index = random_state.choice(np.arange(counts[first_name]))
- second_index = random_state.choice(np.arange(counts[second_name]))
+ first_index = np_rng.choice(np.arange(counts[first_name]))
+ second_index = np_rng.choice(np.arange(counts[second_name]))
f.write(
(
"%s\t%d\t%s\t%d\n"
--
bye,
pabs
https://wiki.debian.org/PaulWise
signature.asc
Description: This is a digitally signed message part

