Chapter 8Creating a Decision Tree Classifier
In this chapter, you will create a decision tree classification model that can be used to classify Iris flowers. The model will be trained on the popular Iris flowers dataset. After the model is trained, you will use Core ML tools to export the model into the Core ML file format and finally use the model in an iOS app that allows users to input the characteristics of an Iris flower and learn what species it is likely to represent.
Decision Tree Recap
Decision trees were introduced briefly in Chapter 1, and as their name suggests, they are tree-like structures where each node represents a decision boundary and where leaves represent outcomes of the decision. Tree-based algorithms such as decision trees, random forests, and boosted trees are commonly used with real-world classification problems and are often the winning algorithms behind several Kaggle.com
competitions based on tabular data.
The following are some ...
Get Machine Learning for iOS Developers 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.