<?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 Radha Jayaraman on Medium]]></title>
        <description><![CDATA[Stories by Radha Jayaraman on Medium]]></description>
        <link>https://medium.com/@radhajayaraman11?source=rss-55363b214396------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*rgetXYixtM-W6l8ZLntJQg.jpeg</url>
            <title>Stories by Radha Jayaraman on Medium</title>
            <link>https://medium.com/@radhajayaraman11?source=rss-55363b214396------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 10:06:40 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@radhajayaraman11/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[Feature Selection using Genetic Algorithm in Python]]></title>
            <link>https://radhajayaraman11.medium.com/feature-selection-using-genetic-algorithm-2f915d1349b0?source=rss-55363b214396------2</link>
            <guid isPermaLink="false">https://medium.com/p/2f915d1349b0</guid>
            <category><![CDATA[optimisation]]></category>
            <category><![CDATA[genetic-algorithm]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[feature-selection]]></category>
            <category><![CDATA[algorithms]]></category>
            <dc:creator><![CDATA[Radha Jayaraman]]></dc:creator>
            <pubDate>Wed, 24 Feb 2021 17:14:37 GMT</pubDate>
            <atom:updated>2021-02-24T20:03:27.413Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gwh4ElgPDfTIF0AfGxrdxQ.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@franki?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Franki Chamaki</a> on <a href="https://unsplash.com/s/photos/data-science?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>Over the years, the use of Machine Learning in real life has increased manifold. Be it the diagnosis of cancerous cells or the prediction of stock market prices, machine learning models are being utilized extensively. With the sudden spurt of machine learning, our focus has turned to methods that improve and optimize its performance.</p><p>Feature selection is one such method.</p><p>In feature selection, we find the optimal feature subset that contributes most to our predicted variable. The computational ability of machine learning models depends a lot on the feature set. Retaining the significant features vastly improves the learning time, and also improves accuracy.</p><h4><strong>Why do we need feature selection?</strong></h4><ol><li>Improve generalization of models by reducing overfitting of data.</li><li>Remove unnecessary/redundant data.</li><li>Curtail the Curse Of Dimensionality</li><li>Optimize training time</li></ol><p>The dataset used is <a href="https://archive.ics.uci.edu/ml/datasets/Breast+Cancer+Wisconsin+%28Diagnostic%29">Breast Cancer Wisconsin(Diagnostic)</a> which consists of 30 real-valued features.</p><h3>Genetic Algorithm</h3><p>Genetic algorithm is a search and optimization algorithm based on the principle of natural evolution. The algorithm tries to ‘mimic’ the concept of human evolution by modifying a set of individuals called a population, followed by a random selection of parents from this population to carry out reproduction in the form of mutation and crossover. This process continues till the stopping criterion is met. In the end, it gives the best individual/solution.</p><h4><strong>Underlying Idea</strong></h4><p>This algorithm is based on the fact that ‘good’ parents produce ‘good’ offspring, which causes the algorithm to converge to an optimal value. Since it is a derivative-free method and has a purely random approach, we can expect it to converge to a global optimum over time.</p><h4>Steps involved in Genetic Algorithm</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*UMoZamZA0PZhojPwPTgx3Q.jpeg" /><figcaption>Figure 1: Steps involved in Genetic Algorithm</figcaption></figure><h4><strong>INITIALIZATION OF POPULATION</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*844BuJebvRKYqgZ9Nn5lIA.png" /><figcaption>Figure 2: Representation of population, chromosome, and gene</figcaption></figure><p>Population is the group of individuals that form a generation. It is a subset of possible solutions that undergoes reproduction. A chromosome represents an individual in a population. In computational terms, the chromosome is represented by a binary string. For feature selection, the chromosome&#39;s length is taken as the number of features in the dataset. 0/1 indicates the presence/absence of the ith feature in the solution.</p><p>A large population size would cause the algorithm to slow down, while a small population will not show diversity. So it is important to choose population size wisely. Here I have used a population size of 40 (~1.5x(number of features in the dataset)).</p><p>Here, we are initializing our population to find the top N features.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c6a88b490465e4eff7507b859ef29378/href">https://medium.com/media/c6a88b490465e4eff7507b859ef29378/href</a></iframe><h4><strong>CALCULATION OF FITNESS VALUES</strong></h4><p>Fitness function evaluates how ‘fit’ an individual is. The term ‘fit’ indicates how close the individual’s solution is to the optimal solution. An individual with a high fitness value is considered better and poses an increased chance of being selected for reproduction.</p><p>Usually, the fitness function is the same as the optimization function. For, eg., in a maximization problem, the fitness function will be the function that is to be maximized. Targetting an improved model performance, I used the cross-validation f1 score from <a href="https://scikit-learn.org/stable/modules/generated/sklearn.neural_network.MLPClassifier.html">MLPClassifier()</a> trained on the individual’s solution as the fitness value.</p><p>F1 score is used as the accuracy metric because:</p><ol><li>The dataset is quite imbalanced, and using accuracy_score could indicate a slight bias towards the majority class.</li><li>A high f1 score indicates a better classification, i.e. a better model performance.</li></ol><p>Here, get_fitness() finds the population&#39;s fitness values by decoding each chromosome into a feature subset, and calculate_fitness() finds the corresponding f1 score.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bc5e2418974e8bba471d90cf73f69cfd/href">https://medium.com/media/bc5e2418974e8bba471d90cf73f69cfd/href</a></iframe><h4>SELECTION OF PARENTS FOR REPRODUCTION</h4><p>Parent selection, which is one of the most crucial steps, is choosing individuals(<strong>parents</strong>) from the population for reproduction, to produce the next generation.</p><p><strong>Fitness Proportionate Parent Selection </strong>is the widely accepted criteria for parent selection. It ensures that all individuals get a chance to be selected as a parent with a probability proportionate to their fitness value. In this way, the underlying idea behind genetic algorithm would be justified.</p><p>There are various methods for parent selection like <em>Tournament Selection</em>, <em>Roulette Wheel Selection</em>, <em>Stochastic Universal Sampling</em>, <em>Rank Selection</em>, <em>Random Selection, </em>etc. I have used <strong><em>Roulette Wheel Selection</em></strong> here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8ljpfVMtiGQ1vPYRhBrZfA.png" /><figcaption>Figure 3: Roulette Wheel Selection</figcaption></figure><p>In <strong><em>Roulette Wheel Selection</em></strong>, a fixed point is chosen on the pie chart prepared using the fitness values. On every rotation, whichever individual comes in front of the point is selected for reproduction. This means that an individual with a greater area on the pie chart (i.e. <strong>a greater fitness value</strong> ) has a high probability of being selected.</p><p><strong>Implementation:</strong></p><ol><li>Find the sum of all fitness values in a population(S)</li><li>Find normalized fitness values (=fitness value/S)</li><li>Find cumulative fitness values ( See Figure 3)</li><li>Generate a random number p between [0,1]</li><li>The individual for which p is just smaller than the cumulative sum is selected. <strong><em>Eg</em></strong>. In Figure 3, consider the Normalised Fitness Values column. If p&lt;0.232, Individual 1 is selected; if 0.232&lt;p&lt;0.426, Individual 2 is selected, and so on.</li></ol><p>Shown below is the implementation of Roulette Wheel Selection.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/16d97b1946cb7c43cc3fe6b2c59fed7a/href">https://medium.com/media/16d97b1946cb7c43cc3fe6b2c59fed7a/href</a></iframe><h4>REPRODUCTION: CROSSOVER AND MUTATION</h4><p>Reproduction involves forming a new generation by the mating of parents. Mating is implemented through the process of <strong>crossover. Mutation </strong>is used to add slight randomness to the individual to introduce diversity in the population.</p><h4>Crossover</h4><p>Various crossover operations like <em>One Point Crossover</em>, <em>Two Point Crossover</em>, <em>Uniform Crossover</em> are used. Here I have used <strong><em>Two Point Crossover</em></strong> technique which involves swapping genetic material between two points randomly chosen on the parents.</p><p>Usually, a probability is assigned to this process, indicating the chance of crossover for a given pair. Crossover is a high probability event and is assigned an optimum probability between 0.65–0.80. Here, I have used a probability of 0.78.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*VtXos8AIj0igv3x1TaqvKA.png" /><figcaption>Figure 4: Two Point Crossover</figcaption></figure><h4>Mutation</h4><p>Mutation is used to introduce a slight variation in the chromosome by tweaking one of its genes. Its probability is kept very low to preserve the integrity of the population.</p><p>In general, mutation is done by randomly swapping any bit of a random individual in the population. Following the conventional mutation process, it was observed that after many generations, the number of features extracted deviated a lot from N. To reduce deviation, I swapped a ‘0’ bit with ‘1’ bit. In this way, the deviation was reduced by a good extent.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c010f2d4d101d0768639806abb32f6d9/href">https://medium.com/media/c010f2d4d101d0768639806abb32f6d9/href</a></iframe><h4>STOPPING CRITERIA</h4><p>After reproduction, a new generation is formed, and then the stopping criterion is checked. If the condition is satisfied, the algorithm terminates; otherwise, the process is repeated with the mutated population as the original population.</p><p>A few of the stopping criteria are listed below.</p><ol><li><strong><em>Fixing the number of generations:</em></strong> This is not a very good method as we may miss out on the best generation because of an upper limit on the number of generations.</li><li><strong><em>Lack of progress in the fitness of the best individual of the population:</em></strong> Lack of progress does not necessarily imply convergence as evolution proceeds with punctuated equilibria that can later lead to improvement.</li><li><strong><em>Keeping an upper limit on the variance of fitness values in a population: </em></strong>When individuals are so similar to each other that we may not get a better individual in future generations, the algorithm would indicate convergence.</li></ol><p>Here I have used the <strong>third</strong> stopping criteria.</p><h3>Conclusion and final remarks</h3><p>On running the algorithm multiple times for the same N, it was observed that it gave different N features every time. The future scope majorly lies in deducing Genetic Algorithm&#39;s certainty in deciding the optimal feature subset that would require multiple iterations for each value of N and varying the variance for the stopping criteria. The initial features can be considered suggestive. With adequate knowledge about features, Genetic Algorithm could prove to be a great start in obtaining optimal feature subsets.</p><p><strong><em>You can find the whole source code </em></strong><a href="https://github.com/jradha11/genetic_algorithm"><strong><em>here</em></strong></a><strong><em>. Feel free to go through it and suggest any improvements or optimization.</em></strong></p><p>Cheers!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2f915d1349b0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Canteen Hub]]></title>
            <link>https://radhajayaraman11.medium.com/canteen-hub-37cde226fa18?source=rss-55363b214396------2</link>
            <guid isPermaLink="false">https://medium.com/p/37cde226fa18</guid>
            <category><![CDATA[design]]></category>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[case-study]]></category>
            <category><![CDATA[food-delivery]]></category>
            <dc:creator><![CDATA[Radha Jayaraman]]></dc:creator>
            <pubDate>Wed, 08 Apr 2020 08:31:51 GMT</pubDate>
            <atom:updated>2020-04-08T08:31:51.922Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cz9VD1OWIlGDiiXCkMxDag.png" /><figcaption>Canteen Hub</figcaption></figure><p>A Design Sprint at Design Studio, IIT-Roorkee proved to be quite a great exposure for me in the field of UI/UX Designing. As my first task as a fresher, I had to pick a topic from a lot with a motive to dig deeper into the matter and propose a concept app that could help to solve the problem.</p><p>My topic was CANTEEN ORDER.</p><p><strong>My Perception of the topic</strong></p><p>A few of the questions that popped up at very first were — How to place canteen order? Can there be an alternative to the conventional method of food delivery system prevalent? ..etc.</p><p>I perceived the topic as-<em>There is a group of canteens(food outlets) in an area and I need to find some way to integrate all of them in order to help the people around. </em>We can see this is almost similar to the idea of creating a mini swiggy/zomato kind of system covering a smaller area and serving fewer people.</p><p><strong>Why choose this topic?</strong></p><p>This topic immediately caught my attention because of the fact that my campus is a hub of canteens, and till now there is no platform that links all of them. Through this project, I wanted to find a reasonable and technically feasible solution for any consideration in the future.</p><p>I followed this procedure in completing my task</p><ol><li><strong>Understanding</strong> the problem</li><li><strong>Ideation </strong>of possible solution</li><li>Creating <strong>Wireframes</strong></li><li>Building <strong>User Interface</strong></li></ol><h3>UNDERSTANDING THE PROBLEM</h3><p>To begin with, I looked upon the functioning and lifestyle of my campus.</p><h4><strong>BRIEF INTRODUCTION ABOUT MY CAMPUS AND IT’S LIFESTYLE</strong></h4><p>IIT-Roorkee with a total of 11 hostels(including 2 girls hostel) where each has a canteen that operates from 2 PM -2 AM and a night canteen that is open from 2 AM- 2 PM. The official body that governs this area decides the canteen rates. Girls are allowed to visit the boy’s canteen till 12 AM whereas boys aren’t allowed to visit the girl’s hostel without the company of a girl. Our working hours are from 8 AM-6 PM. Life here is about working with people day and night for a lot of activities happening around. Studies have shown that food has a direct impact on our cognitive performance and an empty stomach could derail us from our possible work efficiency and hence when a lot of students gather for work, there is always a bulk requirement of food which is ordered from the nearby canteens.</p><h4><strong>USER RESEARCH</strong></h4><p>The problem consists of two kinds of users</p><ol><li>Students: who will be using the product</li><li>Canteen People: who will be providing the service</li></ol><p>I decided to make the user research <strong>Student-centric</strong> keeping in mind that a better experience for the Students is not at the cost of poor experience for the canteen people.</p><p>I went up to a few students and my colleagues to know their opinion on the current canteen ordering system which gave me an insight into the problems faced. This helped me to cluster out problems that could be solved to an extent.</p><blockquote>Talking to users help in exploring their emotions, understand their goals, and assess needs. The goal of user interaction is to gain empathy for the user’s experience.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vZhkSa1J-2s-7WJEeCxpEA.png" /><figcaption>Broad Classification of pain points of user</figcaption></figure><h3>IDEATION</h3><p>This phase involved</p><ul><li>Defining our goals by evaluation of understanding phase.</li><li>Building a possible solution</li></ul><h4>GOAL</h4><p>Think about someway in which we could help ease out problems of the user.</p><h4><strong>A POSSIBLE SOLUTION</strong></h4><p>Linking all the canteens through a single platform, i.e., <strong>App</strong> can be considered. Using an App can improve the level of accessibility that the users have with the canteens and also enhance their existing business.</p><p><strong>What can be the features of the App?</strong></p><ol><li>The Login system for the App is linked to the student portal(Channel-i).</li><li>Provides a list of all canteens and their menus present in the campus</li><li>Menu of each canteen has <strong>YOUR FAVOURITE</strong> tab that allows the user to add his/her favorite items of the canteen. Also, <strong>MUST TRY</strong> items section in the main menu shows a list of favorite items based on the ‘YOUR FAVORITE’ section of other users for this canteen.</li><li>A <strong>CONTACT</strong> section having phone numbers of all the canteen owners to make contacting easier in case of any discrepancy or inquiry.</li><li>A <strong>PREVIOUS ORDER</strong> section that shows all the previous orders and makes re-ordering easier.</li><li><strong>Delivery Modes</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s2M8163Uca3PNhvUR_fd2g.png" /><figcaption>The canteens will support these delivery modes</figcaption></figure><p>To control the frequency of orders keeping in mind the salary that is given to the canteen people, I came up with the solution of implementing a concept of <strong>minimum order</strong> for selected modes.</p><ol><li><strong>Room delivery &amp; Deliver to my location:</strong> For these modes, we can have two kinds of minimum order.</li></ol><p>(a) Minimum order eligible for delivery</p><p>(b) Minimum order that allows free delivery.</p><p>These prices will be unanimously decided by the official body that is related to the canteen affairs and students’ welfare. Since room delivery is within the hostel, the minimum order will not be very pricey in that case. For prices lying in the range of (a) to (b), a delivery charge of 20% could be added or the equivalent which is calculated according to profits.</p><p>2.<strong> Takeaway/dine-in:</strong> For this, there will be a constraint of online payment, to ensure the fact that cooked food isn’t wasted after ordering.</p><h4>#Point to be noted:</h4><p>For a campus that is home to 4000+ students and has 11 hostels, managing delivery service 24/7 with a few manual help is a tedious and tough task on its own. Based on factors like</p><ol><li>Number of people available at the canteen for delivery</li><li>Profit incurred in providing the service</li><li>Usability of the service,</li></ol><p>Some canteens might prefer to not provide all types of delivery. In such cases, the information will be updated in the app itself and hence the flow of the app will vary.</p><h4><strong>GOLDEN PATH</strong></h4><p>Every application has multiple user paths through it and all these paths are valid. The Golden Path is the most important set of steps that a user takes to find a product’s real value and doesn’t focus on errors or secondary experiences represented by red lines. In our case, the secondary experience would be- editing the order etc.</p><blockquote>Golden Path should be made easy and effortless so that user experience is made better as it enables users to find real product value.</blockquote><p>Every App should have one golden path that should be followed. Here, as we are considering two scenarios-Ideal and Practical:</p><ol><li><strong>IDEAL SCENARIO: </strong>Where all the canteens provide all kinds of delivery services</li><li><strong>PRACTICAL SCENARIO: </strong>Where some canteens don’t provide some of the delivery services</li></ol><p>and so, the path followed will be different in the two cases.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L20TaNH4YG4y0qBy_SSvdg.png" /><figcaption>Golden Path for IDEAL scenario</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Glq3uRJlp8xacjP7aRPaEw.png" /><figcaption>Golden Path for PRACTICAL scenario</figcaption></figure><p>For the Golden Path for Practical Scenario, the user will be asked to choose the type of delivery mode before choosing the canteen so that a segregated list of canteens is shown. The possibility in each case is shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QFh_KcpOqdKE4NKQ3x7vhg.png" /></figure><h3>CREATING WIREFRAMES</h3><p>Wireframes give us the first visual of our solution and help us in identifying the best way to arrange elements to achieve our purpose.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vp0rnXoMvz_Vi_g2HioMrw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fCC5tHP99em-QWN9UJUzOA.jpeg" /></figure><h3>USER INTERFACE</h3><p>User Interface plays a very crucial role in portraying one’s identity. It should be such our goal is achieved with pleasing visuals.</p><h4><strong>UI Style</strong></h4><p>Experts say that the human eye prefers rounded corners over sharp ones as it takes less cognitive load to process and hence I decided to maximize the use of rounded corners.</p><p>According to color psychology, colors like red, yellow and orange invoke hunger and so I decided to go with something in between.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z3TjC7As4BgcI1-wkHw_jQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Nv8fzg8LHDQfBzbEGc7x7A.png" /><figcaption>App Name and Logo</figcaption></figure><h4>SCREENS</h4><p>Following google material design guidelines and using google material design icons, I made the UI using Figma.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jeCmSRSek-xqrhufbMpixw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7S6tfzZNW4JTRflS54kjqw.png" /></figure><h3>CONCLUSION</h3><p>As my first hands-on experience in the field of UI/UX designing, I tried my level best to justify the topic in the way I perceived it. It was a pretty good experience that wouldn’t have been possible without the help of my seniors. The UX and solution to this problem would be different if canteen side pain points are also equally considered.</p><p>Such sprints are a great way to expand one’s thinking horizon. Also, it is a great way of improving knowledge because you tend to read a lot of blogs and stuff to gather information and inspiration.</p><p>Thank you for reading this far!</p><p>Suggestions are most welcome :)</p><p>Cheers!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=37cde226fa18" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>