innovate.predict_batch
All current Python definitions
View source · Source file SHA-256: 522871fe0b61b840b5f85b8f278beb2b79c7afd68645265ae3a68983d56d74e4
Signature
Section titled “Signature”def predict_batch( model: str, datasets: list[dict[str, Any]], *, workers: int = 1,) -> list[dict[str, Any]]: ...Predict independent native payloads with their own parameters or state.
Parameters
Section titled “Parameters”model: Native model key shared by the batch.datasets: Orderedpredict_modelpayload mappings with their own input grids and model parameters or fitted state. Usepredict_framesfor pairs ofFitResultobjects and Polars tables.workers: Native worker count from 1 through 32; defaults to serial execution.
Returns
Section titled “Returns”Ordered mappings containing result and error for each dataset.
An individual prediction failure is retained as its row’s error.
Raises
Section titled “Raises”NativeError: If the outer batch request is invalid.TypeError: If a payload is not JSON-compatible.ValueError: If serialization encounters non-finite or circular values.