|
19 | 19 |
|
20 | 20 | from typing import Dict, List, Literal, Optional, Union
|
21 | 21 |
|
| 22 | +import bigframes_vendored.sklearn.ensemble._forest |
| 23 | +import bigframes_vendored.xgboost.sklearn |
22 | 24 | from google.cloud import bigquery
|
23 | 25 |
|
24 | 26 | import bigframes
|
25 | 27 | from bigframes.core import log_adapter
|
26 | 28 | from bigframes.ml import base, core, globals, utils
|
27 | 29 | import bigframes.pandas as bpd
|
28 |
| -import third_party.bigframes_vendored.sklearn.ensemble._forest |
29 |
| -import third_party.bigframes_vendored.xgboost.sklearn |
30 | 30 |
|
31 | 31 | _BQML_PARAMS_MAPPING = {
|
32 | 32 | "booster": "boosterType",
|
|
51 | 51 | @log_adapter.class_logger
|
52 | 52 | class XGBRegressor(
|
53 | 53 | base.SupervisedTrainablePredictor,
|
54 |
| - third_party.bigframes_vendored.xgboost.sklearn.XGBRegressor, |
| 54 | + bigframes_vendored.xgboost.sklearn.XGBRegressor, |
55 | 55 | ):
|
56 |
| - __doc__ = third_party.bigframes_vendored.xgboost.sklearn.XGBRegressor.__doc__ |
| 56 | + __doc__ = bigframes_vendored.xgboost.sklearn.XGBRegressor.__doc__ |
57 | 57 |
|
58 | 58 | def __init__(
|
59 | 59 | self,
|
@@ -208,10 +208,10 @@ def to_gbq(self, model_name: str, replace: bool = False) -> XGBRegressor:
|
208 | 208 | @log_adapter.class_logger
|
209 | 209 | class XGBClassifier(
|
210 | 210 | base.SupervisedTrainablePredictor,
|
211 |
| - third_party.bigframes_vendored.xgboost.sklearn.XGBClassifier, |
| 211 | + bigframes_vendored.xgboost.sklearn.XGBClassifier, |
212 | 212 | ):
|
213 | 213 |
|
214 |
| - __doc__ = third_party.bigframes_vendored.xgboost.sklearn.XGBClassifier.__doc__ |
| 214 | + __doc__ = bigframes_vendored.xgboost.sklearn.XGBClassifier.__doc__ |
215 | 215 |
|
216 | 216 | def __init__(
|
217 | 217 | self,
|
@@ -364,12 +364,10 @@ def to_gbq(self, model_name: str, replace: bool = False) -> XGBClassifier:
|
364 | 364 | @log_adapter.class_logger
|
365 | 365 | class RandomForestRegressor(
|
366 | 366 | base.SupervisedTrainablePredictor,
|
367 |
| - third_party.bigframes_vendored.sklearn.ensemble._forest.RandomForestRegressor, |
| 367 | + bigframes_vendored.sklearn.ensemble._forest.RandomForestRegressor, |
368 | 368 | ):
|
369 | 369 |
|
370 |
| - __doc__ = ( |
371 |
| - third_party.bigframes_vendored.sklearn.ensemble._forest.RandomForestRegressor.__doc__ |
372 |
| - ) |
| 370 | + __doc__ = bigframes_vendored.sklearn.ensemble._forest.RandomForestRegressor.__doc__ |
373 | 371 |
|
374 | 372 | def __init__(
|
375 | 373 | self,
|
@@ -531,12 +529,10 @@ def to_gbq(self, model_name: str, replace: bool = False) -> RandomForestRegresso
|
531 | 529 | @log_adapter.class_logger
|
532 | 530 | class RandomForestClassifier(
|
533 | 531 | base.SupervisedTrainablePredictor,
|
534 |
| - third_party.bigframes_vendored.sklearn.ensemble._forest.RandomForestClassifier, |
| 532 | + bigframes_vendored.sklearn.ensemble._forest.RandomForestClassifier, |
535 | 533 | ):
|
536 | 534 |
|
537 |
| - __doc__ = ( |
538 |
| - third_party.bigframes_vendored.sklearn.ensemble._forest.RandomForestClassifier.__doc__ |
539 |
| - ) |
| 535 | + __doc__ = bigframes_vendored.sklearn.ensemble._forest.RandomForestClassifier.__doc__ |
540 | 536 |
|
541 | 537 | def __init__(
|
542 | 538 | self,
|
|
0 commit comments