Repository navigation
Blackwell 0.0.4 adds reusable linear forecasting and metrics for evaluating the decisions supported by a model.
Reusable linear predictions
blackwell.models.linear.prepare_predictionbuilds an immutablePredictionResponsefrom the existingLinearDynamicsmodel, with optional output projection and affine offsets.predict_sequenceevaluates future outputs through matrix products. The prepared state and command responses are also exact Jacobians and compose with explicit JAX compilation, batching and autodifferentiation.- A runnable example and benchmark compare prepared prediction and objective gradients with batched scanning, separating preparation/compilation from warmed execution and recording storage and break-even counts. Dense command-response storage is quadratic in the horizon.
Read Reuse linear predictions.
Decision-relevant model evaluation
blackwell.metrics.selection_regretevaluates the caller's actual selection against the observed feasible finite bank, retaining availability and defined flags.binary_decision_countsreturns confusion counts, observation exclusions, conditional rates and their denominators. Missing truth, infeasibility and zero denominators remain explicit.- The planar example compares prediction RMSE, selection regret, constraint decisions, completion windows and paired open-loop executions. It demonstrates both a lower-RMSE model making a worse decision and errors leaving the action unchanged, while reporting physical failure and censoring separately.
Read Evaluate models through their decisions.
Compatibility and validation
Existing model, belief and filter APIs remain compatible with 0.0.3. Package-root exports and runtime dependencies are unchanged: Python 3.10 or newer and JAX 0.6 or newer. Blackwell remains pre-alpha.
All 183 tests pass locally, including clean-wheel checks with Python 3.10/JAX 0.6.2 and Python 3.12/JAX 0.6.0. Lint, strict documentation builds and distribution metadata checks pass. Release publication verifies the installed wheel on Python 3.10–3.13 before uploading to PyPI. CPU benchmark measurements do not establish GPU or Jetson performance.
Install or upgrade with python -m pip install --upgrade blackwell.