Open skjerns opened 3 years ago
you can set them like this if you want to https://github.com/X-DataInitiative/tick/blob/master/tick/base/learner/learner_glm.py#L206
Indeed, these weights are supposed to be read-only. If you want to set this attribute manually, you can run clf._set("weights", clf.weights * 3.14)
. But do it at your own risks :)
I want to extract coefficients of a GLM, then alter them, and set them again as the weight matrix.
However,
weights
is readonly.Is there any way to manually set weights to a GLM?