Feast Ride Sharing Use Case
Provides an end-to-end workflow using Feast in HPE Ezmeral Unified Analytics Software to generate training data and perform online model inference for the ride-sharing driver satisfaction model.
Prerequisites
- Sign in to HPE Ezmeral Unified Analytics Software.
About this task
Use Feast to generate training data and perform online model inference for the ride-sharing driver satisfaction model.
In this tutorial, you will:
- Deploy a local feature store with a Parquet file offline store and SQLite online store.
- Build a training dataset using time series features from Parquet files.
- Read the latest features from the offline store for batch scoring.
- Ingest batch features ("materialization") and streaming features into the online store.
- Read the latest features from the online store for real-time inference.
- Explore the Feast web interface to see Data Sources, Entities, Feature Views, Feature Services, and Datasets that are defined through feature definitions.
Procedure
- Connect to the notebook server. See Creating and Managing Notebook Servers.
-
In the
<username>/Feast
folder, open theride-sharing-example.ipynb
file.NOTEIf you do not see the
Feast
folder in the<username>
folder, copy the folder from theshared/ezua-tutorials/current-release/Data-Science/
directory into the<username>
folder. Theshared
directory is accessible to all users. Editing or running examples from theshared
directory is not advised. The<username>
directory is specific to you and cannot be accessed by other users.If the
Feast
folder is not available in theshared/ezua-tutorials/current-release/Data-Science/
directory:- Go to GitHub repository for tutorials.
- Clone the repository.
- Navigate to
ezua-tutorials/Data-Science
. - Navigate back to the
shared
directory. - Copy the
/Feast
folder from theezua-tutorials/Data-Science
repository into theshared
directory. - Copy the
/Feast
folder from theshared
folder to the<username>
directory.
-
Validate the
ride-sharing-example.ipynb
file,definitions.py
file, and thedata
folder are available in the/<username>/Feast
directory. -
Validate the
driver_stats.parquet
file is available in the<username>/Feast/data
directory. -
Select the first cell of the
ride-sharing-example.ipynb
notebook, and click Run Selected Cell and All Below.
Results
- Click the Tools & Frameworks icon on the left navigation bar. Navigate to the Feast tile under the Data Science tab and click Open.
- Explore the Feast web interface to see Data Sources, Entities, Feature Views,
Feature Services, and Datasets that are defined through feature definitions.