innovate.fit_batch
All current Python definitions
View source · Source file SHA-256: 522871fe0b61b840b5f85b8f278beb2b79c7afd68645265ae3a68983d56d74e4
Signature
Section titled “Signature”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.
Parameters
Section titled “Parameters”model: Native model key shared by the batch.datasets: Orderedfit_modelpayload mappings, each containing its owninputsand any constructor or fitting options. These are native JSON payloads, not Polars frames; usefit_framesfor tables.workers: Native worker count from 1 through 32, defaulting to 1. More workers do not change the returned dataset order.
Returns
Section titled “Returns”One mapping per input, in order, with result and error keys.
Individual fitting failures are represented in these rows, not raised.
Raises
Section titled “Raises”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.