開始使用免費開始

載入資料集

NannyML 內建多個資料集,方便示範情境與測試不同演算法。要載入資料集,只需要使用 nannyml.load_us_census_ma_employment_data() 函式。

此函式會回傳三個 Pandas 的 DataFrame 物件:reference 集(測試集)、analysis 集(未看過的生產資料),以及 analysis 集的真實標籤(ground truth)。請依慣例將這些資料框命名為 referenceanalysisanalysis_gt

在這個練習中,你會載入 US Census Employment 資料集,並列印這些資料框,先了解它們的長相。

本練習屬於課程

在 Python 中監控 Machine Learning

檢視課程

練習說明

  • 匯入 nannyml 函式庫。
  • nannyml 載入 US Census Employment 資料集。
  • 列印 reference 資料的前幾列。
  • 列印 analysis 資料的前幾列。

動手互動練習

試著完成這個範例程式碼,體驗一下這個練習。

# Import nannyml
import ____

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

# Print head of the reference data
____

# Print head of the analysis data
____
編輯並執行程式碼