官术网_书友最值得收藏!

Making Decisions with Trees

In this chapter, we are going to start by looking at our first supervised learning algorithm—decision trees. The decision tree algorithm is versatile and easy to understand. It is widely used and also serves as a building block for the numerous advanced algorithms that we will encounter later on in this book. In this chapter, we will learn how to train a decision tree and use it for either classification or regression problems. We will also understand the details of its learning process in order to know how to set its different hyperparameters. Furthermore, we will use a real-world dataset to apply what we are going to learn here in practice. We will start by getting and preparing the data and apply our algorithm to it. Along the way, we will also try to understand key machine learning concepts, such as cross-validation and model evaluation metrics. By the end of this chapter, you will have a very good understanding of the following topics:

  • Understanding decision trees
  • How do decision trees learn?
  • Getting a more reliable score
  • Tuning the hyperparameters for higher accuracy
  • Visualizing the tree's decision boundaries
  • Building decision tree regressors
主站蜘蛛池模板: 白银市| 开封市| 巴彦淖尔市| 阿城市| 洛阳市| 孙吴县| 修水县| 南汇区| 都昌县| 邯郸市| 廊坊市| 阿坝县| 兴业县| 平湖市| 肥乡县| 渝北区| 陈巴尔虎旗| 虞城县| 宣城市| 靖江市| 新平| 苍溪县| 凤山市| 西峡县| 巴楚县| 浦北县| 安徽省| 雅安市| 宁河县| 苏尼特左旗| 庆元县| 宝应县| 久治县| 盘山县| 庆安县| 石林| 辽源市| 睢宁县| 成安县| 安西县| 宁强县|