Skip to content

No bootstrap cross-validator #355

Closed

Description

@godofecht

From community criticism review. Raised on Hacker News (comment 18025988), quoting an r/statistics comment:

Case in point, sklearn doesn't have a bootstrap crossvalidator despite the bootstrap being one of the most important statistical tools of the last two decades. In fact, they used to, but it was removed. Weird right?

sklearn's stated reason for removing it, also quoted in that thread:

We don't remove the sklearn.cross_validation.Bootstrap class because few people are using it, but because too many people are using something that is non-standard (I made it up) and very very likely not what they expect if they just read its name.

Current state

grep -n bootstrap lib/scikit/model_selection.flow returns nothing. flow-scikit has no bootstrap resampling in its model selection surface at all.

Note that lib/scikit/ensemble.flow does bootstrap sampling internally for bagging, so the resampling primitive exists; it is just not exposed as a cross-validator.

Why this is a good fit here

sklearn removed theirs because the semantics they invented were non-standard and the name misled people. That is an argument for implementing the standard thing under an honest name, not for having none. The .632 and .632+ estimators are the usual targets.

Worth pairing with a docstring that states exactly which bootstrap variant is implemented, since the original removal was a naming failure rather than a math failure.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions