Skip to content

Create approx_nearest_neighbours.py #14889

Create approx_nearest_neighbours.py

Create approx_nearest_neighbours.py #14889

Triggered via pull request October 7, 2025 06:34
Status Failure
Total duration 17s
Artifacts

ruff.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

5 errors
ruff
Process completed with exit code 1.
Ruff (NPY002): machine_learning/approx_nearest_neighbours.py#L53
machine_learning/approx_nearest_neighbours.py:53:23: NPY002 Replace legacy `np.random.randn` call with `np.random.Generator`
Ruff (NPY002): machine_learning/approx_nearest_neighbours.py#L51
machine_learning/approx_nearest_neighbours.py:51:9: NPY002 Replace legacy `np.random.seed` call with `np.random.Generator`
Ruff (F401): machine_learning/approx_nearest_neighbours.py#L23
machine_learning/approx_nearest_neighbours.py:23:26: F401 `numpy.linalg.norm` imported but unused
Ruff (I001): machine_learning/approx_nearest_neighbours.py#L20
machine_learning/approx_nearest_neighbours.py:20:1: I001 Import block is un-sorted or un-formatted