Python.Validate
python.validateStatically check a python_model script (BYO model class) without running it.
Compiles the source and verifies the contract — a class with fit(X, y, info) and predict(X); optional predict_proba(X) unlocks confidence panels. Never executes the code, so it is safe against the hosted backend. Use it before execution.run to catch syntax errors, missing methods, or the wrong class name cheaply.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Python source of the model class (<=256KB UTF-8). | |
| class_name | No | Contract class to instantiate; omit to auto-detect the first class defining fit+predict. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||