我曾尝试在 PyCaret 中使用 compare_models() 函数进行异常检测,但它总是给我以下错误:
AttributeError Traceback (most recent call last)
<ipython-input-45-df60bd5a4f1b> in <module>()
----> 1 compared = pycaret.anomaly.compare_models()
AttributeError: module 'pycaret.anomaly' has no attribute 'compare_models'
如果我尝试只做 compare_models():
NameError Traceback (most recent call last)
<ipython-input-47-47f60ac858d1> in <module>()
----> 1 compared = compare_models()
NameError: name 'compare_models' is not defined
它在终端和 Google Colab 中运行时都会执行此操作。有谁知道为什么会这样?