Hi:

The docstring of the fit method of the Lasso class says it's fitting
an Elastic Net Model:

###################################
from sklearn.linear_model import Lasso

rgr = Lasso()
help(rgr.fit)

>>> Help on method fit in module sklearn.linear_model.coordinate_descent:

fit(self, X, y, Xy=None, coef_init=None) method of
sklearn.linear_model.coordinate_descent.Lasso instance
    Fit Elastic Net model with coordinate descent


I guess it is because the Lasso class inherits from the ElasticNet class:

class Lasso(ElasticNet):
...

Is this correct? I found it somewhat confusing.

Alejandro.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to