Icon

TrainingWorkflow

MODELS

EDA

Here is presented the Exploratory Data Analysis both for the dataset with "duplicates" and without, as a way of further investigating the reason about these seemingly duped rows.

CatBoost

RandomForest

XGBoost

GradientBoosting

Stacked (GB + XGB + RF + CB -> LR)

Importing the File

Steps needed to import and change into a proper table format the Json file from the Kaggle link: https://www.kaggle.com/datasets/rohit265/loan-approval-dataset

Setting up the Environment

It is important to note that Conda must be set up and configured in the Preferences of the KNIME Conda Integration.

The packages used in this workflow are:

Python: catboost, numpy, matplotlib, pandas, scikit-learn, seaborn

R: cairo, clValid, ggally, rserve, tidyverse

Partitioning of the Dataset






The dataset was initially split using stratified sampling based on the target variable, Risk_Flag, into a training set with 201,600 observations (80% of the total) and a test set with 50,400 observations (20% of the total). This approach will enable the models to be evaluated on data that simulates real-world unseen scenarios.

Preprocessing the Training Set





This component includes all the preprocessing steps applied to the training set and saves the necessary metrics to ensure the same transformations can be consistently applied to the test set.

Preprocessing the Test Set





This component ensures that all preprocessing modifications applied to the training set are mirrored on the test set, enabling accurate evaluation of model performance on unseen data.

Training of the Final Best Model - RandomForest

Important Notice

Some metanodes and components are marked with asterisks (*) to denote varying levels of computational intensity:

  • * : Moderate computational intensity.

  • ** : Substantial computational intensity.

  • *** : Maximum computational intensity.

Nodes or components without asterisks have no special computational considerations.

EDA dup
***
STACKED TRAINING SET
select the path of the .json file here
JSON Reader
Testing GB
STACKED TEST SET
EDA no dup
JSON Path
Testing RF
String to Number
Testing XGB
Final RF
Ungroup
Duplicate Row Filter
*
Testing CB
80% Training20% Test
Partitioning
Testing STACK
TRAIN PREPROCESS
This node ensures the existence of a Conda environment and propagates the environment to Python, R, or other Conda-aware downstream nodes
Conda Environment Propagation
**
Parameter Optimization GB
Parameter Optimization STACK
TEST PREPROCESS
PREPROCESS
*
Parameter Optimization RF
Removal of the Id column
Column Filter
***
Parameter Optimization XGB
***
Parameter Optimization CB
ROC CURVES

Nodes

Extensions

Links