We will preform various steps in building our predictive model. These steps are explained below:
Step 1 – Data Selection
The first step is to get the dataset that we will use for building the model. For this case study, we are using the German Credit Scoring Data Set in the numeric format which contains information about 21 attributes of 1000 loans.
Step 2 – Data Pre-Processing
The purpose of preprocessing is to make your raw data suitable for the data science algorithms. For example, we may want to remove the outliers, remove or change imputations (missing values, and so on).
Step 3 – Features Selection
The raw data we have may contain many features/independent variables, and there will be many features which will be quite useless from the viewpoint of predicting the response variable. Such features should be removed from the dataset. We also need to check if there are any redundant information represented using two attributes. We can then safely remove one of the two attributes. This can be done by finding the correlation between various attributes. The resultant dataset with the reduced number of features is ready for use by the classification algorithms.
Step 4 – Building Classification Model
In this step, we build our classification model. We split the data into training and test set. Then we train our model on the training dataset. Once we have the fitted model, we can apply the model to the test dataset to predict the values of our response variable.
Step 5 – Evaluating Predictions
The resultant prediction is then evaluated against the original class labels of the test dataset to find the accuracy of the model.