Memuat
Memuat
Predict customers at risk of default and compare two models using the confusion matrix and ROC.
1 views
This project assesses the creditworthiness of 3,000 fictional customers of a lending institution using Naive Bayes and Random Forest. The two models are compared on the same test data through accuracy, precision, recall, the confusion matrix and the ROC curve.

Read CSV loads data_nasabah.csv (3,000 customers, 11 attributes). Set id_nasabah as the id and status_kredit as the binominal label.
Remap Binominals makes "macet" (default) the positive class because default risk is what we want to detect.
Split Data with stratified sampling makes a 70% training and 30% test split while keeping the share of defaults equal in both parts.
Two Multiply operators give both models a copy of the training data and both evaluations a copy of the test data so the comparison is fair.
Naive Bayes with Laplace correction. Random Forest with 100 trees, gain ratio criterion and maximal depth 10.
Apply Model produces a prediction and confidence for every test customer from both models.
Performance (Binominal Classification) computes accuracy, kappa, AUC, precision, recall and F-measure for each model.
Performance to Data and four Write CSV operators save the measures and per-customer predictions, which are used to build the confusion matrix and ROC curve.
data_nasabah.csv
3,000 rows · 13 columns
3,000 fictional customers: age, years employed, income, housing status, dependants, loan purpose, loan amount, term, instalment-to-income ratio, arrears history, active loans, and credit status (performing or default).
Ready-to-run RapidMiner process (.rmp); CSV dataset with data dictionary; Practice guide and exercises (PDF/MD); Step-by-step video tutorial.
Not necessarily. The project is rated "intermediate", and every step of the process is explained so you can follow how the data becomes a result.
Yes. Swap the dataset in the first step and adjust the attribute roles; the rest of the process stays the same. If you would like us to adapt it for you, message us on WhatsApp.
The project costs US$24. Use the "Buy via WhatsApp" button on this page; the project files are delivered after payment is confirmed.
Found a problem or have a suggestion for this project? Tell us on WhatsApp
Back to RapidMiner portfolio