- Mastering Predictive Analytics with R(Second Edition)
- James D. Miller Rui Miguel Forte
- 313字
- 2021-07-02 20:25:15
Summary
In this chapter, we explored the fundamental ideas surrounding predictive models. We saw that there are many ways to categorize models, learning important distinctions in the process, such as supervised versus unsupervised learning and regression versus classification. Next, we outlined the steps involved in building a predictive model, starting from the process of data collection all the way to model evaluation and deployment. Critically, this process is an iterative one, and most often we arrive at our final model after having tried out and trained several different models.
We also introduced our first model, the k-nearest neighbor model, which is useful in performing classification and regression alike. kNN is a very flexible model that doesn't make any explicit assumptions about the underlying data. Thus, it can fit a very complex decision boundary. It is a lazy learner, in that it doesn't construct a model to describe the relationship between the input features and the output variable. Thus, it doesn't require a long period of training. On the other hand, for data with many dimensions, it may take a long time to produce a prediction, and because the model needs to remember all the training data in order to find the nearest neighbors of a target point, it often also requires a lot of memory. kNN doesn't distinguish between the importance of different features, and the fact that it uses a distance metric in its prediction means that, on the one hand, it does not have any built-in way to handle missing data and, on the other, it often requires features to be transformed to similar scales. Finally, the model can be tuned by choosing an appropriate value of k, the number of nearest neighbors, to balance the degree of overfitting. With a firm grounding in the basics of the predictive modeling process, we will look at linear regression in the next chapter.
- Debian 7:System Administration Best Practices
- PyTorch Artificial Intelligence Fundamentals
- 實(shí)用防銹油配方與制備200例
- 精通Python設(shè)計(jì)模式(第2版)
- Python項(xiàng)目實(shí)戰(zhàn)從入門到精通
- MongoDB Cookbook(Second Edition)
- 高效使用Greenplum:入門、進(jìn)階與數(shù)據(jù)中臺(tái)
- 面向?qū)ο蟪绦蛟O(shè)計(jì)及C++(第3版)
- 嵌入式C編程實(shí)戰(zhàn)
- 體驗(yàn)之道:從需求到實(shí)踐的用戶體驗(yàn)實(shí)戰(zhàn)
- 大話代碼架構(gòu):項(xiàng)目實(shí)戰(zhàn)版
- Python趣味創(chuàng)意編程
- 網(wǎng)絡(luò)綜合布線與組網(wǎng)實(shí)戰(zhàn)指南
- Slick2D Game Development
- Java面向?qū)ο蟪绦蛟O(shè)計(jì)(第3版)