@@ -64,8 +64,8 @@ class PaLM2TextGenerator(base.BaseEstimator):
64
64
BQ session to create the model. If None, use the global default session.
65
65
connection_name (str or None):
66
66
Connection to connect with remote service. str of the format <PROJECT_NUMBER/PROJECT_ID>.<LOCATION>.<CONNECTION_ID>.
67
- if None, use default connection in session context. BigQuery DataFrame will try to create the connection and attach
68
- permission if the connection isn't fully setup .
67
+ If None, use default connection in session context. BigQuery DataFrame will try to create the connection and attach
68
+ permission if the connection isn't fully set up .
69
69
max_iterations (Optional[int], Default to 300):
70
70
The number of steps to run when performing supervised tuning.
71
71
"""
@@ -191,7 +191,7 @@ def fit(
191
191
Training labels.
192
192
193
193
Returns:
194
- PaLM2TextGenerator: Fitted Estimator .
194
+ PaLM2TextGenerator: Fitted estimator .
195
195
"""
196
196
X , y = utils .convert_to_dataframe (X , y )
197
197
@@ -372,12 +372,12 @@ def to_gbq(self, model_name: str, replace: bool = False) -> PaLM2TextGenerator:
372
372
373
373
Args:
374
374
model_name (str):
375
- the name of the model.
375
+ The name of the model.
376
376
replace (bool, default False):
377
377
Determine whether to replace if the model already exists. Default to False.
378
378
379
379
Returns:
380
- PaLM2TextGenerator: saved model."""
380
+ PaLM2TextGenerator: Saved model."""
381
381
382
382
new_model = self ._bqml_model .copy (model_name , replace )
383
383
return new_model .session .read_gbq_model (model_name )
@@ -390,16 +390,16 @@ class PaLM2TextEmbeddingGenerator(base.BaseEstimator):
390
390
Args:
391
391
model_name (str, Default to "textembedding-gecko"):
392
392
The model for text embedding. “textembedding-gecko” returns model embeddings for text inputs.
393
- "textembedding-gecko-multilingual" returns model embeddings for text inputs which support over 100 languages
393
+ "textembedding-gecko-multilingual" returns model embeddings for text inputs which support over 100 languages.
394
394
Default to "textembedding-gecko".
395
395
version (str or None):
396
396
Model version. Accepted values are "001", "002", "003", "latest" etc. Will use the default version if unset.
397
397
See https://cloud.google.com/vertex-ai/docs/generative-ai/learn/model-versioning for details.
398
398
session (bigframes.Session or None):
399
399
BQ session to create the model. If None, use the global default session.
400
400
connection_name (str or None):
401
- connection to connect with remote service. str of the format <PROJECT_NUMBER/PROJECT_ID>.<LOCATION>.<CONNECTION_ID>.
402
- if None, use default connection in session context.
401
+ Connection to connect with remote service. str of the format <PROJECT_NUMBER/PROJECT_ID>.<LOCATION>.<CONNECTION_ID>.
402
+ If None, use default connection in session context.
403
403
"""
404
404
405
405
def __init__ (
@@ -539,12 +539,12 @@ def to_gbq(
539
539
540
540
Args:
541
541
model_name (str):
542
- the name of the model.
542
+ The name of the model.
543
543
replace (bool, default False):
544
544
Determine whether to replace if the model already exists. Default to False.
545
545
546
546
Returns:
547
- PaLM2TextEmbeddingGenerator: saved model."""
547
+ PaLM2TextEmbeddingGenerator: Saved model."""
548
548
549
549
new_model = self ._bqml_model .copy (model_name , replace )
550
550
return new_model .session .read_gbq_model (model_name )
@@ -565,8 +565,8 @@ class GeminiTextGenerator(base.BaseEstimator):
565
565
BQ session to create the model. If None, use the global default session.
566
566
connection_name (str or None):
567
567
Connection to connect with remote service. str of the format <PROJECT_NUMBER/PROJECT_ID>.<LOCATION>.<CONNECTION_ID>.
568
- if None, use default connection in session context. BigQuery DataFrame will try to create the connection and attach
569
- permission if the connection isn't fully setup .
568
+ If None, use default connection in session context. BigQuery DataFrame will try to create the connection and attach
569
+ permission if the connection isn't fully set up .
570
570
"""
571
571
572
572
def __init__ (
@@ -719,12 +719,12 @@ def to_gbq(self, model_name: str, replace: bool = False) -> GeminiTextGenerator:
719
719
720
720
Args:
721
721
model_name (str):
722
- the name of the model.
722
+ The name of the model.
723
723
replace (bool, default False):
724
724
Determine whether to replace if the model already exists. Default to False.
725
725
726
726
Returns:
727
- GeminiTextGenerator: saved model."""
727
+ GeminiTextGenerator: Saved model."""
728
728
729
729
new_model = self ._bqml_model .copy (model_name , replace )
730
730
return new_model .session .read_gbq_model (model_name )
0 commit comments