Star 历史趋势
数据来源: GitHub API · 生成自 Stargazers.cn
README.md

AI/ML Recipes for Vertex AI, Serverless Spark and BigQuery

AI/ML Recipes for Vertex AI, Serverless Spark and BigQuery open-source project is an effort to jumpstart your development of data processing and machine learning notebooks using VertexAI, BigQuery and Dataproc's distributed processing capabilities.

We are release a set of machine learning focused notebooks, for you to adapt, extend, and use to solve your use cases using your own data.
You can easily clone the repo and start executing the notebooks right way using your Dataproc cluster or Dataproc Serverless Runtime for the PySpark notebooks, and any environment for the BigQuery Dataframes (Bigframes) notebooks.

Open in Cloud Shell

Notebooks

Please refer to each notebooks folder documentation for more information:

TitleIndustryTopicSub TopicMain Technologies
Fine-tuning Gemini for Domain SpecificityMedia & EntertainmentGenerative AIFine tuningPySpark, Iceberg. Gemini
Generate description from videos using PySpark and GeminiRetailGenerative AIContent GenerationPySpark, GCS, Gemini
Processing images with generative AIRetailGenerative AIContent GenerationPySpark, GCS, Gemini
Customer Price Index forecast using PySpark and Monte CarloFinancialSamplingMonte Carlo methodPySpark, GCS, NumPy
Multimodal content enrichmentRetailGenerative AIContent GenerationBigFrames, GCS, Gemini, BigQuery
Toxicity classification using Gemini fine-tunedGamingGenerative AIClassificationBigFrames, Gemini, Vertex AI
Unstructured document analysis with AIFinancialGenerative AISummarizationBigQuery, SQL, Gemini
Asset Price Forecast using Iceberg and ProphetFinanceForecastProphetPySpark, Dataproc Serverless, Apache Iceberg, Prophet, BigQuery, GCS
Propensity Modeling & Churn PredictionsRetailAnalyticsPurchase PredictionsPySpark, Spark ML, BigQuery, Dataproc, GCS
Time Series ForecastRetailForecastARIMA and TimesFMBigQuery, BigQuery ML, ARIMA, TimesFM, Python, Matplotlib
Time Series Forecast (Antigravity)RetailForecastARIMA and TimesFMBigQuery, BigQuery ML, ARIMA, TimesFM, Python, Matplotlib
Data Engineering with GeoSpacial dataAgricultureAnalyticsGeospatialBigQuery, Google Earth Engine, BigFrames, GeoPandas, BigQuery ML
Product Data Analysis using BigQueryRetailAnalyticsPerformance AnalysisBigQuery, Vertex AI, XGBoost, Pandas
Vector Search and embeddingsReal EstateAnalyticsImage SearchBigQuery, BigQuery ML, Gemini, GCS, SQL, Python
Customer SegmentationRetailAnalyticsIdentifying Customer SegmentsBigQuery, BigQuery ML, Gemini, Generative AI, SQL, K-Means Clustering
Movie reviews sentiment analysis using PySpark and GeminiMedia & EntertainmentGenerative AISentiment AnalysisPySpark, Spark Connect, Gemini, BigQuery
Housing prices predictionFinancialRegressionDecision Tree RegressionPySpark, Spark ML, GCS
Wine quality classification using Logistic Regression and PySparkRetailClassificationLogistic RegressionPySpark, Spark ML, GCS
Predict penguim weight using Linear Regression and BigframesEnvironmentalRegressionLinear RegressionBigFrames, BigQuery
Predictive Maintenance for machinesManufacturingClassificationLinear Support Vector MachinePySpark, Spark ML, GCS
SMS Spam Filtering using PySpark and Spark MLTelecomClassificationMultilayer Perceptron ClassifierPySpark, Spark ML, GCS
Bike Trip Duration Prediction using PySpark and BigQueryMobilityRegressionRandom Forest RegressionPySpark, Spark ML, BigQuery
PDF summarization using Gemini and PySparkFinancialGenerative AISummarizationPySpark, SparkML, Gemini, BigQuery
Accelerated Data Analytics with Google Cloud and NVIDIAIT ServicesAnalyticsGPU Accelerated Analyticspandas, cuDF, NVIDIA GPUs, Google Cloud, Colab Enterprise, Google Cloud Storage, pyarrow, Matplotlib, NumPy
Accelerated Data Science with Google Cloud and NVIDIAMobilityRegressionGPU Accelerated RegressionNVIDIA CUDA-X, cuDF, cuML, XGBoost, pandas, scikit-learn, Google Cloud, Colab Enterprise, Google Cloud Storage
Data Science with PySpark and Distributed XGBoostMobilityRegressionDistributed Pyspark XgboostPySpark, Apache Spark, XGBoost, Spark MLlib, Spark SQL, GCS, Pandas
Product Data Analysis using PySpark and GeminiRetailAnalyticsPerformance AnalysisPySpark, Gemini, XGBoost, Vertex AI, Spark ML, GCS, Matplotlib, Pandas

