Skip to content

Blackwell 0.0.4: linear prediction and decision evaluation

Latest

Choose a tag to compare

@OliverObst OliverObst released this 03 Nov 04:15
4e9559d

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_prediction builds an immutable PredictionResponse from the existing LinearDynamics model, with optional output projection and affine offsets.
  • predict_sequence evaluates 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_regret evaluates the caller's actual selection against the observed feasible finite bank, retaining availability and defined flags.
  • binary_decision_counts returns 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.

Full changelog