Intercept
noun
say it: “IN-ter-sept” /ˈɪntərˌsɛpt/
The point where a line crosses the vertical axis: its value when the input is zero.
What is the intercept of a line?
The intercept is where a line starts: its guess when every feature is 0. The slopes build on it. It's often not a
value you'd ever see, such as the price of a home with no floor space; scikit-learn keeps it in intercept_.
from sklearn.linear_model import LinearRegression
sizes = [[1000], [1500], [2000]] # square feet
prices = [250_000, 325_000, 400_000]
model = LinearRegression().fit(sizes, prices)
print(round(model.intercept_)) # 100000: the guess at 0 square feet
In a sentence
- “The model's guess is the intercept plus the slope times the size.”
- “The intercept of $100,000 is the line's guess for a home with no floor space at all.”
Level: Apprentice · More AI Basics terms at this level
Updated