Test your knowledge
To test your knowledge, use the same loan_data.csv
dataset from the previous chapter (also available in the Chapter12/test_your_knowledge/data
folder in this book's GitHub repository) and our ML classification models from the Test your knowledge section in the previous chapter trained to predict the TARGET
column.
Compare the models using metrics and select the best one. Try balancing the classes in the data and see whether this improves performance. Finally, select the ideal threshold for rounding probability predictions and plot the confusion matrix with this ideal threshold. Write a short analysis of the results and process.