Skip to content

fix validation fraction api#407

Open
ryan-wolbeck wants to merge 1 commit into
masterfrom
fix-validation-fraction
Open

fix validation fraction api#407
ryan-wolbeck wants to merge 1 commit 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.

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

1 participant