Skip to content

Commit

Permalink
Add types for HistGradientBoosting max_features argument (#323)
Browse files Browse the repository at this point in the history
  • Loading branch information
ara-incom authored Oct 29, 2024
1 parent df107ae commit 6702500
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ class BaseHistGradientBoosting(BaseEstimator, ABC):
max_depth,
min_samples_leaf,
l2_regularization,
max_features,
max_bins,
categorical_features,
monotonic_cst,
Expand Down Expand Up @@ -98,6 +99,7 @@ class HistGradientBoostingRegressor(RegressorMixin, BaseHistGradientBoosting):
max_depth: None | int = None,
min_samples_leaf: Int = 20,
l2_regularization: Float = 0.0,
max_features: Float = 1.0,
max_bins: Int = 255,
categorical_features: None | MatrixLike | ArrayLike = None,
monotonic_cst: None | Mapping | ArrayLike = None,
Expand Down Expand Up @@ -144,6 +146,7 @@ class HistGradientBoostingClassifier(ClassifierMixin, BaseHistGradientBoosting):
max_depth: None | int = None,
min_samples_leaf: Int = 20,
l2_regularization: Float = 0.0,
max_features: Float = 1.0,
max_bins: Int = 255,
categorical_features: None | MatrixLike | ArrayLike = None,
monotonic_cst: None | Mapping | ArrayLike = None,
Expand Down

0 comments on commit 6702500

Please sign in to comment.