Using sklearn to fit classifiers

Scikit-learn provides some classifiers

  • classifier.fit(X, y) to fit classifier, where X is a dataframe and y is a list of labels
  • classifier.predict(X) to predict on X