<?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 Varun Sakhuja on Medium]]></title>
        <description><![CDATA[Stories by Varun Sakhuja on Medium]]></description>
        <link>https://medium.com/@varun.sja?source=rss-1448d7661cec------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*tTCZspUCIOTV-7r2.jpg</url>
            <title>Stories by Varun Sakhuja on Medium</title>
            <link>https://medium.com/@varun.sja?source=rss-1448d7661cec------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 16:02:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@varun.sja/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[Dark Side of AI In the Fashion World]]></title>
            <link>https://medium.com/@varun.sja/dark-side-of-ai-in-the-fashion-world-7112d7002a53?source=rss-1448d7661cec------2</link>
            <guid isPermaLink="false">https://medium.com/p/7112d7002a53</guid>
            <category><![CDATA[business]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[fashion]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[tech]]></category>
            <dc:creator><![CDATA[Varun Sakhuja]]></dc:creator>
            <pubDate>Wed, 05 Apr 2023 11:15:34 GMT</pubDate>
            <atom:updated>2023-04-05T11:15:34.951Z</atom:updated>
            <content:encoded><![CDATA[<p>AI isn&#39;t all goodie-goodie that we are made to believe</p><p>AI, better known as Artificial Intelligence is gaining traction across industries and become all pervasive.AI is already used by companies in some form or another in customer care service or optimizing supply chains, or understanding consumer buying behavior patterns to make recommendations.</p><p>Recently, Levis Strauss, a household name in the apparel industry, announced that it would experiment with AI generative images of fashion models — a subset of AI that can create audio, images, and videos based on text prompts- as a way to increase the diversity of models</p><figure><img alt="Fashion AI the dark side of fashion" src="https://cdn-images-1.medium.com/max/1024/0*L07_ORH8yk-ziqz4" /><figcaption>Photo by <a href="https://unsplash.com/@freestocks?utm_source=medium&amp;utm_medium=referral">freestocks</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The news has excited the tech community which wants to see how generative AI becomes mainstream, but overall the idea was panned by critics, who view Levis as using it to reduce job opportunities for minority models and aggravate the ethnic disparity that&#39;s already prevalent in the fashion industry!</p><p>There are certain ethical aspects that fashion brands need to be mindful of. The latest fad in the world of AI is ChatGPT- a chatbot seemingly capable of answering questions, writing articles,s and copywriting — gaining traction</p><p>While AI can be a godsent technology for companies who wish to reduce cost, boost creativity and stay ahead of the curve, there is also a sinister side to AI, where companies use it just to replace human employees- Which is an ethical concern and can create a negative perception about brands</p><p>Technological trends can change quickly in the retail sector and companies should upskill and train employees to make the best use of AI and not look at them as an employee replacement tool</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7112d7002a53" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Fashion Brands Can Provide the Best Customer Service]]></title>
            <link>https://medium.com/@varun.sja/how-fashion-brands-can-provide-the-best-customer-service-a3947d6d3fbe?source=rss-1448d7661cec------2</link>
            <guid isPermaLink="false">https://medium.com/p/a3947d6d3fbe</guid>
            <category><![CDATA[retail-technology]]></category>
            <category><![CDATA[retail]]></category>
            <category><![CDATA[fashıon]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[customer-experience]]></category>
            <dc:creator><![CDATA[Varun Sakhuja]]></dc:creator>
            <pubDate>Tue, 04 Apr 2023 07:58:49 GMT</pubDate>
            <atom:updated>2023-04-04T07:58:49.183Z</atom:updated>
            <content:encoded><![CDATA[<p>Competition is heating up and fashion brands need to up the ante like never before!</p><p>The fashion industry, just like most other industries, has witnessed a tectonic shift in consumer behavior since the pandemic began.</p><p>Overnight, due to the lockdown, the demand shifted to online as Brick and Mortar shops were closed. Even when the pandemic is behind us and things have gone back to normal, people have largely stuck to online shopping and seem to feel comfortable about it</p><figure><img alt="How to provide the best customer experience" src="https://cdn-images-1.medium.com/max/1024/0*gxRxKJ0-lubuffiD" /><figcaption>Photo by <a href="https://unsplash.com/es/@mercantile?utm_source=medium&amp;utm_medium=referral">Clark Street Mercantile</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Also, Gen Z, the new shopping generation has highly evolved preferences and has high expectations from brands</p><p>In the backdrop of such a dramatic change, Fashion companies have a challenge as well as an opportunity to redefine customer experience to stay ahead of the competition and increase brand value</p><p>According to research done by Walker, customer experience will play a more prominent role over price and product and companies need to carve out a definitive customer experience to reflect the new paradigm</p><blockquote>“<strong>Customer experience is a journey that is summarised as the culmination of all interactions a customer has with a brand</strong>”</blockquote><p>A well-defined customer experience is critical for creating a high-quality experience and brand loyalty</p><p>To create a successful customer experience, brands need to create a</p><h3><strong>Importance of Customer Experience</strong></h3><p><strong>#1 Increase Customer Satisfaction:</strong></p><p>Brands which manage to create a positive experience for their customers are very likely to build long-lasting relationships with their customers and, in turn, customers will refer them to friends and family, thereby boosting sales</p><p><strong># 2 Increase Customer Retention:</strong></p><p>Brands that personalize the experience for their customers are likely to create loyalty and retain them over a longer period, thereby reducing customer churn rate</p><h3><strong>How to deliver a Wonderful customer experience</strong></h3><p><strong>#1 Personalised Experience:</strong></p><p>Customers will appreciate brands that go out of their way to understand the customer needs and deliver tailor-made products</p><p>This helps them to differentiate from the rest of the customers and stand apart</p><p><strong># 2 Constant Communication</strong></p><p>Consumers expect brands to maintain constant communication- through app notifications or text messages, right from the awareness stage up to order fulfillment.</p><p>This assures the customers and makes them feel valued, which makes them potentially long-term customers</p><p><strong># 3 Quick Resolution:</strong></p><p>Customers are spoilt for choice and attention. Brands that want to differentiate themselves need to provide top-notch customer care if they want to gain the customer’s trust and loyalty</p><p>Quickly resolving product or delivery-related issues can keep the customer satisfied and increase goodwill</p><p><strong>#4 Leverage Omnichannel</strong></p><p>Omnichannel is the latest technological trend in the fashion world, which brings simplifies the customer experience by seamlessly integrating the physical and the digital world</p><p>With the help of omnichannel, brands can provide a top-notch customer experience in both modes, which offers convenience to the customers.</p><p>Omnichannel combines the best of both worlds and is important for all fashion brands if they want to stay relevant in today`s digital-first world</p><h3><strong>Best practices for providing exceptional customer experience for the customers</strong></h3><p><strong>#1 Create a buyer persona and understand the need of the audience</strong></p><p>Understanding the customer need is the foremost step in creating a customer persona as brands need to understand the cultural and demographic aspects of the customer to provide custom products</p><p>Some of the key questions that the brand must find an answer to</p><ol><li>Where are my customers?</li><li>What’s the demography in terms of age, gender income levels?</li><li>What motivates the customers?</li><li>What is their choice?</li><li>What service will help to differentiate from competitors?</li></ol><p>By analyzing the above questions, brands can understand their target market and create strategies accordingly</p><p><strong>#2 Prepare a Roadmap</strong></p><p>Customer Experience is not a singular aspect but happens at multiple touch points and to achieve the goal, brands need to identify each step that comes in the way and plan steps accordingly</p><p>Right from the initial point of contact, right until the fulfillment, fashion brands need to provide seamless services to their customers</p><p><strong>#3 Build a Competitive Team</strong></p><p>Tech no doubt plays an efficient role, but to make the most of it, you need a skilled resource to execute technology. Also, Technology has its limits, as it can only handle the predefined task. Not to mention, Tech also lacks empathy, and there are certain situations where the human touch is required to resolve issues</p><p>Hiring experienced team members, reskilling them, and training them on empathy, excellent communication skill, and developing selling skills can make them competitive.</p><p><strong>#4 Leverage Technologies to Streamline Operations</strong></p><p>Chatbots are gaining traction amongst retail brands, which want to provide customer support in an efficient way</p><p>Fashion brands can install chatbots to provide 24*7 Support and help in primary data collection- Such as name age gender, and email address</p><p>In case there is a more complex query, humans can take over and resolve the issue</p><p><strong>#5 Measuring Customer Experience through Metrics</strong></p><p>With the integration of new-age technologies, brands can assess customer engagement analytics to make better decisions</p><p>Brands need to set a benchmark to understand how well the business is performing and customers’ perception of your brand</p><p>There are 3 Metrics mentioned below</p><p><strong>CSAT(Customer Satisfaction Score)</strong>: CSAT helps in gauging the customer’s insights and how highly they rate you. CSAT is like a questionnaire with ratings to understand customer satisfaction with your product</p><p><strong>Net Promoter Score(NPS)</strong>: This measures how likely the customers will refer to friends and family</p><p><strong>Customer Effort Score: </strong>It evaluates how customers experience your product or services on a scale of 1–5</p><p><strong>#7 Seek Customer Feedback proactively:</strong></p><p>With the help of a feedback mechanism, brands should figure out how well their brand resonates with the customers</p><p>What are the changes the customers expect from the brand? Are they in a position to retain their customers?</p><p>The feedback should be implemented to increase customer satisfaction and retention as well</p><p>Customers will be glad as their voices will be heard to make them feel important and an important stakeholder</p><p>Competition is fierce and with small and incremental steps, brands can nurture relationships with customers to stay ahead in the game,</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a3947d6d3fbe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AutoML is democratizing Machine Learning and making it affordable for smaller organizations]]></title>
            <link>https://medium.com/@varun.sja/automl-is-democratizing-machine-learning-and-making-it-affordable-for-smaller-organizations-fb6239c203b9?source=rss-1448d7661cec------2</link>
            <guid isPermaLink="false">https://medium.com/p/fb6239c203b9</guid>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[business-strategy]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Varun Sakhuja]]></dc:creator>
            <pubDate>Tue, 10 May 2022 12:24:42 GMT</pubDate>
            <atom:updated>2022-05-10T12:24:42.183Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6VuOruxt5VesixaK" /></figure><p>Machine Learning has been the talk of the town for a while now. A subset of Artificial Intelligence, Machine learning is a fascinating technology that has the potential to change the way how a business operates.</p><p>From fraud detection, spam filtering, product development, business process automation, or the development of a new product, Machine Learning has become a core technology for many large organizations.</p><p>With an enormous of data to process, organizations have the opportunity to leverage ML technology to understand consumer choices and behavior to make optimal decisions and gain a competitive advantage</p><p>That said, implementing Machine Learning comes with its challenges.</p><p>A typical Data science pipeline has many steps like preprocessing, feature engineering, and hyperparameter optimisation-To name a few. The entire setup and process required a dedicated team of Data Engineers and Data Scientists. That comes at a price- A hefty price if you ask me!</p><p>High costs meant that only organizations with deep pockets could afford to implement ML. Small and Medium firms had no chance whatsoever.</p><p>But, even after implementing state-of-the-art Machine Learning models, there was no guarantee that it will deliver the results as expected. Many Machine Learning models fail to deliver the result, which has made companies wary of committing resources to it.</p><p>Not anymore!</p><h3>Enter AutoML.</h3><p>AutoML or better known as Automated Machine is a tool/software which leverages automation for end-to-end implementation of Machine Learning.</p><p>It has eliminated all the manual and tedious tasks- be it data preprocessing, feature engineering, hyperparameter optimization, and model selection done by Data Engineers and Data Scientists.</p><p>AutoML has brought in a paradigm change and democratized Machine Learning Adoption. Medium enterprises no longer need to spend a lot of money on hiring data scientists or building ML models from scratch.</p><p>AutoML executes all tedious, manual work that required an expert Data Scientist to execute. The entire process could take weeks or months. AutoML can produce the same results within days- And most importantly, at a fraction of the cost!</p><p>AutoML facilitates a seamless development process that requires no coding expertise to create and execute a Machine learning model. Now, with the help of AutoML, a Data Analyst can perform tasks like a Data Scientist. Magical, isn’t it?</p><p><strong>Step by Step Process of Auto ML:</strong></p><ul><li>Raw data formatting and processing</li><li>Feature Engineering and Selection</li><li>Machine Learning model selection</li><li>Hyperparameter optimization</li><li>Choosing the appropriate Model for execution</li><li>Training and hyperparameter tuning</li></ul><p><strong>Types of Auto ML</strong></p><ul><li>Automated Feature Engineering</li><li>Automated Hyperparameter Optimisation</li><li>Neural Architecture Search</li></ul><p><strong>Benefits of Auto ML</strong></p><p>Auto ML comes with a host of benefits. Let’s take a look at what makes AutoML so useful.</p><p>Instead of hiring and maintaining a full-fledged team to code, debug and maintain many Machine Learning models, companies can save time and money by opting for a ready-made Auto ML tool, which requires no coding experience and gets the job.</p><p>2. <strong>Accessibility:</strong></p><p>Auto ML has democratized AI. Earlier, only big companies with big budgets could use AI, but now, thanks to Auto ML, even smaller companies can leverage the benefit of Machine Learning to stay competitive and gain an edge</p><p><strong>3. Efficiency:</strong></p><p>Maintaining Machine Learning models does come with a lot of hassles. With AutoMl, data scientists can focus on the core decision-making process, leaving the formatting and other non-core features taken care of by the AutoML tool.</p><p>4. <strong>High Performance:</strong></p><p>AutoML is a well-tested tool, which makes it free from errors and biases that would come with manually created models and will deliver optimal results</p><p>That said, AutoMl cannot completely replace humans. Also, since the AutoML is in an early stage, it will evolve over a while to become a mass product.</p><p><em>Originally published at </em><a href="https://www.linkedin.com/pulse/automl-democratizing-machine-learning-making-affordable-varun-s/?trackingId=YsxKQsfTvFkbeDC6rjZEdg%3D%3D"><em>https://www.linkedin.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fb6239c203b9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[4 ways of collecting data for Machine Learning models]]></title>
            <link>https://medium.com/@varun.sja/4-ways-of-collecting-data-for-machine-learning-models-598be2fe72e0?source=rss-1448d7661cec------2</link>
            <guid isPermaLink="false">https://medium.com/p/598be2fe72e0</guid>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Varun Sakhuja]]></dc:creator>
            <pubDate>Wed, 27 Apr 2022 08:52:17 GMT</pubDate>
            <atom:updated>2022-04-27T08:52:17.451Z</atom:updated>
            <content:encoded><![CDATA[<p>Learn how to collect data to make fantastic predictions</p><p>Machine learning and AI are growing by leaps and bounds.</p><p>Companies are realizing that to stay competitive and have an edge over competitors, they need to embrace Machine Learning</p><p>But developing and deploying Machine Learning models is not enough. You need to develop a data strategy plan as well to get the desired results.</p><figure><img alt="4 ways of collecting data for your ML model" src="https://cdn-images-1.medium.com/max/1024/0*ZcA_4cYFsFh5uS46" /><figcaption>Photo by <a href="https://unsplash.com/@olloweb?utm_source=medium&amp;utm_medium=referral">Agence Olloweb</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Data collection is the first step toward building any machine learning model. The quality of data you collect makes a huge difference in the quality of output.</p><blockquote><strong>As said, Garbage in, Garbage out. Your state-of-the-art Machine Learning model wont be good enough if you feed it with bad data. With bad data, all you can expect is bad results</strong></blockquote><p>So, now that you are aware of how important data is, let us take a look at various ways you can collect data for analysis and decision making.</p><p>There are 4 ways of collecting data for your model</p><p>1. Web Scraping</p><p>2. Open Source Data Set</p><p>3. Synthetic Data Set</p><p>4. Manual Data Creation</p><h3><strong>1. Web Scraping:</strong></h3><p>Suppose you need to collect data from websites. What can you do? You can copy and paste the details from the website and make use of the data, right?</p><p>What if you need a large amount of data. It will be very tedious and expensive to copy and paste all the relevant information across the web.</p><p>That’s where Web Scraping comes into the picture. Web scraping leverages intelligence automation to extract and collect structured web data.</p><p>Some of the purposes of web scraping are lead generation, market research, competitor analysis, price, and news monitoring, brand monitoring</p><p>Scraping enables Data Scientists to collect a massive amount of publicly available web data to make optimal decisions.</p><p>Web Scraping can have two aspects: Crawling and Scraping</p><p>Crawling refers to an artificial intelligence algorithm that searches for particular information across the web. While scraping helps to extract information data from the website.</p><p>Web Scrapers are capable of extracting complete or specific data from websites. But, it will be better to target specific data, so that the process takes less time.</p><p>Web scrapers are specialized tools to extract information from websites. They vary in design and complexity</p><p>Steps to implement Web Scraping</p><ul><li>Identify the website</li><li>Create a list of URLs that you would like to scrape</li><li>Locate the data in the HTML format</li><li>Save the data in a structured format</li></ul><blockquote><strong>Although web scraping is something you should go for, you should also be mindful of the ethical and legal implications of using such tools.</strong></blockquote><blockquote><strong>Before embarking on the web scraping journey, please be aware of the legal aspects</strong></blockquote><blockquote><strong>Try not to break rules.</strong></blockquote><h3><strong>2. Open Source Datasets:</strong></h3><p>The easiest way to collect data is to use open-source datasets. There are hundreds and thousands of datasets available over the internet</p><p>Below are some of the websites where you can obtain datasets</p><ul><li>Government Datasets</li><li>UCI Machine Learning Repository</li><li>Google Dataset Search Engine</li><li>Microsoft Datasets</li></ul><h3><strong>3. Synthetic Datasets:</strong></h3><p>Gathering data from the real world might pose a challenge.</p><p>There are privacy concerns and legal entanglement that might dissuade Data scientists to leverage information from the real world.</p><p>Synthetic data refers to the dataset created artificially rather than gathered from real-world scenarios.</p><p>For any Machine Learning model to be successful, it needs a large quantity of high-quality data.</p><p>Privacy regulations like GDPR and CCPA prevent companies from obtaining the personal information of customers and penalize them, in case of any wrongful activity.</p><p>Also, at times collecting real-world data might prove to be expensive or elusive as well- Think of fraudulent transactions at banks. In such cases, we cannot rely on real-world data.</p><p><a href="https://blogs.gartner.com/andrew_white/2021/07/24/by-2024-60-of-the-data-used-for-the-development-of-ai-and-analytics-projects-will-be-synthetically-generated/">Gartner predicts by 2024, 60 percent of the data will come from synthetic data.</a></p><p>So, we do have a point of Synthetic data is a dominant way of collecting data.</p><p>Benefits of Using Synthetic Data</p><p><strong>A. Real Data Constraints:</strong></p><p>Real data may have constraints due to privacy rules and regulations.</p><p>Synthetic data can reproduce all the relevant datasets without exposing the real-world dataset, hence making it foolproof.</p><p><strong>B. Create Imaginary Dataset:</strong></p><p>To simulate situations where real-world data does not exist, synthetic data can come in handy and help Data Scientists with data to make forecasting and predictions</p><p><strong>Challenges with Synthetic Data</strong></p><p><strong>A. Quality Dependant on Input data</strong></p><p>The quality of the synthetic data depends upon the input data and the Machine Learning model. If the quality is not good, the synthetic data generation will be below par.</p><p><strong>B. Lower Acceptance:</strong></p><p>Synthetic data is a new concept. Users may be apprehensive to use synthetic data due to uncertainties.</p><h3><strong>4. Internal Data Collection:</strong></h3><p>In an inquest for searching data, you can also tap into the organization data lake to receive data for Machine learning models</p><p>If you are in the manufacturing domain, you can set up sensors to retrieve data for processing.</p><p>The new age Machine Learning models, unlike the old ones, do not need much training data to learn.</p><p>Take for example a smart factory, which applies Machine Learning for Quality control- To identify defects.</p><p>As they need reduced training data, they can quickly identify defects and reduce wastage and hazards.</p><p>Another way to gather data is by crowdsourcing.</p><p>In crowdsourcing, humans, in exchange for payment, gather bits of data to prepare a comprehensive dataset.</p><p>That said, extracting and formatting data all by yourself can provide to be tedious work. You may need to hire resources to outsource tasks or done with the help of automation.</p><p>I hope you found this article informative. Please let me know in the comments below if you have any queries! Thanks!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=598be2fe72e0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Labeled and Unlabeled Data- What is the difference??]]></title>
            <link>https://medium.com/@varun.sja/labeled-and-unlabeled-data-what-is-the-difference-4e95e8013138?source=rss-1448d7661cec------2</link>
            <guid isPermaLink="false">https://medium.com/p/4e95e8013138</guid>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Varun Sakhuja]]></dc:creator>
            <pubDate>Fri, 22 Apr 2022 10:41:29 GMT</pubDate>
            <atom:updated>2022-04-22T12:34:16.800Z</atom:updated>
            <content:encoded><![CDATA[<p>Do you want to know how to label data, continue reading the article below!</p><p>What is Data?</p><p>Data refers to any relevant information that can be processed into a form to make an analysis. Data comes in different shapes and sizes. In today`s day of technology, data exists in a multitude of forms- Think text, images, pdf, videos, excel sheets, drive — Yes, you read it right. All of this is all data, data, and data.</p><figure><img alt="Labeled Data and Unlabeled Data" src="https://cdn-images-1.medium.com/max/1024/0*yUTlAvolgzxnw6uC" /><figcaption>Photo by <a href="https://unsplash.com/@popnzebra?utm_source=medium&amp;utm_medium=referral">Pop &amp; Zebra</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>However, not all data are of the same kind. There is a further classification of data, which is mentioned below</p><p># 1 Labeled Data</p><p># 2 Unlabeled Data</p><p><strong>What is unlabeled data?</strong></p><p>Any data that does not have any labels specifying its characteristics, identity, classification, or properties can be considered unlabeled data. For example photos, videos, or text that do not have any category or classification assigned to it can be referred to as unlabeled data.</p><p>Now that we have a fair understanding of unlabeled data, let’s look into what is labeled data?</p><p><strong>Labeled Data?</strong></p><p>Any data which has a characteristic, category, or attributes assigned to it can be referred to as labeled data. For example, a photo of a cat, the height of a human, price of a product is some examples of labeled data.</p><p><strong>What is data labeling?</strong></p><p>Data labeling is defined as a process of identifying raw data- like text, pdf, files, images and classifying and adding one or more labels to it to enable machine learning models to learn from it.</p><p>Labeling helps the machine learning model identify the attributes of the data to analyze and make predictions. Over time, machine learning starts identifying the data and can make accurate predictions seamlessly.</p><p>Machine Learning can be classified into 3 categories:</p><p>#1 Supervised Learning</p><p># Unsupervised Learning</p><p># Reinforcement Learning</p><p>In the case of unsupervised learning, Data Scientists feed unlabelled data into the Machine Learning models to help the model learn from each data point and identify the characteristics</p><p>Let&#39;s assume that we have images of animals- Say Cats, Dogs, and Foxes. We are now developing a Machine Learning algorithm to help differentiate between the three different animals.</p><p>If we feed the model with labeled data, it will easily identify and classify the images of the cat, dog, and fox and classify them.</p><p>In case the images do not have any label attached, the machine learning model will have to identify each image and understand the peculiar characteristics- Color. body shape, facial features, and other details to learn and classify them into different categories.</p><p>Here is a chart to help you understand the differences between labeled and unlabeled data.</p><figure><img alt="Labeled vs Unlabeled Data" src="https://cdn-images-1.medium.com/max/1024/1*tPadEDIaUPCZZRWeUqtU-Q.png" /><figcaption>Labeled vs Unlabeled Data</figcaption></figure><p><strong>How to efficiently apply data labeling?</strong></p><p>The key to building successful and efficient Machine Learning models is to continuously feed them with a massive amount of high-quality data. Over time, the model will get better and better at making accurate predictions.</p><p>To begin with, Data scientists need to train the model that is labeled by humans. The model will start applying labels automatically to all the data it understands and will pass back the rest of the data, that it does not understand back to humans for annotation.</p><p>The returned data is once again fed into the model to retrain and improve its capability to automatically assign labels to new data. Over time, the machine will become proficient in labeling most of the data on its own without requiring much supervision.</p><p>Below is the flowchart diagram depicting the flow for efficient labeling</p><figure><img alt="How to efficiently label data" src="https://cdn-images-1.medium.com/max/1024/1*sDpw58JuopFomDySRq9oGw.png" /><figcaption>Label Data Steps</figcaption></figure><h3><strong>Ways of labeling data</strong></h3><p>There are different ways to achieve the labeling process. It all depends on the organizational capabilities and resources at its disposal.</p><p><strong># 1 Internal Sourcing:</strong></p><p>Large companies who have a dedicated in-house Data science team can engage internal resources to label raw data.</p><p><strong># 2 Script Labelling:</strong></p><p>Data scientists can write code/scripts and run them to automatically annotate data. This reduces human intervention to a certain extent, but not completely.</p><p><strong># 3 Agencies:</strong></p><p>In case the organization does not have sufficient bandwidth, it can outsource data labeling to agencies that specialize in such tasks.</p><p><strong>Advantages and Disadvantages of Data labeling</strong></p><p>Although data labeling is a time-consuming and tedious task, it is nonetheless worth the effort and time. Labeled data helps in making accurate predictions which can help organizations to increase sales and profits.</p><h3><strong>Advantages</strong></h3><p><strong>#1 Accurate Predictions:</strong></p><p>Machine Learning models are as good as the data provided.No matter how good the model is, if fed with useless or irrelevant data, it will fail to make accurate predictions.</p><p>Accurate data helps the machine learning model to train in an optimal way and make better and more useful predictions</p><h3><strong>Disadvantages</strong></h3><p><strong># 1 Expensive:</strong></p><p>Although data labeling is vital for a successful machine learning model, it consumes a lot of time and is also expensive to perform. The whole process of setting the data pipeline and setting the process does take a significant amount of resources.</p><p>Not all organizations have the means and methods to assign significant resources.</p><p><strong>#2 Errors:</strong></p><p>Humans do tend to make errors while labeling data. That, of course, is normal. Labeling data incorrectly can lead to wrong predictions.</p><p>In order to resolve the issue, Quality Assurance resources must validate all the labeling at the end to ensure there is no discrepancy.</p><h3><strong>Types of Data Labeling</strong></h3><p><strong>#1 NLP( Natural Language Processing):</strong></p><p>NLP is a subset of AI that leverages, Machine Learning and Deep Learning to train the model by identifying and tagging texts for sentiment analysis. Entity name recognition and optical character recognition.</p><p><strong>#2 Audio Processing:</strong></p><p>Audio processing involves formatting all kinds of speeches and sounds- like chirping, barking, hissing, glass breaking, door banging, etc to use it for machine learning models.</p><p>I hope this article gives you a clear picture of labeled and unlabeled data. Do let me know in the comment section your thoughts on the same?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4e95e8013138" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Structured Data vs Unstructured Data vs Semi-Structured Data-What is the difference?]]></title>
            <link>https://medium.com/@varun.sja/structured-data-vs-unstructured-data-vs-semi-structured-data-what-is-the-difference-f0e88eaba560?source=rss-1448d7661cec------2</link>
            <guid isPermaLink="false">https://medium.com/p/f0e88eaba560</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[business-intelligence]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[Varun Sakhuja]]></dc:creator>
            <pubDate>Thu, 14 Apr 2022 07:43:19 GMT</pubDate>
            <atom:updated>2022-04-14T07:43:19.984Z</atom:updated>
            <content:encoded><![CDATA[<p>Let&#39;s deep dive into all the three classifications to learn more about them</p><figure><img alt="Structured Data vs Unstructured Data vs Semi-Structured Data-What is the difference?" src="https://cdn-images-1.medium.com/max/1024/0*GvbGXWHlN4tR_IL7" /><figcaption>Photo by <a href="https://unsplash.com/@markusspiske?utm_source=medium&amp;utm_medium=referral">Markus Spiske</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>To begin with, let me first all that data is all about?</p><p>In computing parlance, data is referred to as a piece of information that can be processed in a meaningful way.</p><p>Due to the technological revolution in the past decade, the internet generates an enormous amount of data. As per IBM, the world will collectively generate around 175 zettabytes (175 trillion gigabytes) of new data</p><p>Data exists in different forms, sizes, and formats. Think of images, social media videos, and news online- All of this is, of course, data!</p><p><strong>Data can be segregated into 3 categories:</strong></p><ul><li>Structured Data</li><li>Unstructured Data</li><li>Semi-Structured Data</li></ul><p>Let’s dive in and check the three categories in depth</p><h3><strong>Structured Data:</strong></h3><p>Structured data is highly organized and easy to understand. It is also referred to as quantitative data as it can be measured. It is stored in rows and columns and is related to each other. Think of data stored in Microsoft Excel and Google Docs-That’s a perfect example of structured data</p><p>Structured data requires little to no formatting and is very easy to decipher the context. The raw data is mapped is stored in pre-designated fields and can be extracted using SQL(Structured Query Language) with ease. The data resides in form of a Relational Database.</p><p><strong>Advantages of Structured Data</strong></p><p><strong>#1 Easy to Understand:</strong></p><p>Since the data is stored in a formatted way, it becomes very easy for the decision-makers to easily decipher the data and make better business-related decisions.</p><p><strong>#2 Compatible with Machine Learning Models</strong></p><p>Structured data has a specific structure and format which makes it easier to feed into Machine Learning models and generate the desired output.</p><p><strong>Disadvantages of Unstructured Data:</strong></p><p><strong>#1 Lack of flexibility:</strong></p><p>Structured data can be only used for limited analysis. It is not scalable or flexible.</p><p><strong>#2 Limited Storage Options:</strong></p><p>Structured data is stored in Data Warehouse with a predefined structure. Any change in the data will require updating all the other data in the same format, leading to higher expenses.</p><p>Industries where structured data is Used:</p><p><strong>#1 Online Booking:</strong></p><p>Whenever you book a hotel room or make a flight reservation, the database stores the relevant data- Like Name, ID, Date, Price, Tariff, Destination) in a predefined format.</p><p><strong># 2 Accounting:</strong></p><p>Accounting software leverage predefined structures in the database to store all the financial transactions.</p><h3><strong>Unstructured Data:</strong></h3><p>Unstructured data also referred to as Qualitative Data, is a category of data that does not have a predefined structure and cannot be processed or analyzed with the help of conventional methods or tools. The data is nonrelational and cannot be comprehended easily.</p><p>Images, Pdf, Word, Media logs, Videos, Text messages, social media posts, or IoT sensor data are some of the examples of unstructured data.</p><p>Unstructured data is categorical and characteristic. For example, Social media posts can be analyzed to understand the purchasing trend or monitor consumer behavior. Text and videos can be monitored to catch fake news.</p><p>Unstructured data is stored in Data Lakes and is preserved in a raw format for further processing.</p><p><strong>Advantages of Unstructured Data:</strong></p><p><strong>#1 Flexible and Scalable:</strong></p><p>Unstructured data can be stored in raw native format and is not dependent on schema, which makes it easy to store massive amounts of data in Data Lakes with ease.</p><p><strong>Disadvantages of Unstructured Data</strong></p><p><strong>#1 Specialised Skills:</strong></p><p>As the data is stored in a raw format, it requires specialized skills to format and analyze the data.</p><p><strong># 2 Sophisticated Tools:</strong></p><p>Sophisticated tools are required to extract and process the unstructured data, which makes many companies abandon the data due to the additional processes involved.</p><p><strong>Usage of Unstructured Data</strong></p><p><strong>#1 Predictive Analytics:</strong></p><p>Unstructured data can help businesses to process the data and understand the sales pattern and accordingly adjust the manufacturing and supply chain to maximize the sales.</p><p><strong>#2 Data Mining:</strong></p><p>Enables businesses to analyze the unstructured data to understand consumer behavior, current trends to help serve customers in a personalized way</p><h3><strong>Semi-Structured Data:</strong></h3><p>Semi Structure data lie somewhere between the structured and the unstructured data segment. Although it does not have a predefined structure and is more complex, it is relatively simpler to understand than unstructured data.</p><p>Emails. For example, are a good example of semi-structured data. It has different aspects like Sender details, recipient, and dates or consider tweets mapped with hashtags. Even news headlines can be considered a semi-structured data</p><p>Data is stored in different formats like CSV, XML, and JSON</p><p><strong>Advantages of Semi-Structured Data:</strong></p><p><strong># 1 Flexible:</strong></p><p>Semi-structured data does not have a rigid architecture. A NoSQL database can store an enormous amount of data in any format to be processed later on.</p><p><strong>Disadvantages of Semi-Structured Data</strong></p><p><strong># 1 High Storage Costs.</strong></p><p>Although semi-structured data is easier to store and port compared to unstructured data, it involves a much higher cost than storing structured data.</p><p><strong>Summary:</strong></p><p>To sum it all, please refer to the table below to understand the difference between the three categories</p><figure><img alt="Structured vs Unstructured vs Semi Strucutured Data" src="https://cdn-images-1.medium.com/max/906/1*roA4nmwSPiSfYo9zk76mZA.png" /><figcaption>Structured vs Unstructured vs Semi-Structured Data</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f0e88eaba560" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learn how to build a Machine Learning Model in 8 Steps]]></title>
            <link>https://medium.com/@varun.sja/learn-how-to-build-a-machine-learning-model-in-8-steps-7e62a06526e3?source=rss-1448d7661cec------2</link>
            <guid isPermaLink="false">https://medium.com/p/7e62a06526e3</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[statistics]]></category>
            <dc:creator><![CDATA[Varun Sakhuja]]></dc:creator>
            <pubDate>Mon, 11 Apr 2022 10:51:58 GMT</pubDate>
            <atom:updated>2022-04-11T10:51:58.709Z</atom:updated>
            <content:encoded><![CDATA[<p>A definitive guide for building an ML Model from scratch</p><p>Machine Learning, a subset of AI, is propelling most of the recent advancement that is taking place today. Be it Predictive Analytics, computer vision, natural language processing, autonomous systems, Machine Learning is revolutionizing the entire system.</p><figure><img alt="How to build a machine learning model from scratch" src="https://cdn-images-1.medium.com/max/1024/0*-0t81IZ7_jvIZmeE" /><figcaption>Photo by <a href="https://unsplash.com/@markuswinkler?utm_source=medium&amp;utm_medium=referral">Markus Winkler</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Machine learning enables systems to identify the patterns in data and learn from the patterns to provide insights that help in better decision-making processes.</p><p>But Machine Learning does not work on its own. Besides gathering the data, Data scientists need to create a model and based on the performance, optimize it to eventually get the desired output.</p><p>Here below we have mentioned some of the steps required for the creation of a Machine Learning model.</p><p>Steps required for Machine Learning</p><p><strong>#1 Define the problem statement:</strong></p><p>For any Machine Learning model to begin, first of all, you need to identify the problem statement. You ought to know what is the problem before finding a solution for it.</p><p>A data scientist/analyst need to think and act like a consultant- Which means developing good listening skill, analytical bent of mind, strong communication skills, and providing feasible solutions for clients&#39; problems.</p><ul><li>What’s the purpose of the model?</li><li>What is the problem?</li><li>How can the model help in solving the problem?</li></ul><p>They should work in tandem with the client to understand the problems they are facing. It is recommended to work onsite to be always available and have meaningful discussions with the client’s team members.</p><ul><li>Based on the assessment, the following question needs to be answered</li><li>What are the objectives that need to be fulfilled to call the project a success?</li><li>What are the acceptable parameters for input and output?</li><li>What is the timeline for completing the project?</li><li>Are there any ethical aspects that need to be considered?</li><li>What kind of model will be used? Classification, clustering, or regression?</li><li>How will be the end result measured? How will the ROI be determined?</li></ul><p>There are certain KPIs(Key Performance Indicators that need to be set along with quantifiable goals to quantify the results.</p><p><strong>#2 Collect Data:</strong></p><p>Once the problem statement has been defined, the next step is to identify the data required for evaluation along with the various steps required for collecting data.</p><p>Below are some of the ways mentioned for collecting data</p><ol><li>Open Source Datasets</li><li>Web Scraping</li><li>Synthetic Datasets</li><li>Manual Data Generation</li></ol><p>The quality and the quantity of the data collected will have a direct impact on well your model works. If the data is incorrect or does not match the criteria, the predictions will not be relevant.</p><p>Ideally, the more quality and diverse data you can collect, the better predictions the model will be able to make.</p><p><strong>#3 Data Preparation:</strong></p><p>The data that you have collected may be in a structured, semi-structured, or unstructured format. In order to make the correct predictions, the data must be formatted and made compatible with the Machine Learning Model to get the best results.</p><p>The following steps need to be taken to make the data ready for deployment:</p><ul><li>Replace Incorrect Values</li><li>Remove Duplicate Values</li><li>Increase image-based datasets if not enough for training purposes</li><li>Remove noise and null values in the data</li><li>Normalize/generalize the data and format it</li><li>Split the data into training, testing, and validation sets</li></ul><p>Data preparation and formatting take a significant amount of time- by estimates, around 80% of the time. It is recommended to spend quality time making the data as good as possible to get optimal results.</p><p>The condensed data should be further bifurcated into two types: Training and Testing in the ratio of 80/20 approximately, but that is subjective and will vary on the volume of data available.</p><p><strong>#4 Model Selection:</strong></p><p>There are several models available based on the objectives you want to achieve.</p><p>Here below are some of the models that might prove useful when it comes to processing sales, images, texts, and fraud detection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MQ41ilgGT4T3YLjI-Eyk9A.png" /><figcaption>Different Types of Models</figcaption></figure><p><strong>#5 Train the model:</strong></p><p>Once the data is ready, now it’s time to train the model to enable it to learn from the quality data. Training is an iterative process and requires techniques such as validation, hyperparameter adjustments, ensembling, and optimization.</p><p>After the application of the above-mentioned techniques, the model needs to be evaluated whether it meets the business objectives and criteria.</p><p><strong>#6 Evaulation:</strong></p><p>Once the training is complete, you need to ascertain the accuracy of the model. If you test the model using the existing dataset, you will not be able to derive accurate results, as the model now understands the pattern and will make similar predictions.</p><p>To eliminate the issue, you should feed new and different datasets to achieve higher accuracy. It is recommended to make use of a Validation dataset to ascertain the accuracy of the model.</p><p>If you achieve an accuracy level of around 90%, it will be safe to say the model is accurate, else the model may not live up to the expectation.</p><p>There are certain aspects that need to be ascertained like KPIs, Performance Statistics, Output, or confusion matrix to evaluate whether the model is capable of meeting the specified goals or not.</p><p><strong>#7 Parameter Tuning:</strong></p><p>Machine Learning models need to undergo multiple iterations to become efficient and reliable.</p><p>During the evaluation phase, Data Scientists need to continuously monitor the performance of the model. If there is any discrepancy or if the model is not performing as per the expectation, it needs to be readjusted or tweaked to get the best results.</p><p>During the evaluation phase, if the model didn’t make an accurate prediction, chances are you have underfitting or overfitting issues. The model may also reflect high variance or bias.</p><p>To rectify the issue, you need to retrain the model by tweaking the parameters and retesting the model.</p><p>With multiple iterations, there will be a reduction in errors and discrepancies, which will lead to higher accuracy in the model.</p><p><strong>#8 Predictions:</strong></p><p>Once the evaluation phase is complete, it is now time to execute the model in a real-world scenario.</p><p>You should deploy the Machine Learning model and continually measure the performance against the benchmark.</p><p>Now you are all set to make predictions, which will help to grow your business.</p><p>So, folks. That was all about building Machine Learning models. Do let me know your thoughts on the same.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7e62a06526e3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Training vs Validation vs Testing in Machine Learning]]></title>
            <link>https://medium.com/@varun.sja/training-vs-validation-vs-testing-in-machine-learning-6ba48452f6b1?source=rss-1448d7661cec------2</link>
            <guid isPermaLink="false">https://medium.com/p/6ba48452f6b1</guid>
            <category><![CDATA[dataset]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-visualization]]></category>
            <dc:creator><![CDATA[Varun Sakhuja]]></dc:creator>
            <pubDate>Fri, 08 Apr 2022 12:40:34 GMT</pubDate>
            <atom:updated>2022-04-08T12:40:34.597Z</atom:updated>
            <content:encoded><![CDATA[<p>So, what is the difference between the three methods?</p><p>Machine Learning algorithms are a godsent technology for helping companies to analyze massive data to make predictions to help their business grow and succeed.</p><p>However, the data and the Machine learning model on its own cannot make reliable predictions. Different datasets fulfill varied purposes to make predictions based on real-world data.</p><p>We will deep dive and discuss the difference between the training, test, and validation datasets</p><figure><img alt="Training vs Testing vs Validation- Whats the difference?" src="https://cdn-images-1.medium.com/max/1024/0*D0NKLARV62u-YKGQ" /><figcaption>Photo by <a href="https://unsplash.com/@ikukevk?utm_source=medium&amp;utm_medium=referral">Kevin Ku</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3><strong>Training Data:</strong></h3><p>Training data is a portion of data carved out of the original dataset and is used to feed the Machine Learning algorithm to learn the various features and parameters from the dataset to make useful predictions.</p><p>The data collected is preprocessed and made compatible with the Machine Learning model in order to make it work seamlessly. The type of data fed into the model affects the output. If the model is fed with an enormous amount of diverse and quality data, it will generate even better results.</p><p>The model, during the training phase, continuously evaluates to learn more about the characteristics of the data to make better predictions.</p><p>However, due to continuous training, it memorizes all the parameters of the dataset, and when it is fed with real-world data, it fails to generalize as expected. Here is where Validation Dataset comes into the picture.</p><h3><strong>Validation Data:</strong></h3><p>During the training phase, a new unseen dataset is introduced to fine-tune the hyperparameters. This dataset is known as the validation dataset.</p><p>The validation dataset feeds the model with Real World data, which is not possible in the training phase. When the model is executed, we can assess the results to see how well the model is performing.</p><p>Suppose we deploy a Machine Learning model to identify and differentiate between cats and dogs, If we feed the model with a lot of images of cats during the training phase and then use a picture of dogs in the validation phase, we can assess how well the model interprets the situation when provided with unseen data. If the model is able to differentiate between the cat and dog, the model is assumed to be working as per the expectation.</p><p>In the case of multiple hyperparameters, a bigger validation set will generally give better results. If the model delivers higher accuracy on the validation set, compared to the training set, it can be assumed that the model has been trained well.</p><h3><strong>Test Data:</strong></h3><p>Once the model is developed, the testing dataset is introduced to verify the accuracy of the trained model by introducing unseen data points. The testing model has all the attributes that are used in the real world.</p><p>It is advisable to compare the accuracy of the testing model with the training model. If both the datasets closely match each other, we can assume it has generalized well, however, if the accuracy of the training set is higher than the testing set, it can be concluded that there is a case of overfitting.</p><h3><strong>How to build an effective Machine Learning Model</strong></h3><p><strong>Quantity:</strong></p><p>In order for any ML model to succeed, it needs to lot of training to learn how to make better predictions over time. With the help of diverse features and data points, it can easily learn about the various attributes and become specialized.</p><p><strong>Quality:</strong></p><p>It will not be an exaggeration to say that the ML model is as good as the data fed into it. When you feed a well-built ML model with junk data, in the end, you will receive junk-worthy output.</p><p>Data scientists should carefully evaluate the kind of data used for predictions and choose quality data to get the best results.</p><p>The data should be collected from the real world as much as possible. Like Images, documents, videos, and voice outputs. With the help of real data, the model can learn the kind of output it needs to generate and make accurate predictions.</p><p><strong>Diverse Data:</strong></p><p>When you feed a narrow dataset to a model, there is a high probability that the model will demonstrate some bias, which can undermine the quality of predictions made by the model.</p><p>To solve the issue, Data Scientists should diversify features to enable the model to train well.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6ba48452f6b1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is Bias and Variance in Machine Learning?]]></title>
            <link>https://medium.com/codex/what-is-bias-and-variance-in-machine-learning-1756c36f49f7?source=rss-1448d7661cec------2</link>
            <guid isPermaLink="false">https://medium.com/p/1756c36f49f7</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[business-intelligence]]></category>
            <dc:creator><![CDATA[Varun Sakhuja]]></dc:creator>
            <pubDate>Thu, 07 Apr 2022 07:36:33 GMT</pubDate>
            <atom:updated>2022-04-08T12:41:27.895Z</atom:updated>
            <content:encoded><![CDATA[<p>Let&#39;s deep dive to understand Bias and Variance along with Underfitting and Overfitting</p><p>Machine Learning is a subset of Artificial Intelligence and is growing rapidly in different fields. Machine Learning learns from the data fed into its model, which helps it to make better predictions over time. ML models require diverse and massive amounts of data to make meaningful predictions.</p><p>Due to enormous size and real-world limitations, there will always be errors, which leads to a deviation between the predicted and the actual results. The main goal of Data Scientists is to minimize the errors to make more accurate predictions.</p><p><strong>Machine Learning Errors:</strong></p><p>There are two types of Errors in ML :</p><p><strong>#1 Reducible Error</strong>:</p><p>Bias and Variance present in the dataset are referred to as reducible errors since they can be adjusted and tweaked and adjusted to a certain extent to improve the accuracy of the model</p><p><strong># 2 Irreducible Error:</strong></p><p>There are some errors that will always be present in the dataset, no matter what you do. For example, there may be unknown variables whose value cannot be altered or reduced.</p><p>Irreducible errors cannot be altered and Data Scientists need to work around this limitation.</p><h3><strong>Bias:</strong></h3><p>Bias refers to the difference between the average Predicted value and the expected value. High bias is referred to as a phenomenon when the model is oversimplified, the ML model is unable to identify the true relationship or the dominant pattern in the dataset.</p><p>Every model has an inbuilt bias, as it helps the model to learn in a quicker and easier way. High bias causes underfitting in the model.</p><p>Linear algorithms, in general, have a high bias, which enables them to learn quickly. Whereas nonlinear algorithms have a lower bias since they are more complex than linear models. Simply put, the simpler is the algorithm, the more bias in the model.</p><p><strong>Following are the characteristics of a high biased data model</strong></p><p>#1 Unable to capture the trends</p><p>#2 High Error Rate</p><p>#3 Underfitting</p><p>#4 Oversimplified/Overgeneralized model</p><h3><strong>Variance :</strong></h3><p>Variance measures the change in the value /output if a new different training dataset was used. In an ideal situation, the model should not differ for different training datasets. The variance comes into the picture when Data Scientists use complex models with multiple features.</p><p>High variance causes overfitting, which captures more data points than required along with noise. Whereas, the model with low variance has minimal difference between the sample model and the predicted model.</p><p>A model with high variance performs well on the training dataset but fails to perform as per expectation when provided with unseen data.</p><p>Linear Regression and Logistics regression model have low variance, whereas, decision trees, support vector machines, and k nearest neighbors have high variance inbuilt in them.</p><p><strong>Characteristics of High Variance Model</strong></p><p>#1 High Complexity</p><p>#2 Maps all data points close to each other</p><p>#3 Overfitting</p><p>#4 Noise in the data set</p><p><strong>Underfitting and Overfitting:</strong></p><p>Now that we have understood Bias and Variance, let&#39;s understand what Overfitting and Underfitting are all about</p><p>Overfitting and underfitting are two problems that plague every Machine Learning model. The optimal Machine Learning model should be able to adapt to all unknown inputs and provide a reliable output each time.</p><h3><strong>Overfitting</strong></h3><p>Overfitting refers to a situation when Data Scientists train the ML model with a lot of data. Metaphorically think of a slim individual wearing loose oversized clothes!</p><p>When a model gets trained by large data, it starts covering more data points than is required, and in this process, it starts integrating noise and inaccurate values as well</p><p>The overfitted model has high variance and low bias. Supervised learning algorithms suffer from overfitting all the time.</p><p>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*ZpXg2EttMSTeFWFFJUU29w.png" /><figcaption>By Chabacano — Own work, CC BY-SA 4.0, <a href="https://commons.wikimedia.org/w/index.php?curid=3610704">https://commons.wikimedia.org/w/index.php?curid=3610704</a></figcaption></figure><p><strong>What causes Overfitting:</strong></p><p>Below are some of the reasons mentioned that cause overfitting</p><p>#1 High Variance in the ML Model</p><p>#2 High Complexity of the model</p><p>#3 Using unclean and unstructured data</p><p>#4 Inadequate training dataset</p><p><strong>How to rectify Overfitting</strong></p><p>#1 Train the model with adequate data</p><p>#2 Implement Regularization Techniques</p><p>#3 Apply K Fold cross-validation</p><p>#4 Removing features</p><p>#5 Ensembling Techniques</p><h3><strong>Underfitting:</strong></h3><p>Underfitting is a phenomenon that happens when the ML model is not able to identify the trends of the data</p><p>Metaphorically, think of a healthy individual trying to fit in an undersized dress.</p><p>The model is unable to learn from the training data to make reliable and accurate predictions. It happens due to high bias and low variance</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*kLaAnNROHXtNv5l4EUnOpg.png" /><figcaption>By AAStein — Own work, CC BY-SA 4.0, <a href="https://commons.wikimedia.org/w/index.php?curid=112896907">https://commons.wikimedia.org/w/index.php?curid=112896907</a></figcaption></figure><p><strong>What causes Underfitting:</strong></p><p># High Bias and Low variance in the dataset</p><p># 2 Simplistic model used for prediction</p><p>#3 Unclean data used for making predictions</p><p>#4 Inadequate size of the training dataset</p><p><strong>How to rectify Underfitting</strong></p><p>#1 Make the model more complex</p><p>#2 Increase the features and duration of the training data set</p><p>#3 Eliminate noise from the dataset</p><h3><strong>Good Fit:</strong></h3><p>The ideal situation is when the predicted values match with the actual values in the dataset and record no errors. However, in real life, this is impossible to achieve. The optimal solution is to find a middle path that helps to obtain the desired output.</p><p>By continuously training the model, errors in the training dataset reduce over time. The same thing happens with the test dataset. If you continue testing the training dataset, it will eventually start capturing the noise as well and lead to overfitting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*liavuIq9CUMKkS4ZluDwoQ.png" /><figcaption>By AAStein — Own work, CC BY-SA 4.0, <a href="https://commons.wikimedia.org/w/index.php?curid=113123580">https://commons.wikimedia.org/w/index.php?curid=113123580</a></figcaption></figure><p>We need to be vigilant and observe the pivotal point where the errors start increasing. At this moment we need to halt the training. This trained model is assumed to be a good fit and can make valid predictions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1756c36f49f7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codex/what-is-bias-and-variance-in-machine-learning-1756c36f49f7">What is Bias and Variance in Machine Learning?</a> was originally published in <a href="https://medium.com/codex">CodeX</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Linear Regression explained in a simple way- With Code]]></title>
            <link>https://medium.com/@varun.sja/linear-regression-explained-in-a-simple-way-with-code-fba492a56b1b?source=rss-1448d7661cec------2</link>
            <guid isPermaLink="false">https://medium.com/p/fba492a56b1b</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[linear-regression]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Varun Sakhuja]]></dc:creator>
            <pubDate>Mon, 04 Apr 2022 13:10:13 GMT</pubDate>
            <atom:updated>2022-04-04T13:10:13.797Z</atom:updated>
            <content:encoded><![CDATA[<p>Learn about Linear Regression</p><h3><strong>What is Linear Regression?</strong></h3><p>Linear Regression is a simple supervised Machine Learning model that is used to predict the value of a variable based on another variable and also for forecasting. Linear Regression is best used when trying to find a relationship between two continuous variables.</p><p>Linear Regression tries to fit a straight line where the distance between the actual and predicted value is minimal.</p><p>Here is the mathematical formula for Linear Regression</p><pre>y= a0+a1x+ ε</pre><p>y= Dependent Variable</p><p>x=Independent Variable</p><p>a0= Line Intercept</p><p>a1= Linear Regression Coefficient</p><p>ε= Random Error</p><p>Types of Linear Regression</p><p><strong>#1 Simple Linear Regression:</strong></p><p>When a single independent variable is used in the prediction of a dependent variable, it is referred to as Simple Linear Regression</p><p><strong>#2 Multiple Linear Regression:</strong></p><p>When there are multiple independent variables used in the prediction of the dependent variable, it is referred to as Multiple Linear Regression</p><p><strong>Benefits of Linear Regression</strong></p><p><strong>#1Simplicity:</strong></p><p>Linear Regression is used widely owing to its simplicity in predicting outcomes. Also, the algorithm is very simple and can be trained with relative ease even on low computational power when compared to other complex algorithms.</p><p><strong>#2Regularization can reduce overfitting:</strong></p><p>Overfitting is a very common problem in Machine Learning Models. Overfitting occurs when the model is too complex for your dataset. It starts capturing the noisy data and wrong values, which results in reduced accuracy and efficiency of the ML model.</p><p>Regularization refers to a technique to reduce errors by tweaking the Machine Learning models to avoid overfitting.</p><p><strong>#3 Works well on Linearly Separable Datasets</strong>:</p><p>Linear Regression gives accurate results when used to find the relation between linear separable variables.</p><p><strong>Disadvantages of Linear Regression:</strong></p><p><strong>#1 Outliers:</strong></p><p>Outliers in a dataset are referred to the values which deviate from the other data points which normally fit in and around the Linear Regression line. Having too many outliers can undermine the accuracy of the model</p><p><strong>#2 Assumes Data is independent</strong>:</p><p>Quite often the inputs are not independent of each other and hence multicollinearity must be removed before proceeding further.</p><p><strong>Assumptions of Data used for Linear Regression</strong></p><p>#1 The variables must be continuous in nature. Here are some of the examples of Continuous Variables: temperature, height, weight, sales, profit</p><p>#2 The variable should be independent of each other</p><p>#3 There should not be outliers in the prediction</p><p>#4 the residual errors should be in line with the normal distribution</p><p><strong>Linear Regression Usage</strong></p><p>Here below are some of the areas where Linear Regression models can help companies to increase sales, increase prices and determine the risk associated with sanctioning loans</p><p><strong>#1 Estimating Sales Figures</strong>:</p><p>Linear Regression comes in handy when it comes to forecasting future sales figures.</p><p>If the company sales have been continuously increasing, by deploying an LR model, companies can create a trend line to forecast the sales in the coming months.</p><p><strong>#2 Impact of Price Hikes on sales figures:</strong></p><p>If the company frequently changes the price of its products, it can monitor the sales figure at each price point to come up with a Linear Regression model, to determine the relationship between the price and sales figure.</p><p>The end result would be a straight line that will demonstrate how much the sales will dip with each incremental price rise. The analysis can help companies to determine the price at which they can maximize sales and profit levels.</p><p><strong>#3 Risk Assessment</strong></p><p>Banks can deploy Linear regression models for loan applicants against their credit scores and analyze the customers with lower credit scores are less likely to default on loan repayments.</p><p>These are of course some of the ways which can help companies to make use of Linear Regression to become more efficient.</p><p>Import the necessary libraries</p><p>First of all, import libraries like pandas, NumPy, matplotlib for reading and computational work</p><pre>import pandas as pd<br>import numpy as np<br>import matplotlib.pyplot as plt<br>%matplotlib inline</pre><p>Load the data</p><pre>data=  pd.read_csv(r&quot;C:\Users\Varun Sakhuja\Desktop\AS+Veue\Data Science\Data\fish.csv&quot;)</pre><p>Check the first 5 rows of the loaded dataset</p><pre>data.head()</pre><figure><img alt="First 5 rows of the Fish Dataset" src="https://cdn-images-1.medium.com/max/633/1*Ee0Yj92pZZpI8SwWuLfdaw.png" /></figure><p>Plot the data to get a scatterplot</p><pre>data.plot(x=&#39;Weight&#39;, y=&#39;Height&#39;, style=&#39;o&#39;)<br>plt.title(&#39;Weight  vs Height&#39;)<br>plt.xlabel(&#39;Weight&#39;)<br>plt.ylabel(&#39;Height&#39;)<br>plt.show()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/598/1*FobFw2AAAUPxMSy4_eWkkw.png" /></figure><p>Split the data into training and testing sets</p><pre>from sklearn.model_selection import train_test_split<br>X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=0)</pre><p>Import the Linear Regression Model from the Sci Kit library and fit the sample</p><pre>from sklearn.linear_model import LinearRegression<br>regressor = LinearRegression()<br>regressor.fit(X_train, y_train)</pre><p>Predict the intercept value</p><pre>print(regressor.intercept_)</pre><p><strong>The value comes out to be: -0.8085206162103802</strong></p><p>Predict the coefficient value</p><pre>print(regressor.coef_)<br></pre><p><strong>The value comes out to be: [ 0.00294752 -1.64445451 0.25122348 1.44820958]</strong></p><p>Make Predictions on Test data</p><pre>y_pred = regressor.predict(X_test)<br>df = pd.DataFrame({&#39;Actual&#39;: y_test, &#39;Predicted&#39;: y_pred})<br>df</pre><p>Obtain the Mean Absolute Error, Mean Squared Error, and Root Mean Squared Error</p><pre>from sklearn import metrics<br>print(&#39;Mean Absolute Error:&#39;, metrics.mean_absolute_error(y_test, y_pred))<br>print(&#39;Mean Squared Error:&#39;, metrics.mean_squared_error(y_test, y_pred))<br>print(&#39;Root Mean Squared Error:&#39;, np.sqrt(metrics.mean_squared_error(y_test, y_pred)))</pre><p>Here are the values below:</p><p><strong>Mean Absolute Error: 0.6190786777496451<br>Mean Squared Error: 0.7768749299321965<br>Root Mean Squared Error: 0.8814050884424236</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fba492a56b1b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>