开始使用免费开始使用

可视化发生漂移的特征

在对单变量结果进行排序后,您发现发生漂移的 hotelcountry 特征对模型性能影响最大。本练习中,您将查看它们的漂移结果和分布图,以定位问题的根本原因。

单变量漂移计算器的结果已存储在变量 uv_results 中。

本练习是课程的一部分

Python 中的机器学习监控

查看课程

练习说明

  • 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()
编辑并运行代码