Skip to content

fix validation fraction api - #407

Merged
ryan-wolbeck merged 4 commits into
masterfrom
fix-validation-fraction
Jun 26, 2026
Merged

ryan-wolbeck merged 4 commits into
masterfrom
fix-validation-fraction

Conversation

@ryan-wolbeck

Copy link
Copy Markdown
Collaborator

Implemented issue to close #402 by fixing API parity for validation-based early stopping in classification.

What changed
Added validation_fraction and early_stopping_rounds to NGBClassifier.__init__ and forwarded both to NGBoost.
Added regression test test_classifier_validation_fraction_is_supported to ensure classifier accepts these params, exposes them via get_params(), and trains/predicts with validation-split early stopping enabled.

@ryan-wolbeck

ryan-wolbeck commented Jun 23, 2026 •

Copy link
Copy Markdown
Collaborator Author

@alejandroschuler can you review this as well? I can update the release here after #411 merges and include the there PR you merged

@alejandroschuler alejandroschuler left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we also update NGBSurvival?

@ryan-wolbeck

Copy link
Copy Markdown
Collaborator Author

should we also update NGBSurvival?

Yes, I'll push an update

@ryan-wolbeck
ryan-wolbeck merged commit f4f515e into master Jun 26, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add validation_fraction to NGBClassifier

2 participants