You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DOC: inconsistent monotonic_cst docstring across forest estimators #34222
While RandomForestRegressor, ExtraTreesClassifier, and ExtraTreesRegressor use:
- 1: monotonically increasing
- -1: monotonically decreasing
Both should use the same phrasing. The adjective form
("monotonically increasing/decreasing") is more grammatically
consistent with how constraints are described elsewhere.
Steps to reproduce
Open sklearn/ensemble/_forest.py and search for monotonic_cst.
Suggested fix
Add trailing comma: (n_features,) in all four classes
Standardize wording to "monotonically increasing" / "monotonically
decreasing" across all four classes
Activity