Issue
I want to know what is the meaning of .linear_model in the following code -
from sklearn.linear_model import LogisticRegression
My understanding is sklearn is the library/module (both have same meaning) and LogisticRegression is the class inside this module.
But I'm not able to understand what .linear_model
means?
Solution
linear_model
is a module. sklearn
is a package. A package is basically a module that contains other modules.
Answered By - BrenBarn
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.