Implement Random Forest Classifier and Regressor from scratch (fixes #13537) #15720
Annotations
10 errors
|
Ruff (E501):
machine_learning/random_forest_classifier.py#L80
machine_learning/random_forest_classifier.py:80:89: E501 Line too long (90 > 88)
|
|
Ruff (E501):
machine_learning/random_forest_classifier.py#L62
machine_learning/random_forest_classifier.py:62:89: E501 Line too long (104 > 88)
|
|
Ruff (UP045):
machine_learning/random_forest_classifier.py#L44
machine_learning/random_forest_classifier.py:44:20: UP045 Use `X | None` for type annotations
|
|
Ruff (UP045):
machine_learning/random_forest_classifier.py#L43
machine_learning/random_forest_classifier.py:43:26: UP045 Use `X | None` for type annotations
|
|
Ruff (UP045):
machine_learning/random_forest_classifier.py#L39
machine_learning/random_forest_classifier.py:39:21: UP045 Use `X | None` for type annotations
|
|
Ruff (UP006):
machine_learning/random_forest_classifier.py#L20
machine_learning/random_forest_classifier.py:20:12: UP006 Use `dict` instead of `Dict` for type annotation
|
|
Ruff (UP035):
machine_learning/random_forest_classifier.py#L16
machine_learning/random_forest_classifier.py:16:1: UP035 `typing.Tuple` is deprecated, use `tuple` instead
|
|
Ruff (UP035):
machine_learning/random_forest_classifier.py#L16
machine_learning/random_forest_classifier.py:16:1: UP035 `typing.List` is deprecated, use `list` instead
|
|
Ruff (UP035):
machine_learning/random_forest_classifier.py#L16
machine_learning/random_forest_classifier.py:16:1: UP035 `typing.Dict` is deprecated, use `dict` instead
|
|
Ruff (UP035):
machine_learning/random_forest_classifier.py#L16
machine_learning/random_forest_classifier.py:16:1: UP035 Import from `collections.abc` instead: `Sequence`
|