我使用橙色库在python中编写了波纹管回归代码,但是
import Orange
data = Orange.data.Table("lenses")
learner = Orange.regression.LinearRegressionLearner()
model = learner(data)
print (model.coefficients)
我需要将拦截设置为零,我找到了这段代码
__init__(name=linear regression, intercept=True, compute_stats=True, ridge_lambda=None, imputer=None, continuizer=None, use_vars=None, stepwise=False, add_sig=0.05, remove_sig=0.2, **kwds)
在此页面中:http: //orange.biolab.si/docs/latest/reference/rst/Orange.regression.linear.html 但我不知道如何使用它?