Skip to content

innovate.paired_outcomes

All current Python definitions

View source · Source file SHA-256: 522871fe0b61b840b5f85b8f278beb2b79c7afd68645265ae3a68983d56d74e4

def paired_outcomes(payload: dict[str, Any]) -> pl.DataFrame: ...

Validate paired Bass trajectories and flatten them to adoption rows.

  • payload: Native paired-outcomes mapping with strategies. Each strategy supplies its scenario ID, time unit, provenance and ordered draws; draws carry IDs, named parameter records, time and adoption arrays. Strategies must satisfy the native pairing and trajectory contract.

Rows in strategy, draw and time order with scenario_id, draw_id, time_unit, perspective, provenance, parameters_json, time and adoption. Parameter names, units and order are preserved in JSON; this conversion does not estimate new trajectories or uncertainty.

  • ValueError: If pairing, model consistency, numeric values or IPC conversion fail validation, or JSON contains non-finite or circular values.
  • TypeError: If payload values cannot be serialized as JSON.
  • polars.exceptions.PolarsError: If the output IPC cannot be read.