Chapter 4. Machine Learning

After having illustrated all the data preparation steps in a data science project, we have finally arrived at the learning phase, where learning algorithms are applied. In order to introduce you to the most effective machine learning tools that are readily available in Scikit-learn and in other Python packages, we have prepared a brief introduction to all the major families of algorithms. We completed it with examples and tips on the hyper-parameters that guarantee the best possible results.

In this chapter, we will present the following topics:

  • Linear and logistic regression
  • Naive Bayes
  • k-Nearest Neighbors (kNN)
  • Support Vector Machines (SVM)
  • Ensembles such as Random Forests, GBM, and XGBoost
  • Stochastic, gradient-based classification ...

Get Python Data Science Essentials - Second 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.