Changing weights in loss functions between iterations #825
-
Hi! I have a problem where I try to fit targets covering a fairly wide range of magnitudes. Using a loss function that measures the error in logspace definitely helps a lot, but I also see improvements when I weight my loss based on the density of targets (I have more data in certain magnitudes). However, I find that depending on my weighting scheme, I often promote either improved I know it's possible to implement this using the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yeah you can totally do this with |
Beta Was this translation helpful? Give feedback.
Yeah you can totally do this with
warm_start=True
and then repeatedly callingmodel.fit(X, y, weights=weights)
with the new weighting.