validating and testing
A Simple Introduction to Validating and Testing a Model- Part 1
The issues related to the Hold-out validation technique are solved in this technique. Here we will make sure that each set has got similar distribution which will eventually help us generate a better model. Now that we know what these two techniques are, let's have a look at the code We will be using python 3.0 Here df will now have the dataset that we want to use. We can see that the data has got 5 rows and 25 columns, where Survived is our target(dependent) variable and the rest are the independent variables.