Google Cloud products quickstarts:

TitleTopicSub TopicMain Technologies
Delta format in GCS QuickstartQuickstartDeltaPySpark, GCS, Delta
Dataproc MetastoreQuickstartDataproc MetastorePySpark, Dataproc Metastore
Dataproc cluster insights with BigQueryQuickstartDataprocBigQuery, Dataproc
Bigframes QuickstartQuickstartBigframesBigFrames, BigQuery, Gemini
Apache Iceberg on BQ QuickstartQuickstartIcebergBigQuery, Apache Iceberg
Agent2Agent QuickstartQuickstartAgent2AgentGemini, Google ADK, A2A, Vertex AI
Google ADK Session management with Cloud SQLQuickstartGoogle ADKGemini, Google ADK, Cloud SQL, SQLite

Public Datasets

The notebooks read datasets from our public GCS bucket containing several publicly available datasets.

In this doc you can see the list of available datasets, which are located in gs://dataproc-metastore-public-binaries.
The documentation above has details about the datasets, and links to their original pages, containing their LICENSES, etc.

Antigravity Data Cloud extension

These notebooks (Spark and BigQuery) are available from your Antigravity when using the Google Cloud Data Cloud Extension:

drawing

Cloud Code VSCode extension

These notebooks are available from your VSCode IDE when using the Cloud Code extension. You can go to Notebook Templates and download each template to your environment:

drawing

Usage in Vertex AI Workbench notebooks

These notebooks are available from within the Vertex AI Workbench notebooks environment.
Navigate to JupyterLab home screen and click on Notebooks to see the list of notebooks and a button for you to download/copy them into your environment.

drawing
drawing

Usage in your local environment

  1. Install gcloud cli
  2. Run gcloud init to setup your default GCP configuration
  3. Clone this repository by running
    git clone https://github.com/GoogleCloudPlatform/ai-ml-recipes.git
  4. Install requirements by running pip install -r requirements.txt
  5. For the PySpark notebooks, use one of the approaches using the Dataproc Jupyter Plugin:
    • 5.1) [PySpark Serverless Runtime on Google Cloud] Create a Runtime Template with your desired runtime config, and use it to run your PySpark notebooks.
    • 5.2) [Local runtime] Use your local PySpark runtime
  6. For the Bigframes notebooks, you do not need PySpark, just any kernel/environment, and the processing will leverage BigQuery in your GCP project

BigQuery Jupyter Plugin

We recommend leveraging the BigQuery Jupyter Plugin, which will be available in your local environment just by installing the dependency running pip install -r requirements.txt. This will enable you to:

  • Connect your Jupyterlab notebooks from anywhere to Dataproc
  • Develop in Python, SQL, Java/Scala, and R
  • Manage Dataproc clusters and jobs
  • Run notebooks in your favorite IDE that supports Jupyter using Dataproc as kernel
  • Deploy a notebook as a recurring job
  • View cloud and spark logs inside Jupyterlab
  • View your BigQuery datasets schema inside Jupyterlab
  • Manage your files on Google Cloud Storage (GCS)

Contributing

See the contributing instructions to get started contributing.

License

All solutions within this repository are provided under the Apache 2.0 license. Please see the LICENSE file for more detailed terms and conditions.

Disclaimer

This repository and its contents are not an official Google Product.

Contact

Questions, issues, and comments can be raised via Github issues.

关于 About

AI/ML Recipes for Vertex AI, Serverless Spark and BigQuery open-source project is an effort to jumpstart your development of data processing and machine learning notebooks using VertexAI, BigQuery and Dataproc's distributed processing capabilities.
bigframesbigquerybigquery-mldataprocgeminigooglegoogle-cloudsparkvertex-ai

语言 Languages

Jupyter Notebook98.9%
Python1.1%

提交活跃度 Commit Activity

代码提交热力图
过去 52 周的开发活跃度
95
Total Commits
峰值: 16次/周
Less
More

核心贡献者 Contributors