Skip to content

innovate.fit_batch

All current Python definitions

View source · Source file SHA-256: 522871fe0b61b840b5f85b8f278beb2b79c7afd68645265ae3a68983d56d74e4

def fit_batch(model: str, datasets: list[dict[str, Any]], *, workers: int=1) -> list[dict[str, Any]]: ...

Fit independent native request payloads while retaining per-item failures.

  • model: Native model key shared by the batch.
  • datasets: Ordered fit_model payload mappings, each containing its own inputs and any constructor or fitting options. These are native JSON payloads, not Polars frames; use fit_frames for tables.
  • workers: Native worker count from 1 through 32, defaulting to 1. More workers do not change the returned dataset order.

One mapping per input, in order, with result and error keys. Individual fitting failures are represented in these rows, not raised.

  • NativeError: If the batch request itself is invalid, including the worker count or model-key shape.
  • TypeError: If the request cannot be JSON-serialized.
  • ValueError: If serialization encounters non-finite or circular values.