Getting the data

In Chapter 5, Credit Risk Detection and Prediction – Descriptive Analytics, we had analyzed the credit dataset from the German bank and performed several transformations already. We will be working on that transformed dataset in this chapter. We had saved the transformed dataset which you can check out by opening the credit_dataset_final.csv file. We will be doing all our analysis in R as usual. To load the data in memory, run the following code snippet:

> # load the dataset into data frame
> credit.df <- read.csv("credit_dataset_final.csv", header = TRUE, sep = ",")

This loads the dataset into a data frame which can now be readily accessed using the credit.df variable. Next, we will focus on data transformation and normalization. ...

Get R Machine Learning By Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.