Keeping up with velocity

Various algorithms work using incremental learning. For classification, we will recall the following:

  • sklearn.naive_bayes.MultinomialNB
  • sklearn.naive_bayes.BernoulliNB
  • sklearn.linear_model.Perceptron
  • sklearn.linear_model.SGDClassifier
  • sklearn.linear_model.PassiveAggressiveClassifier

For regression, we will recall the following:

  • sklearn.linear_model.SGDRegressor
  • sklearn.linear_model.PassiveAggressiveRegressor

As for velocity, they are all comparable in speed. You can try for yourself with the following script:

In: from sklearn.naive_bayes import MultinomialNB    from sklearn.naive_bayes import BernoulliNB    from sklearn.linear_model import Perceptron    from sklearn.linear_model import SGDClassifier from sklearn.linear_model ...

Get Python Data Science Essentials - Third Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.