How to set regression intercept to 0 in Orange
Question: I wrote the bellow regression code in python using orange library but

    
    
    import Orange
    data = Orange.data.Table("lenses")
    learner = Orange.regression.LinearRegressionLearner()
    model = learner(data)
    print (model.coefficients)
    

I need to set intercept to zero and I found this code

    
    
    __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)
    

in this page:
<http://orange.biolab.si/docs/latest/reference/rst/Orange.regression.linear.html>
but I don not know how to use it?


Answer: You just need to set intercept=False.

    
    
    learner = Orange.regression.LinearRegressionLearner(intercept=False)
    

