我不能 运行 地球——橙色的多元自适应回归样条

I cannot run Earth – Multivariate adaptive regression splines in orange

我用

安装了 orange
pip install orange3

当我运行

from Orange.regression import earth

它说

ImportError: cannot import name 'earth'

同样,当我尝试

c = Orange.regression.earth.EarthLearner(data, degree=2, terms=10)

它说

AttributeError: module 'Orange.regression' has no attribute 'earth'

我做错了什么?

EarthLearner 是用于 orange (v2) 的 add-on(orangecontrib.earth pypi 包),不适用于 orange3。