Skip to content

Implement Random Forest Classifier and Regressor from scratch (fixes #13537) #15653

Implement Random Forest Classifier and Regressor from scratch (fixes #13537)

Implement Random Forest Classifier and Regressor from scratch (fixes #13537) #15653

Triggered via pull request October 20, 2025 05:24
Status Failure
Total duration 10s
Artifacts

ruff.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
Ruff (N803): machine_learning/random_forest_classifier.py#L76
machine_learning/random_forest_classifier.py:76:27: N803 Argument name `X` should be lowercase
Ruff (NPY002): machine_learning/random_forest_classifier.py#L53
machine_learning/random_forest_classifier.py:53:21: NPY002 Replace legacy `np.random.choice` call with `np.random.Generator`
Ruff (E501): machine_learning/random_forest_classifier.py#L48
machine_learning/random_forest_classifier.py:48:89: E501 Line too long (90 > 88)
Ruff (N803): machine_learning/random_forest_classifier.py#L42
machine_learning/random_forest_classifier.py:42:26: N803 Argument name `X` should be lowercase
Ruff (E501): machine_learning/random_forest_classifier.py#L39
machine_learning/random_forest_classifier.py:39:89: E501 Line too long (97 > 88)
Ruff (W293): machine_learning/random_forest_classifier.py#L34
machine_learning/random_forest_classifier.py:34:1: W293 Blank line contains whitespace
Ruff (N803): machine_learning/random_forest_classifier.py#L32
machine_learning/random_forest_classifier.py:32:19: N803 Argument name `X` should be lowercase
Ruff (W293): machine_learning/random_forest_classifier.py#L18
machine_learning/random_forest_classifier.py:18:1: W293 Blank line contains whitespace
Ruff (W293): machine_learning/random_forest_classifier.py#L16
machine_learning/random_forest_classifier.py:16:1: W293 Blank line contains whitespace
Ruff (I001): machine_learning/random_forest_classifier.py#L10
machine_learning/random_forest_classifier.py:10:1: I001 Import block is un-sorted or un-formatted