⚠️ CI failed on Linux_Nightly_PyPy.pypy3 ⚠️

**CI is still failing on [Linux_Nightly_PyPy.pypy3](https://dev.azure.com/scikit-learn/scikit-learn/_build/results?buildId=59274&view=logs&j=0b16f832-29d6-5b92-1c23-eb006f606a66)** (Sep 18, 2023)
Unable to find junit file. Please see link for details.

COMMENT:
Here is the output of the memory usage with memray (on CPython, local machine), top 10 offenders:

<details>

```
==================================================================== MEMRAY REPORT =====================================================================
Allocations results for sklearn/tests/test_random_projection.py::test_random_projection_numerical_consistency[GaussianRandomProjection]

         📦 Total memory allocated: 348.7MiB
         📏 Total allocations: 208
         📊 Histogram of allocation sizes: |▃ ▁ ▁ ▂ █|
         🥇 Biggest allocating functions:
                - within_tol:/Users/ogrisel/mambaforge/envs/dev/lib/python3.11/site-packages/numpy/core/numeric.py:2361 -> 134.2MiB
                - assert_array_compare:/Users/ogrisel/mambaforge/envs/dev/lib/python3.11/site-packages/numpy/testing/_private/utils.py:799 -> 94.7MiB
                - _gaussian_random_matrix:/Users/ogrisel/code/scikit-learn/sklearn/random_projection.py:196 -> 63.1MiB
                - fit:/Users/ogrisel/code/scikit-learn/sklearn/random_projection.py:417 -> 31.6MiB
                - isclose:/Users/ogrisel/mambaforge/envs/dev/lib/python3.11/site-packages/numpy/core/numeric.py:2378 -> 7.9MiB


Allocations results for sklearn/ensemble/tests/test_iforest.py::test_iforest_with_n_jobs_does_not_segfault

         📦 Total memory allocated: 324.9MiB
         📏 Total allocations: 1052
         📊 Histogram of allocation sizes: |▆       █|
         🥇 Biggest allocating functions:
                - __init__:/Users/ogrisel/mambaforge/envs/dev/lib/python3.11/site-packages/scipy/sparse/_coo.py:190 -> 129.7MiB
                - _array_indexing:/Users/ogrisel/code/scikit-learn/sklearn/utils/__init__.py:186 -> 65.5MiB
                - __init__:/Users/ogrisel/mambaforge/envs/dev/lib/python3.11/site-packages/scipy/sparse/_coo.py:191 -> 64.8MiB
                - _check:/Users/ogrisel/mambaforge/envs/dev/lib/python3.11/site-packages/scipy/sparse/_coo.py:279 -> 32.4MiB
                - _check:/Users/ogrisel/mambaforge/envs/dev/lib/python3.11/site-packages/scipy/sparse/_coo.py:278 -> 32.4MiB


Allocations results for sklearn/tests/test_kernel_approximation.py::test_polynomial_count_sketch[0-3-5000-0.1]

         📦 Total memory allocated: 150.0MiB
         📏 Total allocations: 3118
         📊 Histogram of allocation sizes: |▂ ▅ █ ▅ █|
         🥇 Biggest allocating functions:
                - c2c:/Users/ogrisel/mambaforge/envs/dev/lib/python3.11/site-packages/scipy/fft/_pocketfft/basic.py:31 -> 68.7MiB
                - transform:/Users/ogrisel/code/scikit-learn/sklearn/kernel_approximation.py:217 -> 34.3MiB
                - _wrapreduction:/Users/ogrisel/mambaforge/envs/dev/lib/python3.11/site-packages/numpy/core/fromnumeric.py:86 -> 22.9MiB
                - _wrapreduction:/Users/ogrisel/mambaforge/envs/dev/lib/python3.11/site-packages/numpy/core/fromnumeric.py:86 -> 22.9MiB
                - safe_sparse_dot:/Users/ogrisel/code/scikit-learn/sklearn/utils/extmath.py:193 -> 703.1KiB


Allocations results for sklearn/tests/test_kernel_approximation.py::test_polynomial_count_sketch[2.5-3-5000-2.5]

         📦 Total memory allocated: 149.9MiB
         📏 Total allocations: 3136
         📊 Histogram of allocation sizes: |▂ ▅ ▂ ▅ █|
         🥇 Biggest allocating functions:
                - c2c:/Users/ogrisel/mambaforge/envs/dev/lib/python3.11/site-packages/scipy/fft/_pocketfft/basic.py:31 -> 68.7MiB
                - transform:/Users/ogrisel/code/scikit-learn/sklearn/kernel_approximation.py:217 -> 34.3MiB
                - _wrapreduction:/Users/ogrisel/mambaforge/envs/dev/lib/python3.11/site-packages/numpy/core/fromnumeric.py:86 -> 22.9MiB
                - _wrapreduction:/Users/ogrisel/mambaforge/envs/dev/lib/python3.11/site-packages/numpy/core/fromnumeric.py:86 -> 22.9MiB
                - safe_sparse_dot:/Users/ogrisel/code/scikit-learn/sklearn/utils/extmath.py:193 -> 703.1KiB


Allocations results for sklearn/tests/test_kernel_approximation.py::test_polynomial_count_sketch[2.5-3-5000-1]

         📦 Total memory allocated: 149.9MiB
         📏 Total allocations: 3136
         📊 Histogram of allocation sizes: |▂ ▅ ▂ ▅ █|
         🥇 Biggest allocating functions:
                - c2c:/Users/ogrisel/mambaforge/envs/dev/lib/python3.11/site-packages/scipy/fft/_pocketfft/basic.py:31 -> 68.7MiB
                - transform:/Users/ogrisel/code/scikit-learn/sklearn/kernel_approximation.py:217 -> 34.3MiB
                - _wrapreduction:/Users/ogrisel/mambaforge/envs/dev/lib/python3.11/site-packages/numpy/core/fromnumeric.py:86 -> 22.9MiB
                - _wrapreduction:/Users/ogrisel/mambaforge/envs/dev/lib/python3.11/site-packages/numpy/core/fromnumeric.py:86 -> 22.9MiB
                - safe_sparse_dot:/Users/ogrisel/code/scikit-learn/sklearn/utils/extmath.py:193 -> 703.1KiB


Allocations results for sklearn/tests/test_kernel_approximation.py::test_polynomial_count_sketch[2.5-3-5000-0.1]

         📦 Total memory allocated: 149.9MiB
         📏 Total allocations: 3136
         📊 Histogram of allocation sizes: |▂ ▅ ▂ ▅ █|
         🥇 Biggest allocating functions:
                - c2c:/Users/ogrisel/mambaforge/envs/dev/lib/python3.11/site-packages/scipy/fft/_pocketfft/basic.py:31 -> 68.7MiB
                - transform:/Users/ogrisel/code/scikit-learn/sklearn/kernel_approximation.py:217 -> 34.3MiB
                - _wrapreduction:/Users/ogrisel/mambaforge/envs/dev/lib/python3.11/site-packages/numpy/core/fromnumeric.py:86 -> 22.9MiB
                - _wrapreduction:/Users/ogrisel/mambaforge/envs/dev/lib/python3.11/site-packages/numpy/core/fromnumeric.py:86 -> 22.9MiB
                - safe_sparse_dot:/Users/ogrisel/code/scikit-learn/sklearn/utils/extmath.py:193 -> 703.1KiB


Allocations results for sklearn/tests/test_kernel_approximation.py::test_polynomial_count_sketch[0-3-5000-1]

         📦 Total memory allocated: 149.9MiB
         📏 Total allocations: 3108
         📊 Histogram of allocation sizes: |▂ ▅ ▂ ▅ █|
         🥇 Biggest allocating functions:
                - c2c:/Users/ogrisel/mambaforge/envs/dev/lib/python3.11/site-packages/scipy/fft/_pocketfft/basic.py:31 -> 68.7MiB
                - transform:/Users/ogrisel/code/scikit-learn/sklearn/kernel_approximation.py:217 -> 34.3MiB
                - _wrapreduction:/Users/ogrisel/mambaforge/envs/dev/lib/python3.11/site-packages/numpy/core/fromnumeric.py:86 -> 22.9MiB
                - _wrapreduction:/Users/ogrisel/mambaforge/envs/dev/lib/python3.11/site-packages/numpy/core/fromnumeric.py:86 -> 22.9MiB
                - safe_sparse_dot:/Users/ogrisel/code/scikit-learn/sklearn/utils/extmath.py:193 -> 703.1KiB


Allocations results for sklearn/tests/test_kernel_approximation.py::test_polynomial_count_sketch[0-3-5000-2.5]

         📦 Total memory allocated: 149.9MiB
         📏 Total allocations: 3108
         📊 Histogram of allocation sizes: |▂ ▅ ▂ ▅ █|
         🥇 Biggest allocating functions:
                - c2c:/Users/ogrisel/mambaforge/envs/dev/lib/python3.11/site-packages/scipy/fft/_pocketfft/basic.py:31 -> 68.7MiB
                - transform:/Users/ogrisel/code/scikit-learn/sklearn/kernel_approximation.py:217 -> 34.3MiB
                - _wrapreduction:/Users/ogrisel/mambaforge/envs/dev/lib/python3.11/site-packages/numpy/core/fromnumeric.py:86 -> 22.9MiB
                - _wrapreduction:/Users/ogrisel/mambaforge/envs/dev/lib/python3.11/site-packages/numpy/core/fromnumeric.py:86 -> 22.9MiB
                - safe_sparse_dot:/Users/ogrisel/code/scikit-learn/sklearn/utils/extmath.py:193 -> 703.1KiB


Allocations results for sklearn/tests/test_kernel_approximation.py::test_skewed_chi2_sampler

         📦 Total memory allocated: 103.2MiB
         📏 Total allocations: 217
         📊 Histogram of allocation sizes: |▄ █    |
         🥇 Biggest allocating functions:
                - test_skewed_chi2_sampler:/Users/ogrisel/code/scikit-learn/sklearn/tests/test_kernel_approximation.py:179 -> 103.0MiB
                - test_skewed_chi2_sampler:/Users/ogrisel/code/scikit-learn/sklearn/tests/test_kernel_approximation.py:174 -> 117.2KiB
                - test_skewed_chi2_sampler:/Users/ogrisel/code/scikit-learn/sklearn/tests/test_kernel_approximation.py:173 -> 117.2KiB
                - wrapper:/Users/ogrisel/mambaforge/envs/dev/lib/python3.11/site-packages/pytest_memray/plugin.py:157 -> 2.1KiB


Allocations results for sklearn/ensemble/_hist_gradient_boosting/tests/test_gradient_boosting.py::test_poisson

         📦 Total memory allocated: 99.4MiB
         📏 Total allocations: 327946
         📊 Histogram of allocation sizes: |█ ▅ ▄ ▂  |
         🥇 Biggest allocating functions:
                - split_next:/Users/ogrisel/code/scikit-learn/sklearn/ensemble/_hist_gradient_boosting/grower.py:583 -> 1.5MiB
                - split_next:/Users/ogrisel/code/scikit-learn/sklearn/ensemble/_hist_gradient_boosting/grower.py:587 -> 1006.7KiB
                - _array_indexing:/Users/ogrisel/code/scikit-learn/sklearn/utils/__init__.py:186 -> 472.7KiB
                - dot:<__array_function__ internals>:200 -> 468.8KiB
```

</details>

so this confirms that `test_polynomial_count_sketch` is a high memory user and reinforce the memory usage suspicion.

Labels: Bug, Needs Investigation