compileml.compile

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#

NameTypeDefaultKind
extractedcompileml.compile.extract.ExtractedModelrequiredpositional
model—requiredpositional
n_valint200positional
atolfloat0.0001positional

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.