bigframes.ml.llm.GeminiTextGenerator.fit#
- GeminiTextGenerator.fit(X: DataFrame | Series | DataFrame | Series, y: DataFrame | Series | DataFrame | Series) GeminiTextGenerator[source]#
- Fine tune GeminiTextGenerator model. Only support “gemini-1.5-pro-002”,
“gemini-1.5-flash-002”, “gemini-2.0-flash-001”, and “gemini-2.0-flash-lite-001”models for now.
Note
This product or feature is subject to the “Pre-GA Offerings Terms” in the General Service Terms section of the Service Specific Terms(https://cloud.google.com/terms/service-terms#1). Pre-GA products and features are available “as is” and might have limited support. For more information, see the launch stage descriptions (https://cloud.google.com/products#product-launch-stages).
- Parameters:
X (bigframes.dataframe.DataFrame or bigframes.series.Series) – DataFrame of shape (n_samples, n_features). Training data.
bigframes.series.Series (y (bigframes.dataframe.DataFrame or) – Training labels.
- Returns:
Fitted estimator.
- Return type: