Linearization and elimination
This entry brought back the two pieces every least-squares method rests on, as two crates. skoro-elimination is the note on elimination in square-root form as code: factored problems over blocks of variables, scheduled once by COLAMD and a junction tree, eliminated clique by clique by faer's unpivoted QR on the host in double precision, and answering minimizers, integrals, draws, marginals and the factor a replacement leaves. skoro-linearize linearizes a density query at a batch of points into such problems, one per row: by each term's whitened residual, with the curved types' log-volumes folded into the right-hand sides and the others in a linear term read off the log-volumes themselves, or, for a free scale, by the normal's information root and a scale residual that carries its score. It refuses by structure what it cannot linearize, seeds one tangent pass by a colouring of the factor structure, and gives Gauss–Newton and Levenberg–Marquardt steps, marginals that name their curved quantities, and the Laplace approximation's evidence and draws in the chart. A retirement's replacement is now computed rather than written: the linearized integral of the retired terms, built as the normal's improper factor, which is the Kalman filter on linear-Gaussian terms and an iterated extended Kalman filter's step at their mode. The core gained the accessors an algorithm in another crate needs, and the normal binds its tangent under a role of its own. The methods themselves, an optimizer's loop, a damping schedule and a filter, are left to later entries.
This entry brought back the two pieces every least-squares method rests on, as two crates. skoro-elimination is the note on elimination in square-root form as code: factored problems over
blocks of variables, scheduled once by COLAMD and a junction tree, eliminated clique by clique by
faer’s unpivoted QR on the host in double precision, and answering minimizers, integrals, draws,
marginals and the factor a replacement leaves. skoro-linearize linearizes a density query at a
batch of points into such problems, one per row: by each term’s whitened residual, with the curved
types’ log-volumes folded into the right-hand sides and the others in a linear term read off the
log-volumes themselves, or, for a free scale, by the normal’s information root and a scale residual
that carries its score. It refuses by structure what it cannot linearize, seeds one tangent pass by
a colouring of the factor structure, and gives Gauss–Newton and Levenberg–Marquardt steps, marginals
that name their curved quantities, and the Laplace approximation’s evidence and draws in the chart.
A retirement’s replacement is now computed rather than written: the linearized integral of the
retired terms, built as the normal’s improper factor, which is the Kalman filter on linear-Gaussian
terms and an iterated extended Kalman filter’s step at their mode. The core gained the accessors an
algorithm in another crate needs, and the normal binds its tangent under a role of its own. The
methods themselves, an optimizer’s loop, a damping schedule and a filter, are left to later entries.
Where it stands
- Mathematics
- Implementation
- Plan
- Build
- Publish
Documents
What it changed
The pages that say what this entry made true:
- Linearization and elimination A density query is linearized at a batch of points into factored least-squares problems over its free quantities, by its residuals or by its information roots, and each problem is eliminated in square-root form on the host into a step, marginals, an evidence, draws, or a retirement's replacement; the Levenberg–Marquardt method iterates the steps to the mode.
- Queries and programs A query names what to compute from a snapshot and what is observed; compiled for a device and a precision, it becomes a program whose passes give values, tangents, gradients and Hessian-vector products in tangent charts.
- Spaces and quantities Every value in a model lives in a space, which fixes how it is stored, how it moves, and the typed handle code holds it by.
- Terms and the probabilistic graph A model's density is a sum of terms, each a log-density that scores one quantity or none; the terms and quantities together make the probabilistic graph inference reads, and a retirement removes some quantities, replaces their terms, and frees what it leaves needed by nothing.
- The normal distribution skoro's normal is the law of a point moved by normal noise through its space's chart, on every space whose chart is global, with an exact density and sampler, a scale in four forms, roles that estimators read, its tangent among them, and the Gaussian and improper Gaussian replacements of a retirement.
- Steps and replacements Linearize a model's density at a point and iterate damped Gauss–Newton steps to its mode, and retire part of a model with a linearized replacement that keeps what it said, with the crate skoro-linearize, from its own tests.
- Crates The workspace's crates, what each holds, and what each depends on.
The crates it changed:
History
- Started at math
- Approved math
efa5295 - Approved implementation
9cacce0 - Approved plan
35c1001 - Approved build
01f391a - Approved publish
72dff29 - Amended archive/linearization/implementation by mathematics-in-order
a7dd3d2 - Amended archive/linearization/math by mathematics-in-order
a7dd3d2 - Amended archive/linearization/statements/fisher by mathematics-in-order
a7dd3d2 - Amended archive/linearization/statements/linearization by mathematics-in-order
a7dd3d2 - Amended archive/linearization/statements/replacement by mathematics-in-order
a7dd3d2