validate_extraction
def validate_extraction(extracted: compileml.compile.extract.ExtractedModel, model, n_val: int = 200, atol: float = 0.0001) -> None
from compileml.compile import validate_extraction
Score random rows through both paths; raise if they disagree.
Parameters#
| Name | Type | Default | Kind |
|---|---|---|---|
| extracted | compileml.compile.extract.ExtractedModel | required | positional |
| model | — | required | positional |
| n_val | int | 200 | positional |
| atol | float | 0.0001 | positional |
Returns#
None
Raises#
- ValueError
Read from the function body and the private helpers it calls, not inferred. A function that raises nothing has no section here.