開始使用免費開始

視覺化有漂移的特徵

在針對單變數結果排序後,你知道出現漂移的 hotelcountry 特徵對模型效能影響最大。這個練習中,你會檢視它們的漂移結果與分佈圖,以判斷問題的根本原因。

單變數漂移計算器的結果已儲存在變數 uv_results 中。

本練習屬於課程

在 Python 中監控 Machine Learning

檢視課程

練習說明

  • drift_results 的 period 參數設為 analysis
  • 將 hotel 與 country 傳入 drift_resultscolumn_names
  • .plot() 方法中將 kind 參數設為 "drift"
  • distribution_results 做相同設定,但在 .plot() 方法中將 kind 參數設為 "distribution"

動手互動練習

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

# Filter and create drift plots
drift_results = uv_results.filter(
    period=____,
    column_names=[____, ____]
    ).plot(kind=____)

# Filter and create distribution plots
distribution_results = uv_results.filter(
    period=____,
    column_names=[____, ____]
    ).plot(kind=____)

# Show the plots
drift_results.show()
distribution_results.show()
編輯並執行程式碼