LoslegenKostenlos loslegen

Load the dataset

NannyML comes with a set of internal datasets in order to make it easier to demo use cases and test different algorithms. To load the dataset, you only need to use the nannyml.load_us_census_ma_employment_data() function.

The function returns three Pandas DataFrame objects: the reference set (the test set), the analysis set (unseen production data), and the ground truth for the analysis set. These data frames should be named according to the convention as reference, analysis, and analysis_gt.

In this exercise, you will load the US Census Employment dataset and print the data frames to understand what they look like.

Diese Übung ist Teil des Kurses

Monitoring Machine Learning in Python

Kurs anzeigen

Anleitung zur Übung

  • Import the nannyml libary.
  • Load the US Census Employment dataset from the nannyml library.
  • Print the head of the reference data.
  • Print the head of the analysis data.

Interaktive Übung

Versuche dich an dieser Übung, indem du diesen Beispielcode vervollständigst.

# Import nannyml
import ____

# Load US Census Employment dataset
____, ____, ____ = ____.____()

# Print head of the reference data
____

# Print head of the analysis data
____
Code bearbeiten und ausführen