
Before you begin
- Labs create a Google Cloud project and resources for a fixed time
- Labs have a time limit and no pause feature. If you end the lab, you'll have to restart from the beginning.
- On the top left of your screen, click Start lab to begin
Clean your training data
/ 30
Create a BQML model
/ 40
Perform a batch prediction on new data
/ 30
In a challenge lab you’re given a scenario and a set of tasks. Instead of following step-by-step instructions, you will use the skills learned from the labs in the course to figure out how to complete the tasks on your own! An automated scoring system (shown on this page) will provide feedback on whether you have completed your tasks correctly.
When you take a challenge lab, you will not be taught new Google Cloud concepts. You are expected to extend your learned skills, like changing default values and reading and researching error messages to fix your own mistakes.
To score 100% you must successfully complete all tasks within the time period!
This lab is recommended for students who have enrolled in the Engineer Data for Predictive Modeling with BigQuery ML skill badge. Are you ready for the challenge?
Read these instructions. Labs are timed and you cannot pause them. The timer, which starts when you click Start Lab, shows how long Google Cloud resources are made available to you.
This hands-on lab lets you do the lab activities in a real cloud environment, not in a simulation or demo environment. It does so by giving you new, temporary credentials you use to sign in and access Google Cloud for the duration of the lab.
To complete this lab, you need:
You have started a new role as a Data Engineer for TaxiCab Inc. You are expected to import some historical data to a working BigQuery dataset, and build a basic model that predicts fares based on information available when a new ride starts. Leadership is interested in building an app and estimating for users how much a ride will cost. The source data will be provided in your project.
You are expected to have the skills and knowledge for these tasks, so don't expect step-by-step guides to be provided.
As soon as you sit down at your desk and open your new laptop you receive your first assignment: build a basic BQML fare prediction model for leadership. Perform the following tasks to import and clean the data, then build the model and perform batch predictions with new data so that leadership can review model performance and make a go/no-go decision on deploying the app functionality.
You've already completed the first step, and have created a dataset taxirides
and imported the historical data to table, historical_taxi_rides_raw
. This is data prior for rides to 2015.
To complete this task you will need to:
historical_taxi_rides_raw
and make a copy to Some helpful hints:
taxirides.report_prediction_data
which shows the format data will arrive at prediction time.Data cleaning tasks:
trip_distance
is greater than fare_amount
is very small (less than $
for example).passenger_count
is greater than tolls_amount
and fare_amount
to report_prediction_data
is a good guide).Click Check my progress to verify the objective.
Based on the data you have in
Call the model
Some helpful hints:
TRANSFORM()
clause will be passed to the model. You can use a * EXCEPT(feature_to_leave_out)
to pass some or all of the features without explicitly calling themST_distance()
and ST_GeogPoint()
GIS functions in BigQuery can be used to easily calculate euclidean distance (i.e. how far pickup to dropoff did the taxi travel):Click Check my progress to verify the objective.
Leadership is curious to see how well your model performs over new data, in this case, all of the data they've collected in 2015. This data is in taxirides.report_prediction_data
. Only values known at prediction time are included in the table.
ML.PREDICT
and your model to predict 2015_fare_amount_predictions
.Click Check my progress to verify the objective. 2015_fare_amount_predictions
This self-paced lab is part of the Engineer Data for Predictive Modeling with BigQuery ML skill badge. Completing this skill badge earns you the badge above, to recognize your achievement. Share your badge on your resume and social platforms, and announce your accomplishment using #GoogleCloudBadge.
This skill badge is part of Google Cloud’s Data Engineer learning path. If you have already completed the other skill badges in this learning path, search the catalog for other skill badges in which you can enroll.
...helps you make the most of Google Cloud technologies. Our classes include technical skills and best practices to help you get up to speed quickly and continue your learning journey. We offer fundamental to advanced level training, with on-demand, live, and virtual options to suit your busy schedule. Certifications help you validate and prove your skill and expertise in Google Cloud technologies.
Manual Last Updated March 25, 2024
Lab Last Tested September 11, 2023
Copyright 2025 Google LLC All rights reserved. Google and the Google logo are trademarks of Google LLC. All other company and product names may be trademarks of the respective companies with which they are associated.
This content is not currently available
We will notify you via email when it becomes available
Great!
We will contact you via email if it becomes available
One lab at a time
Confirm to end all existing labs and start this one