Skip to main content
alphaH's user avatar
alphaH's user avatar
alphaH's user avatar
alphaH
  • Member for 3 years, 3 months
  • Last seen more than a month ago
awarded
asked
Loading…
awarded
accepted
comment
Sign change in LASSO and RIDGE of coefficients
You are right. Didn't think about that. Thanks.
Loading…
accepted
comment
Lasso vs Ridge Regression
Okay thank you. So then as far as I understand you one can not really draw a senseful conclusion/comparison between Lasso vs Ridge when it comes to bias vs variance. Its really data dependent.
comment
Lasso vs Ridge Regression
Okay got that. But I do not understand why one can not make the two comparable by setting the same regularization strength? Both parameters mean "economically" regularization strength and describe therefore the same. Moreover, I understand that you can bring the coefficients to zero with Ridge. But my argument was that is goes only towards zero and not makes them exactly zero, therefore why can one not say that LASSO makes simpler models because of this property? Thanks for clarification.
asked
Loading…
comment
Transform target/label variable into classes but classes are data-dependent: How to approach this correctly?
Thank you for taking the time. Makes sense. I guess for the answer about implemented sklearn methods I need to change forum.
awarded
comment
Transform target/label variable into classes but classes are data-dependent: How to approach this correctly?
@ Adrià: Yes that's true, but the thing is KBinsDiscretizer does this. But pipeline always transforms only the features and not the labels; but using pipeline is important for cross-validation etc. So I need to know on how I can implement it but for the target not on the features.
comment
Transform target/label variable into classes but classes are data-dependent: How to approach this correctly?
@ Stephan: Seems to be common, see e.g. article "Forecasting multinomial stock returns using machine learningmethods"
comment
Transform target/label variable into classes but classes are data-dependent: How to approach this correctly?
@ Adrià: Thanks. I think that is correct, but say I want to do a cross-validation which is implemented directly in sklearn. When I do it for preprocessing features, I create a pipline and then feed in this pipeline into cross_validate() or GridSearchCV(). But is there not also a method such that I can use those routine, otherwise it gets very difficult?
Loading…