Clear all

Trouble importing linear regression module in scikit-learn

1 Posts
2 Users
0 Reactions
Topic starter

I'm having difficulty importing the linear regression module from scikit-learn using Python. Could someone provide the correct import statement, and possibly explain any common issues associated with this step?

1 Answer

To import the linear regression module in scikit-learn, use the following code: 

from sklearn.linear_model import LinearRegression

Please close the topic if your issue has been resolved. Add comments to continue adding more context or to continue discussion and add answer only if it is the answer of the question.
Neuraldemy Support Team | Enroll In Our ML Tutorials

Welcome Back!

Login to your account below

Create New Account!

Fill the forms below to register

*By registering into our website, you agree to the Terms & Conditions and Privacy Policy.

Retrieve your password

Please enter your username or email address to reset your password.

Are you sure want to unlock this post?
Unlock left : 0
Are you sure want to cancel subscription?