1. Learn
  2. /
  3. Courses
  4. /
  5. Monitoring Machine Learning in Python

Connected

Exercise

Different chunking methods

A chunk represents a single data point in the monitoring results. Recall that there are three methods for chunking your data: based on time, size, or the number of chunks.

In this exercise, you will chunk and visualize the results of the CBPE algorithm for the US Census dataset using size-based and number-based chunking methods.

The nannyml library is already imported.

Instructions 1/2

undefined XP
  • 1

    Load reference, analysis, and analysis labels using nannyml.load_us_census_ma_employment_data() and set the chunk_size parameter to 5000.

  • 2

    Add 'f1' metric to the monitored metrics and set the chunk_number parameter to 8.