8000 Document developer utils for parameter validation · Issue #27038 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content
Document developer utils for parameter validation #27038
Open
@lorentzenchr

Description

@lorentzenchr

Describe the issue linked to the documentation

#22722 and #24862 introduced parameter validation.

These tools should be documented under https://scikit-learn.org/dev/developers/utilities.html#validation-tools.

In addition, a lot of tests for raising errors in case of bad input seems to disappear. Are there common tests for it or is it still recommended to write tests a la

def test_estim_raises():
    est = Estim(n_rounds="should be a number")
    with pytest.raises(ValueError):
        est.fit(X, y)

Suggest a potential alternative/fix

No response

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0