Python Machine Learning Cookbook(Second Edition)
上QQ阅读APP看书,第一时间看更新

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