Skip to content

Introducing Scikit Learn

Awantik Das edited this page Apr 1, 2017 · 2 revisions

Data Representation in Scikit-Learn

Steps involved

  • Choose a class of model from sklearn.linear_model import Linearregression

    model = Linearregression(init_paramers)

  • Choose model hyperparameters Each model needs some initial parameters You have to choose the best parameters among

  • Arrange data into feature matrix & vector

  • fit the model. All the data will be passed here. If supervised, labels are also passed otherwise not.

  • Predict the labels of unknow data

  • Evaluate your model