liveBook · Manning

Intercept

As explained in Build AI Drug Discovery Pipelines

An intercept is the constant term in a linear model that represents the predicted output when all input features are zero.

An intercept is the constant term in a linear model. It represents the predicted output when every input feature is zero. In a solubility model using logP, the prediction is written as ŷ = w₀ + w₁x: w₀ is the intercept, and w₁ determines how the prediction changes with logP. section 4.1.4

For multiple features, the intercept can be represented as a bias parameter. A feature value of 1 is paired with that parameter, allowing the constant contribution to appear inside the same dot-product calculation as the feature contributions. section 4.2.1

The intercept serves several practical roles:

  • Sets the model’s baseline prediction before feature effects are added. section 4.1.4
  • Shifts a regression line without changing the feature coefficient’s slope. section 4.1.4
  • Acts as a learnable bias vector in fully connected neural-network layers, where the affine transformation is xWᵀ + b. section 8.2.2

Solubility from logP

A simple solubility model uses logP as its only descriptor. After fitting the line to training data, the intercept w₀ supplies the predicted solubility at logP = 0, while w₁x supplies the adjustment for a molecule’s logP value. The model can be fitted with scikit-learn’s LinearRegression and evaluated using MSE, MAE, or R². section 4.1.4

How Build AI Drug Discovery Pipelines covers it

How deep it goes
Defines the constant term, embeds it as a bias parameter, and stops short of deriving its fitted value.
Examples
Uses a logP-based solubility line and fully connected PyTorch layers to illustrate intercept and bias behavior.
What it assumes
Assumes basic feature and prediction terminology while defining the intercept, bias parameter, and zero-feature interpretation.
What you can do after
Apply it via scikit-learn by interpreting w₀ as the baseline prediction in a fitted linear regression model.
How it connects
Connects intercepts with linear regression, bias parameters, affine transformations, feature vectors, and neural networks.

Also explained in

Compare how 11 books explain intercept →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Build AI Drug Discovery Pipelines. The section links point to the parts of the book it draws on.