<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>ML | Ukant Jadia</title><link>https://ukantjadia.github.io/tag/ml/</link><atom:link href="https://ukantjadia.github.io/tag/ml/index.xml" rel="self" type="application/rss+xml"/><description>ML</description><generator>Hugo Blox Builder (https://hugoblox.com)</generator><language>en-us</language><lastBuildDate>Tue, 18 Apr 2023 00:00:00 +0000</lastBuildDate><image><url>https://ukantjadia.github.io/media/icon_hu5e29e1df12b63ca0c9252c8db4842f1b_8915_512x512_fill_lanczos_center_3.png</url><title>ML</title><link>https://ukantjadia.github.io/tag/ml/</link></image><item><title>Smart Loan Model</title><link>https://ukantjadia.github.io/project/smart-loan-model-copy/</link><pubDate>Tue, 18 Apr 2023 00:00:00 +0000</pubDate><guid>https://ukantjadia.github.io/project/smart-loan-model-copy/</guid><description>&lt;!-- ![1710054038856](image/index/1710054038856.png) -->
&lt;p>This model is trained on a loan dataset with parameters like monthly income, gender, marital status, self-employment status, property area, etc. This model uses all the real-life factors and parameters to detect whether a loan should be given to a person or not. It helps banking or loan departments make an informed decision.&lt;/p>
&lt;p>In this project, the models used for classification are logistic regression, K-nearest neighbors classifier, support vector machine, and decision tree classifier.&lt;/p>
&lt;p>In this project, the following steps were taken: data collection, data preprocessing, data splitting, model implementation, and model evaluation. A detailed description of each step is given below:&lt;/p>
&lt;ol>
&lt;li>Data Collection: I collected the data from Kaggle and read it with the &lt;code>pandas&lt;/code> library. I analyzed the data frame using &lt;code>df.info()&lt;/code> and &lt;code>df.describe()&lt;/code>.&lt;/li>
&lt;li>Data Preprocessing: For preprocessing, I dropped the duplicate values and removed and filled the null values with their respective methods, like using the median for numerical data and the mode for objective data. For visualization, I drew some plots like line plots, countplots, and bar plots for counting the loan status employment status, and other attributes to get a brief understanding of the dataset. I also generated the categorical and numerical data separately for further splitting.&lt;/li>
&lt;li>Data Splitting: In this state, I divided the data into 80% for training and 20% for testing.&lt;/li>
&lt;li>Model Implementation: I created a dictionary where the keys are the model names, and the values are the model instances themselves with parameters. I applied functions like loss calculation and model evaluation to this dictionary.
Output: Finally, I saved the data in a suitable format using pandas.&lt;/li>
&lt;/ol>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="1710054240434" srcset="
/project/smart-loan-model-copy/image/index/1710054240434_hufdff07cdbc138cb9c8b48acf172d7b6d_73604_9d65aec09e8618a40223a02b1bd7b980.webp 400w,
/project/smart-loan-model-copy/image/index/1710054240434_hufdff07cdbc138cb9c8b48acf172d7b6d_73604_e3cd2f427d1e6bc5576fe8a53ccf4276.webp 760w,
/project/smart-loan-model-copy/image/index/1710054240434_hufdff07cdbc138cb9c8b48acf172d7b6d_73604_1200x1200_fit_q75_h2_lanczos_3.webp 1200w"
src="https://ukantjadia.github.io/project/smart-loan-model-copy/image/index/1710054240434_hufdff07cdbc138cb9c8b48acf172d7b6d_73604_9d65aec09e8618a40223a02b1bd7b980.webp"
width="760"
height="380"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="1710054254673" srcset="
/project/smart-loan-model-copy/image/index/1710054254673_hu3634442776f3a7ba7a31ebbdabfe5c7a_44811_3999a3f157a1b6fb793b8b2d0e76d16c.webp 400w,
/project/smart-loan-model-copy/image/index/1710054254673_hu3634442776f3a7ba7a31ebbdabfe5c7a_44811_47f1e3fa00ee1f91041412135ec2c73a.webp 760w,
/project/smart-loan-model-copy/image/index/1710054254673_hu3634442776f3a7ba7a31ebbdabfe5c7a_44811_1200x1200_fit_q75_h2_lanczos_3.webp 1200w"
src="https://ukantjadia.github.io/project/smart-loan-model-copy/image/index/1710054254673_hu3634442776f3a7ba7a31ebbdabfe5c7a_44811_3999a3f157a1b6fb793b8b2d0e76d16c.webp"
width="760"
height="381"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="1710054299247" srcset="
/project/smart-loan-model-copy/image/index/1710054299247_hue2868b409dbb0a22bab31815e766bf05_59766_a767bb59c960dbb68edbdc6a071faa09.webp 400w,
/project/smart-loan-model-copy/image/index/1710054299247_hue2868b409dbb0a22bab31815e766bf05_59766_4359dcc6f63f4a4765553e7ad6210399.webp 760w,
/project/smart-loan-model-copy/image/index/1710054299247_hue2868b409dbb0a22bab31815e766bf05_59766_1200x1200_fit_q75_h2_lanczos_3.webp 1200w"
src="https://ukantjadia.github.io/project/smart-loan-model-copy/image/index/1710054299247_hue2868b409dbb0a22bab31815e766bf05_59766_a767bb59c960dbb68edbdc6a071faa09.webp"
width="760"
height="383"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p></description></item></channel></rss>