Skip to content

Create approx_nearest_neighbors.py #14545

Create approx_nearest_neighbors.py

Create approx_nearest_neighbors.py #14545

Triggered via pull request October 4, 2025 09:22
Status Failure
Total duration 9s
Artifacts

ruff.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

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