bbalasub1 / glmnet_python

GNU General Public License v3.0
199 stars 93 forks source link

How to change intercept value #37

Closed saimemre closed 5 years ago

saimemre commented 5 years ago

Hello, I can not change intercept value.

My code is: fit = glmnet(x=extraction[:,selector], y=np.array(extraction[:,0]), family='gaussian')

How change this?

Thanks.

bbalasub1 commented 5 years ago

Try adding a column of ones in x?

On Friday, January 11, 2019, Saim Emre notifications@github.com wrote:

Hello, I can not change intercept value.

My code is: fit = glmnet(x=extraction[:,selector], y=np.array(extraction[:,0]), family='gaussian')

How change this?

Thanks.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/bbalasub1/glmnet_python/issues/37, or mute the thread https://github.com/notifications/unsubscribe-auth/AKpDE7US1DXwHBE7fMnv96YBTUDZKoTxks5vCLOSgaJpZM4Z7tlf .

saimemre commented 5 years ago

@bbalasub1 I don't understand, how?