Implement Random Forest Classifier and Regressor from scratch (fixes #13537) #15721
Annotations
10 errors
|
Ruff (UP045):
machine_learning/random_forest_classifier.py#L116
machine_learning/random_forest_classifier.py:116:16: UP045 Use `X | None` for type annotations
|
|
Ruff (UP006):
machine_learning/random_forest_classifier.py#L116
machine_learning/random_forest_classifier.py:116:10: UP006 Use `tuple` instead of `Tuple` for type annotation
|
|
Ruff (UP045):
machine_learning/random_forest_classifier.py#L45
machine_learning/random_forest_classifier.py:45:20: UP045 Use `X | None` for type annotations
|
|
Ruff (UP045):
machine_learning/random_forest_classifier.py#L44
machine_learning/random_forest_classifier.py:44:26: UP045 Use `X | None` for type annotations
|
|
Ruff (UP045):
machine_learning/random_forest_classifier.py#L40
machine_learning/random_forest_classifier.py:40:21: UP045 Use `X | None` for type annotations
|
|
Ruff (UP006):
machine_learning/random_forest_classifier.py#L21
machine_learning/random_forest_classifier.py:21:12: UP006 Use `dict` instead of `Dict` for type annotation
|
|
Ruff (UP035):
machine_learning/random_forest_classifier.py#L17
machine_learning/random_forest_classifier.py:17:1: UP035 `typing.Tuple` is deprecated, use `tuple` instead
|
|
Ruff (UP035):
machine_learning/random_forest_classifier.py#L17
machine_learning/random_forest_classifier.py:17:1: UP035 `typing.List` is deprecated, use `list` instead
|
|
Ruff (UP035):
machine_learning/random_forest_classifier.py#L17
machine_learning/random_forest_classifier.py:17:1: UP035 `typing.Dict` is deprecated, use `dict` instead
|
|
Ruff (UP035):
machine_learning/random_forest_classifier.py#L17
machine_learning/random_forest_classifier.py:17:1: UP035 Import from `collections.abc` instead: `Sequence`
|