Check data locally
check_dataValidate a local .npz or image-zip dataset against your model's input shapes and classes before optimization. Explains each problem and how to fix it, with no upload or run used.
Instructions
Check, locally, that a data file is what optimize needs for this model, before uploading anything. For an .npz: X present, float32, each sample in the model's input shape; y one class index per sample within the model's outputs; X_test / y_test if given. For an image zip: class folders (or train/ and test/). Explains each problem and how to fix it. Nothing is uploaded and no run is used.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"model_path": "<model_path>",
"data_path": "<data_path>"
},
"name": "check_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output | No | 'classes' when the model outputs class scores; 'values' for detectors, autoencoders and regression. | classes |
| data_path | Yes | The data: an .npz (X, y) or a .zip of image folders, one per class. | |
| model_path | Yes | The model the data is for (.tflite, .onnx, or a firmware .zip). |