Skip to content

Commit

Permalink
api changes with the documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
valenad1 committed Sep 19, 2023
1 parent 43f3da0 commit 2722f60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions h2o-py/h2o/estimators/adaboost.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def __init__(self,
:param n_estimators: Number of AdaBoost weak learners.
Defaults to ``50``.
:type n_estimators: int
:param weak_learner: Weak learner
:param weak_learner: Choose a weak learner type. Defaults to DRF.
Defaults to ``"auto"``.
:type weak_learner: Literal["auto", "drf", "glm"]
:param learn_rate: Learning rate (from 0.0 to 1.0)
Expand Down Expand Up @@ -178,7 +178,7 @@ def n_estimators(self, n_estimators):
@property
def weak_learner(self):
"""
Weak learner
Choose a weak learner type. Defaults to DRF.
Type: ``Literal["auto", "drf", "glm"]``, defaults to ``"auto"``.
"""
Expand Down
2 changes: 1 addition & 1 deletion h2o-r/h2o-package/R/adaboost.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#' you set weight = 0 for a row, the returned prediction frame at that row is zero and this is incorrect. To get
#' an accurate prediction, remove all rows with weight == 0.
#' @param n_estimators Number of AdaBoost weak learners. Defaults to 50.
#' @param weak_learner Weak learner Must be one of: "AUTO", "DRF", "GLM". Defaults to AUTO.
#' @param weak_learner Choose a weak learner type. Defaults to DRF. Must be one of: "AUTO", "DRF", "GLM". Defaults to AUTO.
#' @param learn_rate Learning rate (from 0.0 to 1.0) Defaults to 0.5.
#' @param seed Seed for random numbers (affects certain parts of the algo that are stochastic and those might or might not be enabled by default).
#' Defaults to -1 (time-based random number).
Expand Down

0 comments on commit 2722f60

Please sign in to comment.