Python Schema API
The Python schema layer provides typed adapters for the Rust-owned contracts.
Core types
Section titled “Core types”ValueArraystores sample-by-strategy net benefits and can be constructed withValueArray.from_numpy.ParameterSetstores aligned named PSA samples and can be constructed withParameterSet.from_numpy_or_dict.DecisionOptiondescribes a decision option and its sample size.TrialDesigndescribes the arms of a proposed study.
The constructors enforce dimensionality, finite values, names, and alignment before a numerical kernel is called.