<?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 lakshmi prabha ramesh on Medium]]></title>
        <description><![CDATA[Stories by lakshmi prabha ramesh on Medium]]></description>
        <link>https://medium.com/@lakshmiprabharamesh1993?source=rss-f1892731c71f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dD6McHwPby4ol_Ea9Et3zw.jpeg</url>
            <title>Stories by lakshmi prabha ramesh on Medium</title>
            <link>https://medium.com/@lakshmiprabharamesh1993?source=rss-f1892731c71f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 00:13:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@lakshmiprabharamesh1993/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[How FUOTA is Changing the Game in IoT Device Management]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@lakshmiprabharamesh1993/how-fuota-is-changing-the-game-in-iot-device-management-e0ade63d9d8f?source=rss-f1892731c71f------2"><img src="https://cdn-images-1.medium.com/max/1200/1*swGZ4OqX2qGjWdHBPVIwwg.png" width="1200"></a></p><p class="medium-feed-snippet">Traditional gateway upgrades are no longer enough&#x200A;&#x2014;&#x200A;here&#x2019;s how FUOTA ensures secure, scalable firmware updates across massive IoT networks.</p><p class="medium-feed-link"><a href="https://medium.com/@lakshmiprabharamesh1993/how-fuota-is-changing-the-game-in-iot-device-management-e0ade63d9d8f?source=rss-f1892731c71f------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@lakshmiprabharamesh1993/how-fuota-is-changing-the-game-in-iot-device-management-e0ade63d9d8f?source=rss-f1892731c71f------2</link>
            <guid isPermaLink="false">https://medium.com/p/e0ade63d9d8f</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[women-in-tech]]></category>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[firmware]]></category>
            <category><![CDATA[edge-computing]]></category>
            <dc:creator><![CDATA[lakshmi prabha ramesh]]></dc:creator>
            <pubDate>Tue, 30 Sep 2025 15:43:37 GMT</pubDate>
            <atom:updated>2025-09-30T15:43:37.817Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[ How AI powered IoT devices Are Quietly Saving Gallons ✨]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@lakshmiprabharamesh1993/how-ai-powered-iot-devices-are-quietly-saving-gallons-a0ba6e666905?source=rss-f1892731c71f------2"><img src="https://cdn-images-1.medium.com/max/600/0*nRiaW75asBe4V5w3" width="600"></a></p><p class="medium-feed-snippet">Last week, I stumbled on a surprising fact: one leaking toilet can waste over 2000&#x2013;3000 gallons of water overnight.</p><p class="medium-feed-link"><a href="https://medium.com/@lakshmiprabharamesh1993/how-ai-powered-iot-devices-are-quietly-saving-gallons-a0ba6e666905?source=rss-f1892731c71f------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@lakshmiprabharamesh1993/how-ai-powered-iot-devices-are-quietly-saving-gallons-a0ba6e666905?source=rss-f1892731c71f------2</link>
            <guid isPermaLink="false">https://medium.com/p/a0ba6e666905</guid>
            <category><![CDATA[smart-home]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[future-technology]]></category>
            <category><![CDATA[sustainability]]></category>
            <dc:creator><![CDATA[lakshmi prabha ramesh]]></dc:creator>
            <pubDate>Mon, 01 Sep 2025 20:44:36 GMT</pubDate>
            <atom:updated>2025-09-07T11:38:27.810Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Iterations of the World Wide Web. A Brief on Web 1.0, Web 2.0, Web 3.0]]></title>
            <link>https://medium.com/@lakshmiprabharamesh1993/iterations-of-the-world-wide-web-a-brief-on-web-1-0-web-2-0-web-3-0-345bc3b50a53?source=rss-f1892731c71f------2</link>
            <guid isPermaLink="false">https://medium.com/p/345bc3b50a53</guid>
            <category><![CDATA[decentralization]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[nft]]></category>
            <dc:creator><![CDATA[lakshmi prabha ramesh]]></dc:creator>
            <pubDate>Sat, 08 Jul 2023 03:28:53 GMT</pubDate>
            <atom:updated>2023-07-08T03:28:53.514Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ShcAwc1YHnpaxJL5IiHUAA.jpeg" /><figcaption>Source : <a href="https://www.practicalecommerce.com/Basic-Definitions-Web-1-0-Web-2-0-Web-3-0">https://www.practicalecommerce.com/Basic-Definitions-Web-1-0-Web-2-0-Web-3-0</a></figcaption></figure><h3>Web 1.0–1st Iteration of the World Wide Web</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2hz7bvw7sp-5nKbceGlP8w.jpeg" /><figcaption>Source : <a href="https://bidscube.com/web-1-0-to-web-3-0-evolution-of-digital-advertising/">https://bidscube.com/web-1-0-to-web-3-0-evolution-of-digital-advertising/</a></figcaption></figure><p>Back in the 90’s, when internet was born and was getting to its peak we only browsed. We used websites which were only <strong>READ-ONLY</strong>. It was the <strong>first generation or rather the first iteration</strong> of the world wide web. These websites were only HTML pages and were displayed by web browsers like Net space Navigator and Microsoft Internet Explorer.</p><h4><strong>Uses</strong></h4><p>Only read the information in the static web pages and gain information. We were not able to interact with the web. ie was not user-friendly.</p><h4>Example</h4><p>Yahoo Static pages</p><h3>Web 2.0–2nd iteration of the World Wide Web</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P7OAXYxFwXE0xDp2ujE4Xw.jpeg" /><figcaption>Source: <a href="https://bidscube.com/web-1-0-to-web-3-0-evolution-of-digital-advertising/">https://bidscube.com/web-1-0-to-web-3-0-evolution-of-digital-advertising/</a></figcaption></figure><p>WEB 2.0 happened when the web became very interactive. Techies built software products that allowed the user to <strong>interact</strong> with the web. Thus it helped the users create the <strong>content</strong>. Here in Web 2.0 we can read from websites and also write thereby interacting with these websites. The programming language on which these applications are built have no impact on whether or not its Web 2.0 or not. For example if the website frontend is written in React and the backend is in python still it represents Web 2.0.</p><h4>Uses</h4><p>Contribute to the world with your creative content. Allows us as a user to be part of adding value to the information.</p><h4>Example</h4><p>Facebook, Twitter, Instagram</p><h3>Web 3.0–3rd iteration of the World Wide Web</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2-Ix-QE1BJ2PMmXTVOXH0g.jpeg" /><figcaption>Source: <a href="https://bidscube.com/web-1-0-to-web-3-0-evolution-of-digital-advertising/">https://bidscube.com/web-1-0-to-web-3-0-evolution-of-digital-advertising/</a></figcaption></figure><p>People started to built applications on BLOCKCHAIN ever since 2018 giving birth to Web 3.0. Here beyond interaction Web 3.0 allows us to <strong>execute</strong>. In simple words, the software applications built on the internet will interact with each other and relevant information needed by humans after interpretation will be delivered in the language the human understands. It combines <strong>semantic markup</strong> (the communication space between man and software apps) and <strong>web service</strong> (software that allows computer — computer interaction over the internet ) to wrap the information and present it.</p><h4>Uses</h4><p>Beyond contribution it lets a new world open where humans can control their <strong>data and assets</strong> on the internet and allows humans to be part of decentralised platforms thereby giving them more freedom.</p><h4>Example</h4><p><strong>Helium</strong>- Built on Web 3.0 providing internet to remote areas by making individual people hosting their 5G network thereby earning crypto currency.</p><p><strong>Axie Infinity</strong> — A pokemon like game built on Web 3.0 which lets you trade, buy and sell axies. And the developer earns when a trade happens.</p><h3>Magic of Web 3.0</h3><p>We are only seeing the early stages of the magic of Web 3.0. It one of the biggest opportunities in 2023 and beyond with regards to its potential.<br>To understand Web 3.0 we have to understand how BLOCKCHAIN works.</p><p>Thanks for your time!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=345bc3b50a53" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AIMS Grid - A bulls eye Project Management Tool for Data Analysts, Team Leaders and Directors.]]></title>
            <link>https://medium.com/@lakshmiprabharamesh1993/aims-grid-a-bulls-eye-project-management-tool-for-data-analysts-team-leaders-and-directors-2cc47a122c9c?source=rss-f1892731c71f------2</link>
            <guid isPermaLink="false">https://medium.com/p/2cc47a122c9c</guid>
            <category><![CDATA[management]]></category>
            <category><![CDATA[leadership]]></category>
            <category><![CDATA[teamwork]]></category>
            <category><![CDATA[data-analytics-tools]]></category>
            <category><![CDATA[project-management]]></category>
            <dc:creator><![CDATA[lakshmi prabha ramesh]]></dc:creator>
            <pubDate>Thu, 23 Mar 2023 12:19:36 GMT</pubDate>
            <atom:updated>2023-03-23T12:20:47.038Z</atom:updated>
            <content:encoded><![CDATA[<h3>AIMS Grid - A bulls eye Project <strong>Management Tool</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/492/0*9ohI9Txnop48PvZG" /><figcaption>Source:<a href="https://unsplash.com/s/photos/bulls-eye">https://unsplash.com/s/photos/bulls-eye</a></figcaption></figure><p>AIMS grid is a very useful tool to improve <strong>Project Management skills</strong> for Project managers, Team Leaders etc. It helps to clarify a task and keep the process simple. AIMS grid presents a project in a very <strong>concise</strong> manner.</p><h3>Setting the Scene</h3><p>Let’s <strong>imagine</strong> a situation, consider you are a <strong>data analyst</strong> in a company, say XYZ Electronics. There is a <strong>decrease</strong> in sales in certain regions in your company and your sales director has called in for a meeting with your team and the IT director to discuss a solid plan to <strong>increase</strong> sales. Now it is here that companies use <a href="https://www.youtube.com/watch?v=6118I9HViuQ">AIMS grid</a> to define the purpose and success criteria for this project.</p><p>Now in the meeting the entire team will be brainstorming on how to reach the <strong>AIM</strong> in hand. The AIMS grid has <strong>4 components</strong>. Lets check them out one by one with regards to our current role in XYZ electronics case.</p><h3>AIMS Grid 4 Components</h3><h4>1. Purpose</h4><p>What do we want to achieve? What to do in order to achieve it?</p><p>In our case, the <strong>purpose</strong> would be to make visible the sales insights of different regions and to understand the <strong>trend</strong> in sales based on previous reports and study why there was a decrease and finally <strong>increase</strong> sales in the down performing regions.</p><h4>2. Stakeholders</h4><p>Which teams or Who from the company will be <strong>involved</strong>?</p><p>In our XYZ Electronics case the following teams will be involved<br>* Sales Director<br>* Marketing Team<br>* Customer Service Team<br>* Data and Analytics Team (This is where you are now!)<br>* IT Team</p><p>Note: Sometimes, companies may <strong>outsource</strong> part of their work to other <strong>service based companies</strong>. For example if the company does not have an in house IT team they can outsource that work to other companies. In that case they(service based company) will be part of the stakeholders for this project.</p><h4>3. End Result</h4><p>After the project is over what do we want to achieve? Defining the end result <strong>clearly</strong> is very important. It can <strong>never</strong> be <strong>blurry</strong> statements like -<br><em>I want to increase sales insight. </em>Instead a solid platform where the result can be projected.</p><p>In our XYZ Electronics case, this will be a <strong>Power BI Dashboard </strong>which is automated and provides sales insights which are quick and latest thereby<br><strong>data driven decision</strong> making can be implemented. This will help the sales director and regional managers to look into real time information on the sales numbers.</p><h4><strong>4. Success Criteria</strong></h4><p>Defining how the project was successful after the completion of the project for which company may have spent few million dollars. We need to specify the exact success criteria</p><p>In our XYZ Electronics case, <br>1. We want the sales team to make better <strong>decisions</strong> and prove say 12% cost savings.<br>2. Bring in powerful sales insights <strong>dashboards</strong> with latest up to date information.<br>3. Avoid manual data gathering through excel which can save 20% of their business <strong>time</strong> thereby they can invest that time in other value added tasks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/0*eDWDhAySSL-OlVg-.png" /><figcaption>Source:<a href="https://www.coverdale.at/en/formulate-goals-correctly/">https://www.coverdale.at/en/formulate-goals-correctly/</a></figcaption></figure><p>There is a very interesting <a href="https://www.youtube.com/watch?v=6118I9HViuQ">video on AIMS Grid</a> with another example being explained step by step. Kindly check it out for more examples in AIMS Grid.</p><p>Thanks for the time!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2cc47a122c9c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JLPT N5 Exam : How I got Grade A in all Sections!]]></title>
            <link>https://medium.com/@lakshmiprabharamesh1993/jlpt-n5-exam-how-i-got-grade-a-in-all-sections-472c283f5963?source=rss-f1892731c71f------2</link>
            <guid isPermaLink="false">https://medium.com/p/472c283f5963</guid>
            <category><![CDATA[jlpt]]></category>
            <category><![CDATA[language-learning]]></category>
            <category><![CDATA[japan]]></category>
            <category><![CDATA[japanese]]></category>
            <category><![CDATA[language]]></category>
            <dc:creator><![CDATA[lakshmi prabha ramesh]]></dc:creator>
            <pubDate>Thu, 26 Jan 2023 13:32:02 GMT</pubDate>
            <atom:updated>2023-01-26T13:32:02.480Z</atom:updated>
            <content:encoded><![CDATA[<h3>JLPT N5 Exam : How I got Grade A in all Sections!</h3><p>A year ago I was very inspired being an engineer and entrepreneur by the Japanese business philosophical ways like <strong>Kaizen</strong>, <strong>Keiretsu, Kanban, IKIGAI </strong>through management books . I personally fell in love with how the entire country joined together after the <strong>war</strong> to make JAPAN one of the leading countries in the world. Even today it baffles me to know about their discipline and unity post war! (touch wood! wishing them the best always!)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ri5z50uQCBWF2PsT.jpg" /></figure><p>I wanted to connect deeper with the Japanese to learn more and I realised that learning their <strong>language</strong> would help me both <strong>individually</strong> as well as <strong>professionally</strong>. This made me further enrol in <strong>JLPT N5</strong> (starting level) at the <strong>Indo-Japan</strong> Chamber of Commerce in Chennai (<a href="https://www.ijcci.com/">https://www.ijcci.com/</a>). Though I am residing in the US they made it very flexible with their weekend N5 online program (1 year duration Jan 2022- Nov 2022) and <strong>Mrs Kanthimathi Balasubramaniam</strong> was my Sensei!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*MQpBHuYVr6wy5jIm.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/225/0*E1aktjBLcpBxl_et" /><figcaption>JLPT N5</figcaption></figure><p><strong>Indo-Japan chamber</strong> <strong>Textbook</strong></p><p>The Indo-Japan chamber had given our class a <strong>textbook</strong> [Their own print] with 21 lessons. Each lesson had a reading, grammar with practice exercise, new vocabularies and finally new Kanjis. This structure was a perfect way to understand the language as a whole with its entirety. Our sensei follows a pattern for each lesson. See gives the stroke order for the Kanjis, then she teaches the new vocabulary. Further to which she teaches the grammar. Now we will be ready for reading the lesson by ourself and solving the exercises by our self.</p><h4>Exam Preparations</h4><p>Our sensei almost finished all the content by September and she prepared us for 3 months for the exam on December 4 2022. We did 3 full revisions of all the 21 lessons before the exam. I’ll go through the preparation for each important section in detail</p><ol><li>Kanjis</li><li>Reading</li><li>Grammar</li><li>Vocabulary</li><li>Listening</li></ol><h4>Kanjis</h4><p>We had a preparation list of Kanjis for the N5 level. And we kept practising them with the correct stroke order. I at-least wrote them <strong>10 times</strong> each for each revision. We took many practice tests from <a href="https://japanesetest4you.com/category/jlpt-n5/jlpt-n5-kanji-test/">https://japanesetest4you.com/category/jlpt-n5/jlpt-n5-kanji-test/</a>. This website has 19 tests and apart from that our <strong>sensei</strong> had given us more practice tests in class to test us.</p><h4>Reading</h4><p>This is a <strong>challenging</strong> section for me. Our sensei suggested us to read each lesson (21 lessons in total) 5 times for each revision(3 revisions in total). This made us very <strong>fluent</strong> with all the aspects of the Japanese Grammar. the lesson reading helped us with Grammar, vocabulary and Kanjis. Its was an overall winner and made us comfortable. We solved many comprehensions in class with our sensei where she explained how to manage the <strong>time</strong> for big and small comprehensions. The reading time and the solving time. She taught us the <strong>method of elimination</strong> which is that out of 4 options 2 our obviously incorrect and one will mislead us and finally 1 correct answer. This way it was faster to comprehend and attempt. I took about 14 practice tests in <a href="https://japanesetest4you.com/category/jlpt-n5/jlpt-n5-reading-tests/">https://japanesetest4you.com/japanese-language-proficiency-test-jlpt-n5-reading-exercise-2/ </a>from this site. Apart from that sensei made us work on comprehension passages separately by timing us. She would give us <strong>1.5mins</strong> for shorter passages and<strong> 3mins</strong> for bigger ones</p><h4>Grammar</h4><p>For this our sensei made us remember the grammar points with an example sentence each, so basically we don’t remember the grammar in place but the example sentence helps us map the grammar easily. We made a <strong>cheatsheet</strong> for each of the grammar points with an example sentence (like the below pic). By the end of our 3rd revision we knew sentences thoroughly. I took about 26 tests from this website <a href="https://japanesetest4you.com/category/jlpt-n5/jlpt-n5-grammar-test/">https://japanesetest4you.com/category/jlpt-n5/jlpt-n5-grammar-test/</a>. Apart from this site our sensei gave us about 8 extra intense grammar tests which was very challenging and helpful. Though initially I had made many mistakes, I made a list of all the mistakes alone and revised them again and again. Apart from that <a href="https://jlptsensei.com/">https://jlptsensei.com/</a> this website has a very clear details on grammar points with examples. On the day of the exam we just read the cheat sheet in like 30 minutes and we were ready.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fzYsg_BA3PtcGJcG.png" /></figure><h4>Vocabulary</h4><p>Initially we had about 45 new vocabulary for each of the 21 lesson. Our sensei gave us a compiled list (400) of the entire N5 vocabulary 5 months before. We started preparing them and repeatedly looking at the vocabulary it was easy for us to take the practice tests. This was the reason we were <strong>faster</strong> in reading comprehensions. I took about 24 vocabulary tests from <a href="https://japanesetest4you.com/category/jlpt-n5/jlpt-n5-vocabulary-test/">https://japanesetest4you.com/category/jlpt-n5/jlpt-n5-vocabulary-test/</a> this website. And of course sensei gave us a lot of practice with sample question papers.</p><h4>Listening</h4><p>Most <strong>terrified</strong> section was listening for me. Initially I would hardly reach 10 or 12 answers right but eventually after listening many times the vocabulary and pronunciations started to sink in. Sensei would take one video a week and she would explain each question with meaning and grammar. Her suggestion was to listen to the same video at-least 5 times to get hold of how Japanese people pronounce words. This helped a lot and Youtube N5 listening playlists (example <a href="https://www.youtube.com/watch?v=85-lZD0FM4Y&amp;list=PLdGH0i170WcPPluOSVot7Sgq80xe9zbTo">https://www.youtube.com/watch?v=85-lZD0FM4Y&amp;list=PLdGH0i170WcPPluOSVot7Sgq80xe9zbTo</a>) were my everyday routine. So I used to listen to 1 video and repeatedly hear the same again and again. This is the trick and in the final exam though I was nervous I could answer with the right choices. Apart from them I took about 43 sample tests from <a href="https://japanesetest4you.com/category/jlpt-n5/jlpt-n5-listening-test/">https://japanesetest4you.com/category/jlpt-n5/jlpt-n5-listening-test/</a> site.</p><h4>Final Thoughts</h4><p>This language is not very easy but if we practice it its actually easier. This post is for people who find it difficult to face the N5 exam. I was in the same boat but I gave myself time and meticulously worked for it. The practice tests are a must. Take as much as sample test as possible. They gave me a lot of confidence. The results were very satisfactory and I was happy to see grade A in all sections. Now I plan to do N4 with Indo-japan Chamber. Wishing to put in the same effort as for N5!</p><p>Arigoutou Gozaimasu!</p><p>Thank you for your time.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=472c283f5963" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Handling Imbalanced Datasets by Oversampling and Undersampling with Python Implementation]]></title>
            <link>https://medium.com/@lakshmiprabharamesh1993/handling-imbalanced-datasets-by-oversampling-and-undersampling-with-python-implementation-247eaa6e0426?source=rss-f1892731c71f------2</link>
            <guid isPermaLink="false">https://medium.com/p/247eaa6e0426</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[python-programming]]></category>
            <dc:creator><![CDATA[lakshmi prabha ramesh]]></dc:creator>
            <pubDate>Fri, 29 Apr 2022 02:44:25 GMT</pubDate>
            <atom:updated>2022-04-29T02:44:25.055Z</atom:updated>
            <content:encoded><![CDATA[<h3>What is Imbalanced data?</h3><p>In general, most of the classification type datasets will have highly skewed or biased data. That is, there will be a majority class and a minority class. This is generally is called imbalanced dataset. The ratio of these classes is called the imbalanced ratio.</p><p><strong>Issue with Imbalanced data</strong></p><p>The output determined by working with such imbalanced data is biased to the majority class which has a higher number of examples. Greater the imbalanced ratio the output is more biased to the majority class. And about 99% of the samples in the dataset will not represent the minority class and the resulting performance measure accuracy will be very high. Hence in order to get unbiased results we need to balance out the dataset.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gLV8lvkZcbeWseyx.png" /><figcaption>Source : <a href="https://datascience.aero/predicting-improbable-part-1-imbalanced-data-problem/">https://datascience.aero/predicting-improbable-part-1-imbalanced-data-problem/</a></figcaption></figure><h3>Handling Biased or Imbalanced Dataset</h3><p>We need to first balance the dataset. In order to do so, the resampling technique is commonly used to reduce the bias. There are two ways of resmapling</p><ol><li>Oversampling (Increasing the data points Minority class)</li><li>Undersmapling ( Reducing the data points in Majority class)</li></ol><p>In oversampling the simplest way to increase the minority class is by duplication of the random data points,which may lead to overfitting.</p><p>In undersampling the simplest way to decrease the majority class is by removing the random data points which may lead to loss of relevant information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/0*TpP45yNWU-t3b7Oj.jpeg" /><figcaption>Source: <a href="https://datascience.aero/handling-imbalanced-data/">https://datascience.aero/handling-imbalanced-data/</a></figcaption></figure><p>Let us see the implementation of both using python code. We require a python package <strong>imbalanced-learn </strong>which has to be installed.</p><pre>pip install imbalanced-learn</pre><h3>Oversampling Methods</h3><h4><strong>SMOTE (Synthetic Minority Oversampling TEchnique)</strong></h4><ul><li>In this method we synthesize the data points of the minority class in accordance to those already present.</li><li>It takes a point in random and finds the k-nearest neighbours for that point.</li><li>After which the synthetic data points genrated are added in between the random point chosen and its coressponding neighbour.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6T9eHECA8bXycszl.jpeg" /><figcaption>Source : <a href="https://www.jiangekj.xyz/products.aspx?cname=smote%2bmachine%2blearning%2bpython&amp;cid=7">https://www.jiangekj.xyz/products.aspx?cname=smote%2bmachine%2blearning%2bpython&amp;cid=7</a></figcaption></figure><h3>Undersampling Methods</h3><h4><strong>Tomek Links- Tlinks</strong></h4><ul><li>This method also uses the k-nearest neighbours classifer. The algorithm finds the instances of opposite classes who are their own close neighbours.</li><li>Then the algorithm removes the majority instance of the pair. This method also clears the border between the majority and miority classes.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xTzeqxgG9vyKbhhb.png" /><figcaption>Source : <a href="https://www.kdnuggets.com/2016/08/learning-from-imbalanced-classes.html/2">https://www.kdnuggets.com/2016/08/learning-from-imbalanced-classes.html/2</a></figcaption></figure><h4>Cluster Centroid based undersampling</h4><ul><li>This method uses the KMeans algorithm. The algorithm indentifies a homogenous cluster of majority data points and replaces then by the cluster <strong>centriod.</strong></li><li>The new majority samples are the N cluster centroids which is got by fitting the Kmeans algorithm with N clusters.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*bOuc6TIAAXMWRpUj.png" /><figcaption>Source: <a href="http://glemaitre.github.io/imbalanced-learn/auto_examples/under-sampling/plot_cluster_centroids.html">http://glemaitre.github.io/imbalanced-learn/auto_examples/under-sampling/plot_cluster_centroids.html</a></figcaption></figure><h3>Python Implementation</h3><p>Here we will use the <a href="https://www.kaggle.com/datasets/kumargh/pimaindiansdiabetescsv">pima indian diabetes dataset from Kaggle</a> for seeing both the implemenation of SMOTE and RandomUnderSampler (<strong> </strong>It involves sampling any random class with or without any replacement.)</p><h4>Imports</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e459c7eb244ebc8b146e283ef6aeb7a1/href">https://medium.com/media/e459c7eb244ebc8b146e283ef6aeb7a1/href</a></iframe><p><strong>Load and view Data</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a6b9bd491aeaad8de249c32ca0264d72/href">https://medium.com/media/a6b9bd491aeaad8de249c32ca0264d72/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/383/1*DwlNgm4ZjPPsewl1r6NqZQ.png" /></figure><p><strong>Splitting the Dataset and viewing the counts</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a6b9bd491aeaad8de249c32ca0264d72/href">https://medium.com/media/a6b9bd491aeaad8de249c32ca0264d72/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/319/1*0vuJwZ4blS5VpDsiQLNaFw.png" /></figure><p><strong>Building a normal Decision Tree Model and checking the Recall score</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c049d35a1895d96bb8e991aa58f4b6a6/href">https://medium.com/media/c049d35a1895d96bb8e991aa58f4b6a6/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/176/1*Bm9sCb7tPtraIg6lHWnq2Q.png" /></figure><p><strong>Oversampling train data using SMOTE</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/88ddada21d799907dda7a39e8bb98b41/href">https://medium.com/media/88ddada21d799907dda7a39e8bb98b41/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*qlyC437z45FTPX4QF-zQcg.png" /></figure><p><strong>Building a Decision Tree Model with Oversampled Data and checking the Recall score</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c049d35a1895d96bb8e991aa58f4b6a6/href">https://medium.com/media/c049d35a1895d96bb8e991aa58f4b6a6/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/167/1*_7hGjWy7CdEiWmShn_n99w.png" /></figure><h4>Undersampling train data using RandomUnderSampler</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2f2d08c5898a45abf28ff12ec4b3fe9e/href">https://medium.com/media/2f2d08c5898a45abf28ff12ec4b3fe9e/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/473/1*U9xUHwOOd8npBzR3xkLhig.png" /></figure><p><strong>Building a Decision Tree Model with Undersampled Data and checking the Recall score</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c049d35a1895d96bb8e991aa58f4b6a6/href">https://medium.com/media/c049d35a1895d96bb8e991aa58f4b6a6/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/183/1*eE-DpHLC1pdshy5YHezy7Q.png" /></figure><h4>Observations</h4><p>We can see a change in the recall score after oversampling and undersampling of the data.</p><p>The undersampled version gave the best Recall score when compared to the remaining two decision tree models.</p><p><strong>Further performance can be improved by using hyperparameter tuning.</strong></p><h3>Summary</h3><p>Thus we saw how Imbalanced data can be handled by oversampling and undersampling of datasets along with the implementations.</p><p>Thanks for your time.</p><h3>References:</h3><ul><li><a href="https://www.kdnuggets.com/2016/08/learning-from-imbalanced-classes.html/2">Learning from Imbalanced Classes - KDnuggets</a></li><li><a href="https://www.geeksforgeeks.org/imbalanced-learn-module-in-python/">Imbalanced-Learn module in Python - GeeksforGeeks</a></li></ul><p><a href="https://datascience.aero/predicting-improbable-part-1-imbalanced-data-problem/">https://datascience.aero/predicting-improbable-part-1-imbalanced-data-problem/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=247eaa6e0426" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Working of k-fold cross validation]]></title>
            <link>https://medium.com/@lakshmiprabharamesh1993/working-of-k-fold-cross-validation-c2174a14823e?source=rss-f1892731c71f------2</link>
            <guid isPermaLink="false">https://medium.com/p/c2174a14823e</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[lakshmi prabha ramesh]]></dc:creator>
            <pubDate>Thu, 28 Apr 2022 19:59:09 GMT</pubDate>
            <atom:updated>2022-04-28T20:35:07.137Z</atom:updated>
            <content:encoded><![CDATA[<h3>k-fold cross validation with Python code -Output with splits and coressponding performance</h3><h3><strong>Why do we need cross- validation</strong> ?</h3><p>Every Machine Learning Engineer’s goal is to achieve good performance measures during production phase by the model they build. Two main issues faced at this stage is Overfitting and underfitting.</p><h4><strong>Overfitting and Underfitting</strong></h4><p>A good model should make sure the data does not overfit or underfit. That is the model does not capture the noise along with the information(overfitting) or the model does not capture enough information (underfitting). In order to figure this out we divide the dataset in hand into 2 parts Training dataset and Testing dataset.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/0*MWTHU3LFsP8YcH0u" /><figcaption>Source:<a href="https://www.educative.io/edpresso/overfitting-and-underfitting">https://www.educative.io/edpresso/overfitting-and-underfitting</a></figcaption></figure><h4>Drawback of dividing dataset into 2 parts</h4><p>During the model building phase, the data is trained with the training dataset and tested in the testing dataset(the data which is new to the model). But as we model the data through various models and its hyperparameter tunings the test data becomes well known to the model since we keep using it every time for testing. Hence the model starts seeing it as a training dataset and it the fails to show us how the model generalizes on new data.</p><h4>Solution</h4><p>So, we next divide the data into 3 parts, training, validation and testing datasets. Here the validation dataset is used for all the evaluations of the hyperparameters. Now, in this case the test set is only finally used after all the evaluations. Once the right model is known, it is tested with the testing data. Thus this the testing data is completely unknown to the model.</p><h4>Drawback of dividing dataset into 3 parts</h4><p>When diving the data into 3 parts major patterns may be missed by the training dataset. And also the sample size of the training dataset will be drastically reduced.</p><h4>Solution -Cross Validation</h4><p>Here, in Cross Validation we do not divide dataset into 3 parts but only 2 parts training and testing. There is no validation dataset.</p><p>One such famous cross- validation is <strong>k-fold cross validation</strong></p><h3><strong>Steps involved in k- fold cross validation</strong></h3><p>● The data is divided into k-folds in cross-validation.</p><p>● Training= k-1 folds are used</p><p>● Testing = kth fold is used</p><p>● This process continues k times.</p><p>● For each fold performance score is calculated and thus we will have k scores</p><p>● The average of the scores of all the models is considered as the final model perormance.</p><p>● The standard deviation of the scores can be calculated. With this measure it is found with 95% confidence that the model’s performance will be within <strong>(avg -2*std. dev., avg + 2*std dev)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4Kx7gSi8lvab825d.png" /><figcaption>Source:<a href="http://ethen8181.github.io/machine-learning/model_selection/model_selection.html">http://ethen8181.github.io/machine-learning/model_selection/model_selection.html</a></figcaption></figure><h3>How to choose the value for k?</h3><p>● k must be an integer.</p><p>● k has a minimum value of 2 with two iterations.</p><p>● Maximum value of k is the number of records in the dataset.</p><p>● K can be any value between the min and max value of k.</p><p>● k = 10 is a standard usage.</p><p>● When k is too large it limits the model differences through the iterations.</p><p>● when we have s dataset size, and k = p, per fold records = s/p</p><h3><strong>Python Code to understand the working of the k-fold cross validation</strong></h3><p>We will be using the famous <a href="https://www.kaggle.com/datasets/kumargh/pimaindiansdiabetescsv">pima indians diabetics dataset in Kaggle </a>for demonstrating k-fold cross validation step by step.</p><h3>Imports</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e459c7eb244ebc8b146e283ef6aeb7a1/href">https://medium.com/media/e459c7eb244ebc8b146e283ef6aeb7a1/href</a></iframe><h3>Load view data</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a7064a44bb73636c0dfef43683363509/href">https://medium.com/media/a7064a44bb73636c0dfef43683363509/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/383/1*DwlNgm4ZjPPsewl1r6NqZQ.png" /></figure><h3>K-fold Implementation k=4</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a7064a44bb73636c0dfef43683363509/href">https://medium.com/media/a7064a44bb73636c0dfef43683363509/href</a></iframe><p>We set the performance metric to accuracy. We use LogisticRegression as our model here. For each split we calculate the score and append it in the list my_scores. Below is the clear output. The outout shos two important things</p><ol><li>Each split and its coressponding performace score</li><li>The mean value of all the scores</li></ol><p><strong>Output</strong></p><pre>Training data index:  [  1   2   4   5   6   7   9  10  11  12  14  15  17  18  20  21  22  24<br>  25  26  27  28  29  30  31  32  33  34  36  37  38  39  42  43  44  45<br>  46  48  49  51  52  53  54  55  58  62  63  64  67  70  71  72  73  75<br>  77  78  79  80  82  83  86  87  88  89  91  93  94  95  96  97  98  99<br> 100 102 103 105 106 107 109 110 112 113 115 116 118 119 121 122 123 124<br> 125 126 127 128 129 130 131 133 136 137 138 140 141 142 143 144 145 146<br> 147 149 150 151 152 153 155 156 157 158 160 162 163 164 165 166 167 168<br> 169 170 171 172 173 174 176 177 178 179 182 183 184 186 188 190 191 192<br> 193 196 197 198 199 200 203 204 205 206 208 209 210 211 212 213 214 215<br> 216 217 219 220 221 222 225 226 227 228 229 230 231 232 234 235 236 237<br> 239 240 241 242 243 244 246 248 249 250 251 252 253 254 256 257 258 259<br> 260 261 263 264 266 267 269 270 271 272 274 275 276 278 279 280 281 282<br> 283 284 287 288 289 290 291 292 293 294 295 296 297 300 301 302 303 304<br> 306 308 309 312 313 314 315 316 317 319 321 322 323 324 325 326 327 328<br> 330 332 333 336 337 338 340 342 343 344 345 346 347 348 351 353 356 357<br> 359 360 361 362 363 364 365 366 367 368 369 370 372 373 374 375 376 377<br> 379 380 381 383 384 386 387 388 390 391 393 395 396 397 398 401 402 405<br> 406 407 409 410 412 413 414 415 416 417 418 419 420 421 422 423 424 425<br> 427 429 431 432 433 434 435 438 439 440 441 443 444 446 447 450 451 453<br> 454 455 456 457 458 460 461 462 464 465 466 467 468 469 470 471 473 474<br> 475 476 477 478 479 481 482 484 485 486 487 488 489 490 491 492 494 495<br> 497 498 499 500 501 503 504 505 506 508 510 511 512 513 514 515 517 519<br> 520 522 523 524 525 526 528 529 531 532 534 536 537 542 543 544 545 547<br> 548 550 551 554 555 557 559 561 562 564 565 566 568 569 570 571 572 573<br> 574 575 576 578 579 580 582 583 584 585 586 587 588 589 592 593 594 595<br> 596 597 598 599 600 601 602 603 604 605 606 608 609 610 612 613 615 616<br> 617 618 619 621 622 623 624 625 626 627 630 632 633 634 636 639 642 644<br> 645 647 648 649 650 651 652 653 654 655 656 657 658 659 660 662 664 665<br> 666 668 671 672 673 675 676 677 678 681 685 686 687 688 690 691 692 694<br> 695 696 697 698 700 702 703 704 706 708 709 710 713 714 715 716 717 718<br> 719 720 721 723 724 725 727 728 729 730 731 732 734 735 736 737 738 739<br> 740 741 743 744 745 746 748 749 751 752 758 759 761 762 763 764 766 767] <br><br>Test data index:  [  0   3   8  13  16  19  23  35  40  41  47  50  56  57  59  60  61  65<br>  66  68  69  74  76  81  84  85  90  92 101 104 108 111 114 117 120 132<br> 134 135 139 148 154 159 161 175 180 181 185 187 189 194 195 201 202 207<br> 218 223 224 233 238 245 247 255 262 265 268 273 277 285 286 298 299 305<br> 307 310 311 318 320 329 331 334 335 339 341 349 350 352 354 355 358 371<br> 378 382 385 389 392 394 399 400 403 404 408 411 426 428 430 436 437 442<br> 445 448 449 452 459 463 472 480 483 493 496 502 507 509 516 518 521 527<br> 530 533 535 538 539 540 541 546 549 552 553 556 558 560 563 567 577 581<br> 590 591 607 611 614 620 628 629 631 635 637 638 640 641 643 646 661 663<br> 667 669 670 674 679 680 682 683 684 689 693 699 701 705 707 711 712 722<br> 726 733 742 747 750 753 754 755 756 757 760 765]</pre><pre>0.7760416666666666</pre><pre>Training data index:  [  0   1   2   3   6   7   8  10  12  13  15  16  18  19  20  21  22  23<br>  24  25  26  27  28  30  32  35  36  37  40  41  43  44  46  47  48  50<br>  51  53  55  56  57  58  59  60  61  63  64  65  66  68  69  70  71  72<br>  73  74  75  76  77  79  81  83  84  85  86  87  89  90  91  92  93  94<br>  96  98 100 101 104 105 106 108 109 111 112 113 114 115 117 120 122 123<br> 125 126 127 129 130 131 132 134 135 136 137 138 139 140 141 142 143 144<br> 145 148 149 150 151 152 154 155 158 159 161 163 164 166 167 168 169 170<br> 171 174 175 176 178 180 181 182 183 184 185 187 188 189 190 193 194 195<br> 196 198 199 201 202 203 204 206 207 208 209 210 211 212 213 215 217 218<br> 219 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 237 238<br> 239 240 243 244 245 246 247 249 251 252 253 254 255 256 258 262 263 264<br> 265 266 267 268 269 270 271 273 275 276 277 278 279 281 282 283 284 285<br> 286 287 288 290 291 292 294 295 296 297 298 299 300 302 303 305 307 308<br> 310 311 313 315 316 317 318 319 320 321 322 324 325 326 327 328 329 330<br> 331 332 334 335 336 337 338 339 340 341 342 344 348 349 350 351 352 354<br> 355 356 357 358 359 360 362 365 367 369 370 371 376 377 378 380 381 382<br> 383 384 385 387 389 390 391 392 393 394 395 397 398 399 400 401 403 404<br> 405 406 407 408 409 410 411 413 416 417 418 420 423 424 425 426 428 430<br> 431 435 436 437 438 440 441 442 444 445 448 449 450 451 452 453 454 455<br> 456 457 458 459 460 461 462 463 465 466 468 469 470 471 472 475 476 477<br> 478 479 480 483 484 485 488 489 490 492 493 494 496 497 499 500 502 503<br> 504 505 507 508 509 512 513 514 515 516 518 520 521 527 530 532 533 534<br> 535 536 537 538 539 540 541 542 544 545 546 547 548 549 552 553 555 556<br> 557 558 559 560 561 562 563 564 565 566 567 568 569 571 572 573 575 577<br> 579 580 581 582 583 584 586 588 590 591 592 594 595 596 597 606 607 608<br> 609 610 611 613 614 615 616 617 618 619 620 621 622 624 626 627 628 629<br> 630 631 632 633 635 636 637 638 639 640 641 643 644 645 646 647 648 651<br> 652 653 654 655 656 657 658 660 661 663 665 666 667 668 669 670 671 672<br> 673 674 675 676 677 678 679 680 681 682 683 684 686 687 688 689 690 692<br> 693 698 699 701 702 703 705 706 707 708 709 711 712 713 715 716 717 719<br> 721 722 724 726 727 728 733 734 735 737 739 740 741 742 743 744 746 747<br> 748 749 750 751 752 753 754 755 756 757 758 760 762 763 764 765 766 767] <br><br>Test data index:  [  4   5   9  11  14  17  29  31  33  34  38  39  42  45  49  52  54  62<br>  67  78  80  82  88  95  97  99 102 103 107 110 116 118 119 121 124 128<br> 133 146 147 153 156 157 160 162 165 172 173 177 179 186 191 192 197 200<br> 205 214 216 220 236 241 242 248 250 257 259 260 261 272 274 280 289 293<br> 301 304 306 309 312 314 323 333 343 345 346 347 353 361 363 364 366 368<br> 372 373 374 375 379 386 388 396 402 412 414 415 419 421 422 427 429 432<br> 433 434 439 443 446 447 464 467 473 474 481 482 486 487 491 495 498 501<br> 506 510 511 517 519 522 523 524 525 526 528 529 531 543 550 551 554 570<br> 574 576 578 585 587 589 593 598 599 600 601 602 603 604 605 612 623 625<br> 634 642 649 650 659 662 664 685 691 694 695 696 697 700 704 710 714 718<br> 720 723 725 729 730 731 732 736 738 745 759 761]</pre><pre>0.7864583333333334</pre><pre>Training data index:  [  0   3   4   5   7   8   9  10  11  13  14  15  16  17  19  20  21  22<br>  23  25  26  28  29  31  33  34  35  37  38  39  40  41  42  43  45  47<br>  48  49  50  52  54  55  56  57  59  60  61  62  63  64  65  66  67  68<br>  69  71  72  74  75  76  77  78  80  81  82  84  85  86  87  88  90  92<br>  95  96  97  99 101 102 103 104 107 108 110 111 114 116 117 118 119 120<br> 121 124 126 128 129 130 132 133 134 135 136 137 139 140 141 144 146 147<br> 148 149 151 152 153 154 155 156 157 159 160 161 162 165 166 170 172 173<br> 175 176 177 178 179 180 181 183 185 186 187 189 190 191 192 193 194 195<br> 196 197 198 199 200 201 202 205 207 209 210 212 214 215 216 218 219 220<br> 222 223 224 231 233 234 235 236 238 241 242 243 245 247 248 250 252 253<br> 254 255 257 259 260 261 262 263 264 265 266 268 269 272 273 274 276 277<br> 278 279 280 281 282 285 286 287 288 289 293 296 297 298 299 301 302 303<br> 304 305 306 307 309 310 311 312 313 314 316 317 318 319 320 321 322 323<br> 325 327 329 330 331 332 333 334 335 336 338 339 341 343 345 346 347 348<br> 349 350 352 353 354 355 356 357 358 361 363 364 366 367 368 369 371 372<br> 373 374 375 378 379 381 382 384 385 386 387 388 389 390 392 393 394 396<br> 398 399 400 401 402 403 404 405 408 411 412 413 414 415 416 418 419 420<br> 421 422 424 426 427 428 429 430 431 432 433 434 436 437 439 442 443 445<br> 446 447 448 449 450 451 452 454 456 459 461 462 463 464 466 467 468 469<br> 470 471 472 473 474 476 477 478 480 481 482 483 485 486 487 489 490 491<br> 492 493 495 496 497 498 501 502 503 505 506 507 508 509 510 511 513 514<br> 515 516 517 518 519 521 522 523 524 525 526 527 528 529 530 531 532 533<br> 534 535 536 538 539 540 541 542 543 545 546 547 548 549 550 551 552 553<br> 554 556 557 558 560 561 562 563 564 566 567 568 569 570 572 574 576 577<br> 578 580 581 583 585 586 587 588 589 590 591 593 595 597 598 599 600 601<br> 602 603 604 605 606 607 609 611 612 614 615 616 620 621 623 624 625 626<br> 627 628 629 630 631 633 634 635 637 638 640 641 642 643 645 646 647 648<br> 649 650 653 654 655 656 658 659 661 662 663 664 665 667 668 669 670 674<br> 676 677 678 679 680 681 682 683 684 685 688 689 690 691 693 694 695 696<br> 697 698 699 700 701 704 705 706 707 709 710 711 712 714 715 716 717 718<br> 719 720 721 722 723 724 725 726 728 729 730 731 732 733 735 736 738 740<br> 742 745 747 748 749 750 751 753 754 755 756 757 758 759 760 761 764 765] <br><br>Test data index:  [  1   2   6  12  18  24  27  30  32  36  44  46  51  53  58  70  73  79<br>  83  89  91  93  94  98 100 105 106 109 112 113 115 122 123 125 127 131<br> 138 142 143 145 150 158 163 164 167 168 169 171 174 182 184 188 203 204<br> 206 208 211 213 217 221 225 226 227 228 229 230 232 237 239 240 244 246<br> 249 251 256 258 267 270 271 275 283 284 290 291 292 294 295 300 308 315<br> 324 326 328 337 340 342 344 351 359 360 362 365 370 376 377 380 383 391<br> 395 397 406 407 409 410 417 423 425 435 438 440 441 444 453 455 457 458<br> 460 465 475 479 484 488 494 499 500 504 512 520 537 544 555 559 565 571<br> 573 575 579 582 584 592 594 596 608 610 613 617 618 619 622 632 636 639<br> 644 651 652 657 660 666 671 672 673 675 686 687 692 702 703 708 713 727<br> 734 737 739 741 743 744 746 752 762 763 766 767]</pre><pre>0.7864583333333334</pre><pre>Training data index:  [  0   1   2   3   4   5   6   8   9  11  12  13  14  16  17  18  19  23<br>  24  27  29  30  31  32  33  34  35  36  38  39  40  41  42  44  45  46<br>  47  49  50  51  52  53  54  56  57  58  59  60  61  62  65  66  67  68<br>  69  70  73  74  76  78  79  80  81  82  83  84  85  88  89  90  91  92<br>  93  94  95  97  98  99 100 101 102 103 104 105 106 107 108 109 110 111<br> 112 113 114 115 116 117 118 119 120 121 122 123 124 125 127 128 131 132<br> 133 134 135 138 139 142 143 145 146 147 148 150 153 154 156 157 158 159<br> 160 161 162 163 164 165 167 168 169 171 172 173 174 175 177 179 180 181<br> 182 184 185 186 187 188 189 191 192 194 195 197 200 201 202 203 204 205<br> 206 207 208 211 213 214 216 217 218 220 221 223 224 225 226 227 228 229<br> 230 232 233 236 237 238 239 240 241 242 244 245 246 247 248 249 250 251<br> 255 256 257 258 259 260 261 262 265 267 268 270 271 272 273 274 275 277<br> 280 283 284 285 286 289 290 291 292 293 294 295 298 299 300 301 304 305<br> 306 307 308 309 310 311 312 314 315 318 320 323 324 326 328 329 331 333<br> 334 335 337 339 340 341 342 343 344 345 346 347 349 350 351 352 353 354<br> 355 358 359 360 361 362 363 364 365 366 368 370 371 372 373 374 375 376<br> 377 378 379 380 382 383 385 386 388 389 391 392 394 395 396 397 399 400<br> 402 403 404 406 407 408 409 410 411 412 414 415 417 419 421 422 423 425<br> 426 427 428 429 430 432 433 434 435 436 437 438 439 440 441 442 443 444<br> 445 446 447 448 449 452 453 455 457 458 459 460 463 464 465 467 472 473<br> 474 475 479 480 481 482 483 484 486 487 488 491 493 494 495 496 498 499<br> 500 501 502 504 506 507 509 510 511 512 516 517 518 519 520 521 522 523<br> 524 525 526 527 528 529 530 531 533 535 537 538 539 540 541 543 544 546<br> 549 550 551 552 553 554 555 556 558 559 560 563 565 567 570 571 573 574<br> 575 576 577 578 579 581 582 584 585 587 589 590 591 592 593 594 596 598<br> 599 600 601 602 603 604 605 607 608 610 611 612 613 614 617 618 619 620<br> 622 623 625 628 629 631 632 634 635 636 637 638 639 640 641 642 643 644<br> 646 649 650 651 652 657 659 660 661 662 663 664 666 667 669 670 671 672<br> 673 674 675 679 680 682 683 684 685 686 687 689 691 692 693 694 695 696<br> 697 699 700 701 702 703 704 705 707 708 710 711 712 713 714 718 720 722<br> 723 725 726 727 729 730 731 732 733 734 736 737 738 739 741 742 743 744<br> 745 746 747 750 752 753 754 755 756 757 759 760 761 762 763 765 766 767] <br><br>Test data index:  [  7  10  15  20  21  22  25  26  28  37  43  48  55  63  64  71  72  75<br>  77  86  87  96 126 129 130 136 137 140 141 144 149 151 152 155 166 170<br> 176 178 183 190 193 196 198 199 209 210 212 215 219 222 231 234 235 243<br> 252 253 254 263 264 266 269 276 278 279 281 282 287 288 296 297 302 303<br> 313 316 317 319 321 322 325 327 330 332 336 338 348 356 357 367 369 381<br> 384 387 390 393 398 401 405 413 416 418 420 424 431 450 451 454 456 461<br> 462 466 468 469 470 471 476 477 478 485 489 490 492 497 503 505 508 513<br> 514 515 532 534 536 542 545 547 548 557 561 562 564 566 568 569 572 580<br> 583 586 588 595 597 606 609 615 616 621 624 626 627 630 633 645 647 648<br> 653 654 655 656 658 665 668 676 677 678 681 688 690 698 706 709 715 716<br> 717 719 721 724 728 735 740 748 749 751 758 764]</pre><pre>0.7552083333333334</pre><pre><br>The mean value is<br>0.7760416666666667</pre><h4>Usage of cross_val_scores</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5236ba58915fa36a263b116658d05aea/href">https://medium.com/media/5236ba58915fa36a263b116658d05aea/href</a></iframe><p>Here the above code is used to output the cross validation scores in an array.We can apply it on the same data with k-fold split to get the scores.</p><p><strong>Output</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/413/1*gAfIQwh-xxJWgVrZfXMIew.png" /></figure><h4>Usage of cross_val_predict</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5236ba58915fa36a263b116658d05aea/href">https://medium.com/media/5236ba58915fa36a263b116658d05aea/href</a></iframe><p>Here the above code is used to output the cross validation prediction in an array.We can apply it on the same data with k-fold split to get the predictions.</p><p><strong>Output</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*SyS1J3FNW372W8Cg8pSUlw.png" /></figure><h3>Summary</h3><p>Hence we saw a detailed explanation of the usage of k-fold cross validation method and its implementation.</p><p>Thank you for your time.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c2174a14823e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data Visualization for Numerical Univariate Analysis.Code for Box and Hist Plot with shared x-axis!]]></title>
            <link>https://medium.com/@lakshmiprabharamesh1993/data-visualization-for-numerical-univariate-analysis-code-for-box-and-hist-plot-with-shared-x-axis-f389c943dc78?source=rss-f1892731c71f------2</link>
            <guid isPermaLink="false">https://medium.com/p/f389c943dc78</guid>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[lakshmi prabha ramesh]]></dc:creator>
            <pubDate>Wed, 09 Mar 2022 04:00:32 GMT</pubDate>
            <atom:updated>2022-03-09T04:00:32.007Z</atom:updated>
            <content:encoded><![CDATA[<h3>Univariate Analysis- Numerical Variables</h3><p>Generally it is easy to understand numerical variables with box plots and histograms because it gives understanding of the outliers and the distribution of the variable respectively.</p><h3>Function for Box Plot and Histogram with shared x-axis</h3><p>This visualization also shows the mean and median.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4b28a67e5635edbd389fa01a7e0b3885/href">https://medium.com/media/4b28a67e5635edbd389fa01a7e0b3885/href</a></iframe><h3>Example 1</h3><p>Here we are using the prediction of <a href="https://www.kaggle.com/avikasliwal/used-cars-price-prediction">prices of used cars dataset from Kaggle</a>.</p><p>We are only analysing the Price column from our dataset.</p><p><strong>About Price Feature</strong></p><p>The Price column is int64 type. The description is, it is the price of the used cars which is the target variable as well.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5bed9262a7a9bf60b7017953ec2afdc4/href">https://medium.com/media/5bed9262a7a9bf60b7017953ec2afdc4/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*Pmfbf8T4fEX65tQpfxJXUA.png" /></figure><p><strong>Observations</strong></p><ol><li>The Price is heavly right skewed with a mean 9.47. With this we can decide whether to apply log transformation with Price or not.</li><li>The box plot shows many outliers. On further analysis we can decide whether to remove them or not.</li></ol><h3>Example 2</h3><p>We are only analysing the Mileage column from our dataset.</p><p><strong>About Mileage Feature</strong></p><p>The Mileage column is float64 type. The description is, it gives the mileage of the the used car.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1400e15427b025311636b7094d0fa9cb/href">https://medium.com/media/1400e15427b025311636b7094d0fa9cb/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/728/1*rdfl1eTtcTa5DLOssv6Gag.png" /></figure><ol><li>This is an unskewed data distribution almost normal and having a mean of 18.</li><li>For Mileage Column it is better to know the values as how many standard deviations from the mean the Mileage of the used car is. This would be done via a z-transformation.</li><li>The standard scaler assumes features are normally distributed and will scale them to have a mean 0 and standard deviation of 1.</li><li>The outliers can be seen through the box plot.</li></ol><p>Thus it is easy to understand the numerical in the univariate analysis easily.</p><p><strong>Pros of using this visualization</strong></p><ol><li>Easy Outlier detection</li><li>Mean, median analysis</li><li>Faster decision making based on Distribution of the variable</li></ol><p>Thanks for your time!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f389c943dc78" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data Visualization for Categorical Univariate Analysis.Code]]></title>
            <link>https://medium.com/@lakshmiprabharamesh1993/data-visualization-for-categorical-univariate-analysis-code-3b81ac99a969?source=rss-f1892731c71f------2</link>
            <guid isPermaLink="false">https://medium.com/p/3b81ac99a969</guid>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[lakshmi prabha ramesh]]></dc:creator>
            <pubDate>Wed, 09 Mar 2022 03:24:02 GMT</pubDate>
            <atom:updated>2022-03-09T03:28:59.960Z</atom:updated>
            <content:encoded><![CDATA[<h3>Data Visualization for Categorical Univariate Analysis.Code for Bar Chart with percenatge on top of each bar</h3><h3>Univariate Analysis- Categorical Variables</h3><p>Generally it is easy to understand categorical variables with percentage for each because it gives a wider perspective of each category.</p><h4>Function for Bar chart with percentage at the top of each bar</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ea681c01a92b7bb73a053582b83af73b/href">https://medium.com/media/ea681c01a92b7bb73a053582b83af73b/href</a></iframe><h3>Usage Example</h3><p>Here we are using the prediction of <a href="https://www.kaggle.com/avikasliwal/used-cars-price-prediction">prices of used cars dataset from Kaggle</a>.</p><p>We are only analysing the Location column from our dataset.</p><p><strong>About Location Feature</strong></p><p>The Location column is categorical type. The description is, it is the Location where the used car is either sold or available for purchase.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d743c56e75f6a277fb0290b7fb7bdd96/href">https://medium.com/media/d743c56e75f6a277fb0290b7fb7bdd96/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/726/1*HQ0OXeH3Tsfj7yNSgJJ8IQ.png" /></figure><p><strong>Observations from the above chart</strong></p><ol><li>13% of used cars are sold/available in Mumbai and 12.3% of used cars are sold in Hyderabad which are the cities where most number of cars are sold or available for purchase.</li><li>Ahmedabad is the city with only 3.7% of used cars which are available or are being sold which is the least.</li></ol><p>3. Mumbai, Hyderabad, Kochi, Coimbatore and Pune together account to <strong>57%</strong> of used cars which are sold or available.</p><p>Hence as we can see it is very easy to analyse the categorical variables.</p><p>Each categorical varibale in the dataset can be visualised this way for better understanding of the univariate categorical variable.</p><p><strong>Pros</strong></p><ul><li>Its is easy to interpret</li><li>It is time saving</li><li>Great insights can be initially noted</li></ul><p>Thanks for your time!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3b81ac99a969" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Evaluate your Regression model like a Pro!]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@lakshmiprabharamesh1993/evaluate-your-regression-model-like-a-pro-8f4a71702ab4?source=rss-f1892731c71f------2"><img src="https://cdn-images-1.medium.com/max/600/1*ABLjvXkHqg1CmIY1BfDEtA.png" width="600"></a></p><p class="medium-feed-snippet">In order to understand how your Regression model performs we evaluate the model on both the training and test data. Evaluate here means&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@lakshmiprabharamesh1993/evaluate-your-regression-model-like-a-pro-8f4a71702ab4?source=rss-f1892731c71f------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@lakshmiprabharamesh1993/evaluate-your-regression-model-like-a-pro-8f4a71702ab4?source=rss-f1892731c71f------2</link>
            <guid isPermaLink="false">https://medium.com/p/8f4a71702ab4</guid>
            <category><![CDATA[linear-regression]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[metrics]]></category>
            <dc:creator><![CDATA[lakshmi prabha ramesh]]></dc:creator>
            <pubDate>Wed, 23 Feb 2022 02:57:45 GMT</pubDate>
            <atom:updated>2022-02-23T02:57:45.014Z</atom:updated>
        </item>
    </channel>
</rss>