You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 97a948c
Browse filesBrowse the repository at this point in the historyBrowse files
"""Create a session-temporary BQML model with the CREATE OR REPLACE MODEL statement
332
+
333
+
Args:
334
+
X_train: features columns for training
335
+
y_train: labels columns for training
336
+
options: a dict of options to configure the model. Generates a BQML OPTIONS
337
+
clause
338
+
connection_name:
339
+
a BQ connection to talk with Vertex AI, of the format <PROJECT_NUMBER>.<REGION>.<CONNECTION_NAME>. https://cloud.google.com/bigquery/docs/create-cloud-resource-connection
340
+
341
+
Returns: a BqmlModel, wrapping a trained model in BigQuery
342
+
"""
343
+
options=dict(options)
344
+
# Cache dataframes to make sure base table is not a snapshot
345
+
# cached dataframe creates a full copy, never uses snapshot
This product or feature is subject to the "Pre-GA Offerings Terms" in the General Service Terms section of the
61
+
Service Specific Terms(https://cloud.google.com/terms/service-terms#1). Pre-GA products and features are available "as is"
62
+
and might have limited support. For more information, see the launch stage descriptions
CONCAT("Please do sentiment analysis on the following text and only output a number from 0 to 5 where 0 means sadness, 1 means joy, 2 means love, 3 means anger, 4 means fear, and 5 means surprise. Text: ", text) as prompt,
0 commit comments