-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Early stopping overrides user defined X_val and y_val #363
Comments
this seems to be because of the logic in partial_fit to handle sample_weights:
so if you pass sample weight, user passed validation data gets ignored. You can override partial_fit in your code maybe but I am clueless as to why this is implemented as it is. It should be:
|
Make a PR! |
@alejandroschuler happy to raise a PR but is there a reason why the initial implementation handled sample weights like such? One point to note is sample weights only contribute to the base learner dynamics and NLL calculation. It will get canceled out in fisher information, so sample weights have no impact on the natural gradients. NGBoost base class accepts val_sample_weights but I am not sure if this is a bug or a feature. |
Honestly I do not remember if there was a reason! At this point your judgement is as good as mine. |
Great package! Thank you for all the contributions.
In function def_partial_fit, validation datasets are overridden. Is not transparent and will be not quite logical in typical backtesting cases.
The text was updated successfully, but these errors were encountered: