> When running linear_model.Lars I get the following error. > > C:\Python27\lib\site-packages\sklearn\linear_model\least_angle.py:237: > RuntimeWa > rning: invalid value encountered in divide > z = -coefs[n_iter, active] / least_squares
should be fixed in master: https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/linear_model/least_angle.py#L251 > The script still runs, and I get coefficents and an intercept. good > Also, asking it to normalise the coefficents doesn't seem to work. The > following: > clf = linear_model.Lars(normalize=True) > Returns an intercept which is NOT 0. you should use fit_intercept=False. The intercept being 0 is due to centering not normalizing. Alex ------------------------------------------------------------------------------ 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
