<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Akshita Gupta on Medium]]></title>
        <description><![CDATA[Stories by Akshita Gupta on Medium]]></description>
        <link>https://medium.com/@akshi.gupta23?source=rss-4619eae5d62f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*zX48ubX_HROgx5jb.jpg</url>
            <title>Stories by Akshita Gupta on Medium</title>
            <link>https://medium.com/@akshi.gupta23?source=rss-4619eae5d62f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 12:36:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@akshi.gupta23/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Loan Grant: A conundrum explained by XAI]]></title>
            <link>https://medium.com/@akshi.gupta23/loan-grant-a-conundrum-explained-by-xai-e476d11e640e?source=rss-4619eae5d62f------2</link>
            <guid isPermaLink="false">https://medium.com/p/e476d11e640e</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[explainable-ai]]></category>
            <dc:creator><![CDATA[Akshita Gupta]]></dc:creator>
            <pubDate>Sun, 21 Feb 2021 09:14:05 GMT</pubDate>
            <atom:updated>2021-02-21T09:14:05.046Z</atom:updated>
            <content:encoded><![CDATA[<p>Black Box explanation of Loan Predictive Model</p><p>Loan classification using AI/ML is the pressing issue for banking sector. Every bank wants to reduce the churn of its customer due to delay and lengthy process of loan disbursement. With the implication of GDPR and rights for customer in digital era it has become predominant that banks should provide the rationality to its customer about loan disbursement decision.</p><p>This blog is an attempt to highlight the under the hood process of ML system or Black Box as it is popularly known for the Loan Classification prediction model. Like SDLC lifecycle for software solutions, ML model building is followed using the CRSIP-DM lifecycle. Let’s hop to the methodology with snippets of findings and results.</p><p><strong>Business Problem</strong></p><p>Universal bank issues loan to its customers based on customer information known as features. The bank wants to build a model which can predict if a customer is eligible to grant loan or not. The ROI of this transformation from legacy based decisioning to AI based decisioning is the fast disbursal to the loan along with enhancing the better customer reach. This analysis is based on the dataset of <a href="https://www.kaggle.com/sriharipramod/bank-loan-classification">Universal Bank</a>.</p><p>The model is built in Juypter Notebook in python 3. <br>Several Data and ML libraries are used like pandas, numpy , scikit-learn, etc. Hyperparameter tune also known as Evaluation phase of CRISP-DM is done using Random Search CV. <br>Explanation of Black Box ML model is done using SHAP (SHapley Additive exPlanations).<br>Dataset consists of #5000 as rows and #14 columns or features.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/261/1*viUJRxjmKs1ioNvHx8a8pw.png" /><figcaption>Bank Data Set</figcaption></figure><p><em>Personal Loan </em>is the target or label column which was to be predicted. Since the problem is of binary classification hence the use case falls under <em>Supervised ML.</em></p><p>Following are the business questions that were attempted to answer from the model:</p><p><strong>Q1: What are the distributions of the data? Is there some deviation from the Normal distribution?</strong><br>From the EDA it was observed that Income and Mortgage columns are skewed and have kurtosis, hence logarithm of these columns transformed to Normal Distribution</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/625/1*Fl21GWhya_94N8yU4iAP5w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/510/1*Yc83MQeh4eBWJaSpAmo72w.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/618/1*rFwxSaEj_jGb2TR7hxOFxQ.png" /><figcaption>Log + Normalization</figcaption></figure><p><strong>Q2. Is the data being balanced, if not then what implication it can levy on Business decision?</strong><br>It was observed that the data set was imbalance with one class being favored to one class. This would have been impacted the result to one class or the model would have been biased to one decision thereby not following the XAI principle of Transparency</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/246/1*ag3SIS8ywG3Gscuncla5NA.jpeg" /></figure><p>Hence the imbalance nature was dealt with oversampling by using the from imblearn.over_sampling import SMOTE. Other methods such as under sampling or ADASYN can be explored to see if there are any changes in the model performance.</p><p><strong>Q3: Which features are responsible for customer to get a Loan or Not.?</strong><br>Random Forest Classifier was used to get trained on data. Hyperparameters were generated randomly to cover the vast range of parameter values. <br>To explain the model’s BLACK BOX nature SHAP (SHapley Additive exPlanations was used for explaining the decision instead of clf.feature_importance_. <br>It was observed that Income, CCAvg and Education are the most important features while Age &amp; Securities Account being the least</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*knK5BhkAB6GkHz-mjqGQyw.png" /><figcaption>Feature Impact on Model</figcaption></figure><p><strong>Conclusions</strong></p><p>So does a customer have the right to know and question the bank’s decision? — The answer is yes, with the use of open source libraries and tools like SHAP, LIME, WHAT-IF we can try and understand behind the curtain the show’s preparations. Of course the predictive model has not been finished, to see its effect in real world we would need an UI, Database and an API.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e476d11e640e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>