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

Unlock the full course today

Join today to access over 24,900 courses taught by industry experts.

Building a quick CHAID model

Building a quick CHAID model

- [Instructor] Let's build our first CHAID model. I'm going to use the open an existing stream icon to open Source_and_Type_Node.str. It's got just two nodes. The first node, our source node, has the location of the file. Now, remember that your path might be different than mine. Also remember that there's some important instructions that have been given here, but don't worry, I've done that for you. Next node is a type node. This also has some important instructions, but at the moment, I'm just going to focus on the variables that have been declared as input. Those are the variables that we're going to be using to predict survival of the passengers. So the first one is Pclass. That stands for Passenger class, whether or not they're traveling in first, second or third class. Next is Sex, male or female, followed by Age, and the next two are interesting: this one is sibling, spouse, that's what that stands for, and the one after that is parent, child. So taken together, that indicates…

Contents