Closed prhbrt closed 9 years ago
I found these sniplets of code, suggesting the rho-parameter you used here, was renamed to l1_ratio
if penalty_type == L2: rho = 1.0 elif penalty_type == L1: rho = 0.0
if penalty_type >= L2: w.scale(1.0 - (rho * eta * alpha))
if penalty_type == L1 or penalty_type == ELASTICNET: u += ((1.0 - rho) * eta * alpha) l1penalty(w, q_data_ptr, x_ind_ptr, xnnz, u)
True. This code is really quite old ;)
I imagine, yet I wanted to run it and thought it would be two seconds to suggest the changes I made to do so here.
thanks :)
I found these sniplets of code, suggesting the rho-parameter you used here, was renamed to l1_ratio
if penalty_type == L2: rho = 1.0 elif penalty_type == L1: rho = 0.0
if penalty_type >= L2: w.scale(1.0 - (rho * eta * alpha))
if penalty_type == L1 or penalty_type == ELASTICNET: u += ((1.0 - rho) * eta * alpha) l1penalty(w, q_data_ptr, x_ind_ptr, xnnz, u)