Changing model weights

User 5269 | 6/7/2016, 6:34:32 PM

Hi;

Let us say that I have "learned" a logistic model with weights [w1...wn]. For whatever reason, I wish to create a new model with weights* = w12, ......wn2. Is there a simple way to do this?

Thanks and regards

Comments

User 1178 | 6/7/2016, 11:50:02 PM

Hi,

Could you explain your usage case? I guess you want to do more than simply doubling the weights. If you can tell us what you really want to do, we can help you better.

If you want to simply taking the weights out for the model and do other computations of yoursevle, you can easily it it by doing

coefficients = model['coefficients']

Thanks!

Ping