Computer scienceData scienceInstrumentsScikit-learnTraining ML models with scikit-learnRegression in scikit-learn

Linear Regression with scikit-learn

Accessing model's intercept

Report a typo

Imagine that you're training a linear regression model of the following form:

Y=αo+α1X1+α2X2Y = \alpha_o + \alpha_1 \cdot X_1 + \alpha_2 \cdot X_2

You've created a LinearRegression object called my_model and trained it on the available data.

How can you access the intercept of the model? Select all possible ways to do so.

Select one or more options from the list
___

Create a free account to access the full topic