From the course: Applied Machine Learning: Supervised Learning

Unlock this course with a free trial

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

Solution: XGBoost model

Solution: XGBoost model

- [Instructor] We're going to do the solution for the XGBoost grid search model, and my codespace just stopped. So you might be in the case where this happened to you. So I'm just going to walk through what I'm going to do here. I'm going to take this code here 'cause I kind of want a lot of this code here. I'm going to copy this and I'm going to come over here and we're down here at this one right here. I'm going to come down and just put these imports down here. Let's just run that and make sure that it works. Okay. And then I want to load my data, so let's get our data. So I think we've got our Titanic data in here. Here's the Titanic data. So I'm going to copy this to get that Titanic data and we'll throw this down here as well. And I'll just put this right here. Okay, and then we need to make the data set here. So that's like X_titanic, so let's find that. Okay, so this is it right here. I'll just copy these values right here and we'll put this down here as well. Okay, let's just…

Contents