From the course: Machine Learning and AI: Advanced Decision Trees with SPSS

Unlock the full course today

Join today to access over 23,200 courses taught by industry experts.

Costs and priors

Costs and priors

- [Instructor] Now I'd like to talk about costs. Now, costs are a feature that almost all the decision tree algorithms have, but I'm going to demonstrate them via CART, because CART has a really nice feature that some of the other algorithms doesn't have in regards to costs. I'm going to start by opening a stream that I've created for just this purpose. The first CART model that's been already placed on the stream here was run on default settings, so nothing particularly special about that model. Now, in the Settings for the CART modeling node, I'm going to show you where the settings for costs are, you can check off Use misclassification costs and I've increased the value in the upper right corner from the original 1.0 to 5.0. What's going on here? Well, that corner of the matrix means the following. Those are folks that actually died in the accident but the model said that they would survive. That's a particular kind of mistake. The opposite kind of mistake would be predicting that…

Contents