Predictor insight graphs

Nhập môn Phân tích Dự đoán với Python

Nele Verbiest, Ph.D

Data Scientist @PythonPredictions

Motivation for predictor insight graphs

  1. Build model
  2. Evaluate model using AUC
  3. Evaluate model using cumulative gains and lift curves
  4. Verify whether the variables in the model are interpretable
Nhập môn Phân tích Dự đoán với Python

Interpretation of predictor insight graphs

Nhập môn Phân tích Dự đoán với Python

Predictor insight graphs for continuous variables

Nhập môn Phân tích Dự đoán với Python

The predictor insight graph table

Income Size Incidence
low 20850 0.0431
average 62950 0.0492
high 16200 0.0615

 

print(pig_table["Size"][income=="low"])
20850
Nhập môn Phân tích Dự đoán với Python

Constructing a predictor insight graph

  • (Discretisation of variable if continuous)
  • Calculate predictor insight graph table
  • Plot the predictor insight graph
Nhập môn Phân tích Dự đoán với Python

Let's practice!

Nhập môn Phân tích Dự đoán với Python

Preparing Video For Download...