二值化评分
在选择要使用的算法之前,比较多个异常检测算法的性能是值得的。
在本练习中,您将基于局部离群因子(LOF)和 isolation forest 构造一对二值异常评分。上一练习中生成的 isolation 评分向量 iso_score 已为您预加载,可直接使用。
本练习是课程的一部分
R 异常检测入门
交互式实操练习
通过完成这段示例代码来试试这个练习。
# Scale the measurement columns of thyroid
scaled_thyroid_measurements <- ___(___)
# Create a LOF score for the measurements
lof_score <- ___(___, ___)