Constructing a Classifier

In this chapter, we will cover the following recipes:

  • Building a simple classifier
  • Building a logistic regression classifier
  • Building a Naive Bayes classifier
  • Splitting a dataset for training and testing
  • Evaluating accuracy using cross-validation
  • Visualizing a confusion matrix
  • Extracting a performance report
  • Evaluating cars based on their characteristics
  • Extracting validation curves
  • Extracting learning curves
  • Estimating a income bracket
  • Predicting the quality of wine
  • Newsgroup trending topics classification

Get Python Machine Learning Cookbook - 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.