- Mastering Predictive Analytics with scikit:learn and TensorFlow
- Alan Fontaine
- 131字
- 2021-07-23 16:42:27
Training different regression models
The following screenshot shows a dataframe where we are going to save performance. We are going to run four models, namely logistic regression, bagging, random forest, and boosting:
We are going to use the following evaluation metrics in this case:
- accuracy: This metric measures how often the model predicts defaulters and non-defaulters correctly
- precision: This metric will be when the model predicts the default and how often the model is correct
- recall: This metric will be the proportion of actual defaulters that the model will correctly predict
The most important of these is the recall metric. The reason behind this is that we want to maximize the proportion of actual defaulters that the model identifies, and so the model with the best recall is selected.
推薦閱讀
- 輕松學(xué)C語(yǔ)言
- 走入IBM小型機(jī)世界
- 自動(dòng)檢測(cè)與傳感技術(shù)
- 嵌入式Linux上的C語(yǔ)言編程實(shí)踐
- Windows程序設(shè)計(jì)與架構(gòu)
- 人工智能與人工生命
- MCGS嵌入版組態(tài)軟件應(yīng)用教程
- The DevOps 2.1 Toolkit:Docker Swarm
- Mastering Exploratory Analysis with pandas
- 工業(yè)機(jī)器人應(yīng)用系統(tǒng)三維建模
- Wireshark Revealed:Essential Skills for IT Professionals
- 大話(huà)數(shù)據(jù)科學(xué):大數(shù)據(jù)與機(jī)器學(xué)習(xí)實(shí)戰(zhàn)(基于R語(yǔ)言)
- 數(shù)據(jù)結(jié)構(gòu)與實(shí)訓(xùn)
- Kubernetes Design Patterns and Extensions
- 商務(wù)智能