5.2. Train and evaluate an ML model [OPTIONAL CODE PRACTICE]

A code example walkthrough of preparing the data, training, evaluating, and saving an ML model using the Evidently Python library.

Video 2. Train and evaluate an ML model [OPTIONAL CODE PRACTICE]arrow-up-right, by Emeli Dral

In this video, we prepare the data, train, evaluate, and save an ML model that we will use later in this module to deploy an end-to-end pipeline for data and ML model quality checks.

Want to go straight to code? Here is the example notebookarrow-up-right to follow along.

Outline: 00:00arrow-up-right Introduction 00:39arrow-up-right Imports 01:44arrow-up-right Load and preview the raw data 05:02arrow-up-right Feature engineering function 17:33arrow-up-right Split into train, reference and production 19:48arrow-up-right Transform raw data into pre-processed (and some debugging!) 23:00arrow-up-right Model training 27:28arrow-up-right Evaluate model quality

Last updated