liveBook · Manning

Pseudo-inverse

A pseudoinverse is a generalized matrix inverse that provides least-squares solutions when an ordinary inverse does not exist.

How 2 Manning books explain it

Math and Architectures of Deep Learning

How it is used
Solves overdetermined or underdetermined linear systems and fits linear machine-learning models by minimizing error.
How deep it goes
Defines the normal-equation formula, explains projection geometry, and derives an SVD route while deferring direct inverse computation.
Examples
Uses a toy cat-brain threat-score dataset, an augmented design matrix, projection geometry, and SVD-based system solving.
What you can do after
Apply it via matrix formulas or SVD to obtain best-fit solutions for nonsquare linear systems.

Read how Math and Architectures of Deep Learning explains pseudo-inverse →

Experimentation for Engineers

A generalized matrix inverse that remains defined for some matrices whose ordinary inverse is undefined and agrees with the ordinary inverse when that inverse exists.

How it is used
Stabilizes action-specific linear regression in a contextual-bandit model built from logged user contexts and rewards.
How deep it goes
Defines the generalization and gives a NumPy formula, but does not derive Moore–Penrose properties or numerical algorithms.
Examples
Uses action-grouped samples and build_models with np.linalg.pinv(x.T@x)@x.T@y.
What you can do after
Apply it via NumPy to fit regression coefficients when ordinary matrix inversion may be undefined.

Read how Experimentation for Engineers explains pseudo-inverse →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.