Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Support early_stopping with custom validation_set #18748

@deltawi

Description

@deltawi

Describe the workflow you want to enable

Today in SGDClassifier, the parameter early_stopping uses a fraction of the data randomly, it would be useful to support a custom validation set chosen by the user.

Describe your proposed solution

for example:

clf = SGDClassifier(early_stopping=True)
clf.fit(X_train, y_train, eval_set=(X_val, y_val))

EDIT

Broader Scope

Same applies to GradientBoosting* and HistGradientBoosting*

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions