- Ensemble Machine Learning Cookbook
- Dipayan Sarkar Vijayalakshmi Natarajan
- 113字
- 2021-07-02 13:21:57
How it works...
In Step 1, we imported the required packages. In Step 2, we separated the feature set and the response variable from our dataset. We split our dataset into training and testing samples in Step 3.
Note that our response variable is continuous in nature. For this reason, we built our regression base learners in Step 4 using linear regression, SVR, and a decision tree. In Step 5, we passed our test dataset to the predict() function to predict our response variable. And finally, in Step 6, we added all of the predictions together and divided them by the number of base learners, which is three in our example.
推薦閱讀
- Practical Data Analysis
- PostgreSQL 11 Server Side Programming Quick Start Guide
- Excel 2007函數(shù)與公式自學(xué)寶典
- 精通Windows Vista必讀
- Google App Inventor
- 機(jī)器人編程實(shí)戰(zhàn)
- 永磁同步電動機(jī)變頻調(diào)速系統(tǒng)及其控制(第2版)
- Visual FoxPro數(shù)據(jù)庫基礎(chǔ)及應(yīng)用
- 網(wǎng)絡(luò)管理工具實(shí)用詳解
- Mastering Geospatial Analysis with Python
- HBase Essentials
- 大型機(jī)系統(tǒng)應(yīng)用基礎(chǔ)
- Flash CS5二維動畫設(shè)計與制作
- 軟件測試設(shè)計
- Kubernetes Design Patterns and Extensions