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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.