From the course: Machine Learning and AI Foundations: Classification Modeling

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Gains tables

Gains tables

- [Instructor] Okay, let's talk about the concept of a gains table, another way of assessing if your model has been doing a good job. Now, all of you should be able to generate this gains table sometimes, software will make it really easy for you as a feature, as part of a software. But all you really need is the probabilities and you can do deciles or you can do quintiles if you want. I have done deciles here. And we're looking at the different probabilities within those deciles. So first let me note that we've got a total sample size of 714. I've used the technique that throws out missing values. I have just a handful that's been discarded and I have all of my data. Not just train or test but all of it. You may wanna generate a separate gains table for the train data as well as the test data. But this one has it all. And now, take a look. I've got an overall probability of 0.41, if I round up. And this is a survival rate because this is the titanic data set. So I have an overall…

Contents