8000 Programatically finding all supported solvers and losses for an estimator · Issue #14063 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content
Programatically finding all supported solvers and losses for an estimator #14063
Open
@rth

Description

@rth

It would be useful to have some mechanism of determining supported solvers for a given estimator. First, because currently check_estimator only runs on the default solver and so we are potentially not testing a number of configurations.

It would also make easier to check that all solvers yield comparable results such as #13914

Of course, this can also be generalized to other parameters that impact the solver but should not change the way estimator behaves.

One way could be just to store e.g. _supported_solvers as a private attribute, or possibly in type annotations (though this would require PEP 586 from Python 3.8 that can be backported by vendoring typing_extensions.py), related to #11170

Another way could be to have some method that yields possible estimator variants to be tested. @amueller if I remember correctly you mentioned something similar in the estimator tags PR.

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

      0