Skip to content

innovate.predict_batch

All current Python definitions

View source · Source file SHA-256: 522871fe0b61b840b5f85b8f278beb2b79c7afd68645265ae3a68983d56d74e4

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.

  • model: Native model key shared by the batch.
  • datasets: Ordered predict_model payload mappings with their own input grids and model parameters or fitted state. Use predict_frames for pairs of FitResult objects and Polars tables.
  • workers: Native worker count from 1 through 32; defaults to serial execution.

Ordered mappings containing result and error for each dataset. An individual prediction failure is retained as its row’s error.

  • 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.