可视化发生漂移的特征
在对单变量结果进行排序后,您发现发生漂移的 hotel 和 country 特征对模型性能影响最大。本练习中,您将查看它们的漂移结果和分布图,以定位问题的根本原因。
单变量漂移计算器的结果已存储在变量 uv_results 中。
本练习是课程的一部分
Python 中的机器学习监控
练习说明
- 将
drift_results的 period 参数设置为analysis。 - 将 hotel 和 country 传入
drift_results的column_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()