Logistic regression

Feedforward · architecture · Tabular → Scores, Action

Each sensor contributes a weighted reading. A sigmoid converts their sum and an intercept into a probability.

Also called Binary logistic classifier

Figure 1. The Logistic regression as a schematic: the parts it is built from and how data flows between them. Select a part to read about it.

What it does

The sign of a coefficient determines which way its sensor moves the score. Its magnitude determines how strongly the score responds to a unit change in that feature. The intercept sets the score when every feature is zero.

Formula

z = b + Σᵢ wᵢ xᵢp = 1 / (1 + exp(−z))

Shapes and parameters

Shapes
One vector [N, I] of features in, one probability [N, 1] out.
Parameters
I coefficients and one intercept. Each two-sensor household trigger has three trainable parameters.
Used for
Estimate the probability of a yes-or-no outcome from measurements, then apply the decision threshold for the task.

Figure 2. A real logistic regression in WeightSpace: Catch the end of a wash cycle, drawn from the file the app runs. Open a module to see the parts inside.

In WeightSpace

The washer, bathroom fan and basil reminder all use centered and scaled sensor readings. Try raising the weight on the recent humidity rise and compare a hot shower with a rainy afternoon.