|
12 | 12 | # See the License for the specific language governing permissions and
|
13 | 13 | # limitations under the License.
|
14 | 14 |
|
15 |
| -"""Ensemble models. This module is styled after Scikit-Learn's ensemble module: |
| 15 | +"""Ensemble models. This module is styled after scikit-learn's ensemble module: |
16 | 16 | https://scikit-learn.org/stable/modules/ensemble.html"""
|
17 | 17 |
|
18 | 18 | from __future__ import annotations
|
@@ -190,9 +190,9 @@ def to_gbq(self, model_name: str, replace: bool = False) -> XGBRegressor:
|
190 | 190 |
|
191 | 191 | Args:
|
192 | 192 | model_name (str):
|
193 |
| - the name of the model. |
| 193 | + The name of the model. |
194 | 194 | replace (bool, default False):
|
195 |
| - whether to replace if the model already exists. Default to False. |
| 195 | + Whether to replace if the model already exists. Default to False. |
196 | 196 |
|
197 | 197 | Returns: saved model."""
|
198 | 198 | if not self._bqml_model:
|
@@ -343,9 +343,9 @@ def to_gbq(self, model_name: str, replace: bool = False) -> XGBClassifier:
|
343 | 343 |
|
344 | 344 | Args:
|
345 | 345 | model_name (str):
|
346 |
| - the name of the model. |
| 346 | + The name of the model. |
347 | 347 | replace (bool, default False):
|
348 |
| - whether to replace if the model already exists. Default to False. |
| 348 | + Whether to replace if the model already exists. Default to False. |
349 | 349 |
|
350 | 350 | Returns:
|
351 | 351 | XGBClassifier: saved model."""
|
@@ -506,9 +506,9 @@ def to_gbq(self, model_name: str, replace: bool = False) -> RandomForestRegresso
|
506 | 506 |
|
507 | 507 | Args:
|
508 | 508 | model_name (str):
|
509 |
| - the name of the model. |
| 509 | + The name of the model. |
510 | 510 | replace (bool, default False):
|
511 |
| - whether to replace if the model already exists. Default to False. |
| 511 | + Whether to replace if the model already exists. Default to False. |
512 | 512 |
|
513 | 513 | Returns:
|
514 | 514 | RandomForestRegressor: saved model."""
|
@@ -669,9 +669,9 @@ def to_gbq(self, model_name: str, replace: bool = False) -> RandomForestClassifi
|
669 | 669 |
|
670 | 670 | Args:
|
671 | 671 | model_name (str):
|
672 |
| - the name of the model. |
| 672 | + The name of the model. |
673 | 673 | replace (bool, default False):
|
674 |
| - whether to replace if the model already exists. Default to False. |
| 674 | + Whether to replace if the model already exists. Default to False. |
675 | 675 |
|
676 | 676 | Returns:
|
677 | 677 | RandomForestClassifier: saved model."""
|
|
0 commit comments