<?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 Rafael Duarte on Medium]]></title>
        <description><![CDATA[Stories by Rafael Duarte on Medium]]></description>
        <link>https://medium.com/@rafaelnduarte?source=rss-95e660a7ce9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*VZtpHexz9Wwwck_gmvs5yw.jpeg</url>
            <title>Stories by Rafael Duarte on Medium</title>
            <link>https://medium.com/@rafaelnduarte?source=rss-95e660a7ce9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 23:44:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rafaelnduarte/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[Don't Turn Left]]></title>
            <link>https://medium.com/@rafaelnduarte/dont-turn-left-c0aaf6980c2e?source=rss-95e660a7ce9------2</link>
            <guid isPermaLink="false">https://medium.com/p/c0aaf6980c2e</guid>
            <category><![CDATA[optmization]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[operations-research]]></category>
            <category><![CDATA[logistics]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Rafael Duarte]]></dc:creator>
            <pubDate>Tue, 12 Dec 2023 17:39:34 GMT</pubDate>
            <atom:updated>2023-12-12T17:39:34.848Z</atom:updated>
            <content:encoded><![CDATA[<p>How UPS saves money and time by avoiding left turns</p><p><strong>UPS</strong> has adopted an unusual strategy to optimize its deliveries: <strong>minimizing left turns.</strong></p><p>This practice, implemented for decades, not only saves millions of liters of fuel annually but also reduces emissions equivalent to over 20,000 passenger cars.</p><p>Let’s explore the reasons behind this tactic, its impact on UPS operations, and how it is managed through advanced software.</p><h3>Why Avoid Left Turns?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*85zgY93-gO-wgkE6" /><figcaption>Photo by <a href="https://unsplash.com/@kaip?utm_source=medium&amp;utm_medium=referral">Kai Pilger</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>UPS’s avoidance of left turns is grounded in <strong>safety</strong> and <strong>efficiency</strong> reasons. Left turns on right-hand driving roads, such as in the USA, are considered unsafe and inefficient.</p><p>Tom Vanderbilt, author of “T<strong>raffic: Why we drive the way we do</strong>”, points out that left-turning traffic often needs to cross the flow of vehicles, increasing the risk of accidents and congestion.</p><p>An analysis by the <strong>National Highway Traffic Safety Administration</strong> in the USA reveals that 22.2% of accidents occur during left turns, compared to only 1.2% during right turns.</p><p>Additionally, 61% of intersection-related accidents involve left turns, making them prone to unavoidable collision situations.</p><h3>Efficiency and Sustainability</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HpKLRhDV6bFCaeFU" /><figcaption>Photo by <a href="https://unsplash.com/@sippakorn?utm_source=medium&amp;utm_medium=referral">sippakorn yamkasikorn</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Apart from safety risks, left turns are also less fuel-efficient. Jack Levis, Senior Director of Process Management at UPS, emphasizes that by avoiding left turns, UPS vehicles spend less idle time, resulting in greater fuel efficiency.</p><p><strong>UPS does not outright prohibit left turns</strong> but adopts an analytical approach. Analysis tools assess the necessity of each left turn on a route, allowing for the elimination of unnecessary turns.</p><p>This is done through advanced software, such as <strong>Orion</strong>, launched in 2008, which calculates the most efficient routes for each truck, considering the minimization of left turns.</p><h3>The Role of Software in the Strategy</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*L-j_0kMVtY0OSS-S" /><figcaption>Photo by <a href="https://unsplash.com/@ffstop?utm_source=medium&amp;utm_medium=referral">Fotis Fotopoulos</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>UPS’s software, like Orion, is crucial for implementing and managing the strategy of avoiding left turns.<strong> It analyzes 250 million address points daily and performs 30,000 route optimizations per minute.</strong></p><p>This approach annually saves the company<strong> between $300 and $400 million </strong>in fuel, wages, and operational costs.</p><h3>Challenges and Perceptions</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sVvBrneSp7ZolIeO" /><figcaption>Photo by <a href="https://unsplash.com/@bamagal?utm_source=medium&amp;utm_medium=referral">&quot;My Life Through A Lens&quot;</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Despite the evident benefits, <strong>some UPS drivers initially resisted the new strategy, claiming that the routes seemed longer.</strong></p><p>However, subsequent checks proved that <strong>the overall system efficiency increased, significantly saving on miles traveled.</strong></p><p>Wayne Gerdes, holder of world records in efficient driving, suggests that UPS’s strategy works well for <strong>predefined deliveries</strong> but may not be as applicable for common daily routines.</p><p>He encourages drivers to explore alternative routes while maintaining a mindset of constant optimization.</p><h3>Is It Worth It?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vJFDl9HTqSqOb5Vr" /><figcaption>Photo by <a href="https://unsplash.com/@micheile?utm_source=medium&amp;utm_medium=referral">micheile henderson</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>UPS’s strategy of avoiding left turns is <strong>a notable example of how innovation in logistics operations can result in significant savings.</strong></p><p>Besides reducing accident risks, the approach aligns with the pursuit of efficiency and sustainability.</p><p>The role of software, such as Orion, in the effective management of this strategy highlights the importance of technology in optimizing large-scale logistics processes.</p><p>As UPS continues to refine its operations, this practice offers valuable insights into how small changes can have a major impact on efficiency and sustainability.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c0aaf6980c2e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unraveling Marketing Mix Modeling: Data-Based Strategies for Success]]></title>
            <link>https://medium.datadriveninvestor.com/unraveling-marketing-mix-modeling-data-based-strategies-for-success-e76911855478?source=rss-95e660a7ce9------2</link>
            <guid isPermaLink="false">https://medium.com/p/e76911855478</guid>
            <category><![CDATA[marketing-mix-modeling]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[marketing]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[sales]]></category>
            <dc:creator><![CDATA[Rafael Duarte]]></dc:creator>
            <pubDate>Tue, 05 Dec 2023 21:10:34 GMT</pubDate>
            <atom:updated>2023-12-06T11:12:04.371Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ct7Q4MHYFRMFEEI4" /><figcaption>Photo by <a href="https://unsplash.com/@hostreviews?utm_source=medium&amp;utm_medium=referral">Stephen Phillips - Hostreviews.co.uk</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong>Marketing Mix Modeling</strong> (MMM) has emerged as a crucial tool for companies seeking to enhance their marketing strategies and <strong>optimize return on investment.</strong></p><p>Let dive deep into the concept, benefits, implementation, and challenges associated with Marketing Mix Modeling.</p><h3>Introduction to Marketing Mix Modeling</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qqAGwxi2vtGkj641" /><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><strong>Marketing Mix Modeling</strong> is an analytical approach that utilizes <strong>historical data</strong> to quantify the impact of different marketing variables on a company’s sales and financial results.</p><p>The marketing mix variables typically include <strong>price</strong>, <strong>advertising</strong>, <strong>promotions</strong>, <strong>distribution</strong>, among others.</p><h3>Benefits of Marketing Mix Modeling</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*onR-q3vxDALEhgTl" /><figcaption>Photo by <a href="https://unsplash.com/@sharonmccutcheon?utm_source=medium&amp;utm_medium=referral">Alexander Grey</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>Informed Decision-Making</h4><p>MMM provides valuable insights into how different marketing variables affect financial performance, enabling more informed and strategic decision-making.</p><h4>Budget Optimization</h4><p>By understanding the relative impact of each marketing mix component, companies can <strong>optimize their budgets</strong>, allocating resources more efficiently to maximize return on investment.</p><h4>Campaign Performance Evaluation</h4><p>MMM allows for a more precise assessment of specific campaign performance, identifying which strategies are most effective in driving sales and revenue.</p><h3>Key Components of Marketing Mix Modeling</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BXmjduE8q84-81Qu" /><figcaption>Photo by <a href="https://unsplash.com/@ryoji__iwata?utm_source=medium&amp;utm_medium=referral">Ryoji Iwata</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>Independent Variables</h4><p>It&#39;s important to have the right data about key aspects of the business. With historical data on the components that affect the final result, we can use statistical analysis to optimize our results. These include:</p><p><strong>Price</strong>: Evaluates how changes in prices affect sales.<br><strong>Advertising:</strong> Measures the impact of advertising activities on sales.<br><strong>Promotions</strong>: Analyzes the effect of promotions and discounts on sales.<br><strong>Distribution:</strong> Evaluates how product availability influences sales.</p><h4>Dependent Variable</h4><p>Our dependent variable, which can also be called the target variable:<br><strong>Sales or Revenue:</strong> It is the primary measure that the model seeks to explain and predict.</p><h4>Other Control Variables</h4><p>These can include other factors that may influence the final result:<br><strong>Economic Factors:</strong> May include interest rates, overall economic conditions, among others.<br><strong>Seasonality: </strong>Considers seasonal patterns that may affect sales.</p><h3>Practical Implementation of Marketing Mix Modeling</h3><h4>Data Collection</h4><p>Of course, in order to have data, we have to collect data. In general, this data has been generated over the years by the company, and outside data can be scraped from the web.<br><strong>Historical Data:</strong> Gather sales and marketing-related data over time.<br><strong>External Data:</strong> Consider external factors, such as economic data, for a more comprehensive analysis.</p><h4>Model Construction:</h4><p>Once we have the right data, we can start working on it.<br><strong>Statistical Model Selection:</strong> There are plenty of advanced Time Series Models that can help us with this task, such as Facebook&#39;s Prophet, for example.<br><strong>Variable Selection:</strong> Choose the most relevant and significant variables to include in the model. Here, we can also go through Feature Engineering, in order to find new variables within the data we already have.</p><h3>Model Validation:</h3><p><strong>Testing and Adjustment:</strong> Validate the model using data not used during construction to ensure its robustness.<br><strong>Necessary Adjustments:</strong> Make adjustments to the model as needed to improve the accuracy of predictions.</p><h3>Challenges Associated with Marketing Mix Modeling</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*O1vbpchBoROrYJwZ" /><figcaption>Photo by <a href="https://unsplash.com/@tateisimikito?utm_source=medium&amp;utm_medium=referral">Jukan Tateisi</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>Data Complexity</h4><p>Marketing data can be complex and unstructured, requiring meticulous cleaning and preparation.</p><h4>Causation and Effect Attribution</h4><p>Assigning causes and effects to variables can be challenging, especially when multiple factors are interconnected.</p><h4>Market Changes</h4><p>Sudden market changes can affect the accuracy of the model, requiring frequent adjustments.</p><h3>Marketing Mix Modeling in Practice</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8rFz0lAy1m5IHAaz" /><figcaption>Photo by <a href="https://unsplash.com/@austindistel?utm_source=medium&amp;utm_medium=referral">Austin Distel</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong>Marketing Mix Modeling</strong> is an essential tool for companies looking to <strong>enhance their marketing strategies</strong> and allocate resources more efficiently.</p><p>By understanding how different variables impact sales, companies can make more informed decisions and maximize return on investment.</p><p>Although challenges exist, <strong>Marketing Mix Modelling remains a fundamental piece in the puzzle of modern marketing.</strong></p><p>Move forward with <strong>data</strong>, <strong>experiment</strong>, and <strong>refine</strong> your strategies for lasting success.</p><p>Subscribe to DDIntel <a href="https://www.ddintel.com/">Here</a>.</p><p>Have a unique story to share? Submit to DDIntel <a href="https://datadriveninvestor.com/ddintelsubmission">here</a>.</p><p>Join our creator ecosystem <a href="https://join.datadriveninvestor.com/">here</a>.</p><p><a href="https://ddintel.datadriveninvestor.com/"><em>DDIntel</em> </a>captures the more notable pieces from our <a href="https://www.datadriveninvestor.com/"><em>main site</em></a> and our popular <a href="https://medium.datadriveninvestor.com/"><em>DDI Medium publication</em></a>. Check us out for more insightful work from our community.</p><p>DDI Official Telegram Channel: <a href="https://t.me/+tafUp6ecEys4YjQ1">https://t.me/+tafUp6ecEys4YjQ1</a></p><p>Follow us on <a href="https://www.linkedin.com/company/data-driven-investor"><em>LinkedIn</em></a>, <a href="https://twitter.com/@DDInvestorHQ"><em>Twitter</em></a>, <a href="https://www.youtube.com/c/datadriveninvestor"><em>YouTube</em></a>, and <a href="https://www.facebook.com/datadriveninvestor"><em>Facebook</em></a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e76911855478" width="1" height="1" alt=""><hr><p><a href="https://medium.datadriveninvestor.com/unraveling-marketing-mix-modeling-data-based-strategies-for-success-e76911855478">Unraveling Marketing Mix Modeling: Data-Based Strategies for Success</a> was originally published in <a href="https://medium.datadriveninvestor.com/">DataDrivenInvestor</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Vivino: Hero of The People or Villain of The Wine World?]]></title>
            <link>https://medium.com/@rafaelnduarte/vivino-personal-wine-selection-experience-driven-by-big-data-and-artificial-intelligence-ae11bd0d9215?source=rss-95e660a7ce9------2</link>
            <guid isPermaLink="false">https://medium.com/p/ae11bd0d9215</guid>
            <category><![CDATA[wine]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[wine-industry]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Rafael Duarte]]></dc:creator>
            <pubDate>Thu, 30 Nov 2023 17:37:06 GMT</pubDate>
            <atom:updated>2023-11-30T17:43:01.167Z</atom:updated>
            <content:encoded><![CDATA[<p>We all know Vivino isn&#39;t perfect. But does that mean it&#39;s bad?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*4KSy-X2ro-mu5T378widkQ.png" /><figcaption>Credits: Vivino</figcaption></figure><p>Ever wished you had a personal sommelier to assist in choosing the perfect wine? <a href="https://www.vivino.com/"><strong>Vivino</strong></a>, the <strong>world’s largest online wine platform</strong>, fulfills this desire by utilizing <strong>big data and artificial intelligence </strong>to guide its 51 million users in the quest for the ideal wine.</p><p>Let’s take at look at how Vivino has transformed the wine purchasing experience, empowering consumers with information and eliminating (?) the mystery that often surrounds the world of wines.</p><h3>Demystifying Wine Shelves</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*c4acWC4XpQMyDW8T" /><figcaption>Photo by <a href="https://unsplash.com/@hermez777?utm_source=medium&amp;utm_medium=referral">Hermes Rivera</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>For most people, choosing a wine can be <strong>challenging</strong> given the vast array of options in the market. <a href="https://www.linkedin.com/in/heini/"><strong>Heini Zachariassen</strong></a>, founder and CEO of Vivino, created the app with the aim of empowering people by providing knowledge for more informed decision-making.</p><p><strong>By photographing a wine bottle, users can access collaborative reviews, check prices, and even place orders through their mobile phones.</strong></p><p>The proposition is to <strong>simplify the choice experience</strong>, even when analyzing wine lists in restaurants.</p><h3>The Importance of Data for Vivino</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qgUoYxgMuCLfjd_H" /><figcaption>Photo by <a href="https://unsplash.com/@sortino?utm_source=medium&amp;utm_medium=referral">Joshua Sortino</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Vivino bases its wine purchasing experience on community data, with 20,000 new users downloading the app daily.</p><p>Heini emphasizes that <strong>the quantity and quality of data are crucial to the business’s success</strong>. With<strong> 1.5 billion images of wine labels, 200 million reviews, and 10 million wines in the database</strong>, the company has a unique advantage.</p><p>Heini emphasizes:</p><blockquote>“The big differentiator for us is that we<strong> know all these wines</strong>. We have 1.5 billion photos of wine labels, 200 million reviews, and 10 million wines in the database. Data is the key to our business, and no other company can compete with us because we have this information and 50 million users helping us maintain it.”</blockquote><h3>Personalized Pairings for Every Wine Lover</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-FeEhPWDxlaU6U8E" /><figcaption>Photo by <a href="https://unsplash.com/@jaywennington?utm_source=medium&amp;utm_medium=referral">Jay Wennington</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Recently, Vivino incorporated <strong>artificial intelligence</strong> into all the review and profile data to create algorithms that<strong> generate a personalized matching index for each user and each wine.</strong></p><p>After evaluating at least five wines, each wine in the database receives a unique “matching index” for the user, indicating whether there is a high, medium, or low likelihood of liking it.</p><p>These indices are <strong>personalized</strong>, recognizing that<strong> a 5-star wine for someone else may not be an ideal choice for you.</strong></p><p>Heini comments on the surprising accuracy of AI:</p><blockquote>“Even I am surprised at how accurate it is. The app knows things about me that I didn’t even realize. For example, I love champagne. Some champagnes are based on Pinot Noir, and others on Chardonnay. The Vivino algorithm recognized that the champagnes I didn’t like were all based on Chardonnay. I had no idea.”</blockquote><h3>The Data Connecting the User to the Winery</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*unuqfOPlZPWPKGYr" /><figcaption>Photo by <a href="https://unsplash.com/@kelsoknight?utm_source=medium&amp;utm_medium=referral">Kelsey Knight</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Heini believes that the wine industry can leverage the robust data collected by Vivino and other wine tech companies.</p><p><strong>The continuous use of machine learning and artificial intelligence, he says, will continue to push the industry’s boundaries in the future.</strong></p><h3>The Good, The Bad and The Ugly</h3><p>Even though it’s a great tool for wine beginners and advanced tasters as well, Vivino has <strong>flaws</strong>, that mitigate its status among specialists.</p><p>The overly simplified scoring system can be misleading. Every wine scoring very scale has its problems, but when it comes to Vivino, it accounts expert and beginners evaluations equally.</p><p>Equality is good, right? But how relevant is the score of a first-timer, or casual drinker? Should it be worth the same as a score given by a <a href="https://www.mastersofwine.org/"><strong>Master of Wine</strong></a>?</p><p>That means a 3 dollar bottle of wine might get a <strong>perfect score</strong> from a novice, while this same taster might give a bottle of <strong>Romanée-Conti</strong> a score of 3 stars.</p><p>On top of that, scores become the<strong> main selling point of wines</strong>. It doesn&#39;t matter if it’s an amazing <strong>family-owned winery making incredible wines with their own estate fruit</strong>.</p><p><strong>If it’s under 4 stars on Vivino, people might not give it a chance.</strong></p><h3>So, Should You Use It?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N_9Qxs9tt8d-ighzoJK6jg.jpeg" /><figcaption>Photo by Getty Images</figcaption></figure><p>Vivino embodies the revolution in wine selection, providing consumers with a <strong>more informed and personalized journey.</strong></p><p>By integrating <strong>big data and artificial intelligence</strong> into wine appreciation, Vivino not only simplifies the process but also enhances the experience, connecting users to wines that truly match their preferences.</p><p><strong>This is a compelling example of how technology can enrich the appreciation of something as cultural and subjective as choosing a good wine.</strong></p><p>As a wine enthusiast, <strong>I don’t think Vivino is perfect, nor should it be your primary reference when buying wine.</strong></p><p>However, as a Data Scientist, it’s<strong> extremly exciting to see Machine Learning helping people navigate the wine world.</strong></p><p>So, should you use it?<strong> It’s up to you to decide!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ae11bd0d9215" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Evaluate Regression Models]]></title>
            <link>https://medium.com/@rafaelnduarte/how-to-evaluate-regression-models-168ab57fa88d?source=rss-95e660a7ce9------2</link>
            <guid isPermaLink="false">https://medium.com/p/168ab57fa88d</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[regression-modeling]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[evaluation-metric]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Rafael Duarte]]></dc:creator>
            <pubDate>Mon, 20 Nov 2023 22:17:22 GMT</pubDate>
            <atom:updated>2023-11-20T22:17:22.887Z</atom:updated>
            <content:encoded><![CDATA[<h4>Understand the main metrics to optimize your models and improve your results.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8PHBwpOR7i2EZRsC" /><figcaption>Photo by <a href="https://unsplash.com/@craftedbygc?utm_source=medium&amp;utm_medium=referral">Unseen Studio</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The evaluation of regression models in <strong>Machine</strong> <strong>Learning</strong> is a crucial step to determine how well the model fits the data and how well it can make predictions on new data.</p><p>There are several evaluation metrics available to measure the performance of regression models.</p><p>Here, you will get to know some of the most common metrics, including <strong>Mean Absolute Error (MAE)</strong>, <strong>Mean Squared Error (MSE)</strong>, <strong>Root Mean Squared Error (RMSE)</strong>, and <strong>Coefficient of Determination (R²)</strong>.</p><p>Let’s explain each of these metrics and how to calculate them.</p><h4>Mean Absolute Error (MAE)</h4><p><strong>Mean Absolute Error</strong>, or <strong>MAE</strong>, is a simple metric that measures the <strong>average of the absolute differences between the model’s predictions and the actual values</strong>.</p><p>The formula to calculate <strong>MAE</strong> is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/384/1*KmHCTNMNV57wv4oxST_P1Q.png" /></figure><p>Where:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/359/1*5o3qQplD3LYvGHGB9rgYeg.png" /></figure><p><strong>MAE</strong> is <strong>easy to understand</strong> as it represents the average errors of the model in units of the target variable.</p><h4>Mean Squared Error (MSE)</h4><p><strong>Mean Squared Error,</strong> or <strong>MSE</strong>, is another common metric that measures the <strong>average of the squares of the differences between the model’s predictions and the actual values.</strong></p><p>The formula to calculate <strong>MSE</strong> is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/380/1*rJypwOV_MvXkLAIoxaE5Fw.png" /></figure><p>Where:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/354/1*pdJeFpMn_nKGoq72cu6hyA.png" /></figure><p>It is important to note that <strong>MSE should be used with caution </strong>as it assigns greater weight to larger errors, making it <strong>sensitive to outliers</strong>.</p><h4>Root Mean Squared Error (RMSE)</h4><p><strong>RMSE</strong> is a variation of <strong>MSE</strong> that returns <strong>the square root of the average of the squares of the differences between the model’s predictions and the actual values.</strong></p><p>The formula to calculate <strong>RMSE</strong> is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/449/1*sp42GAgO5qrTdK8cwE96Sw.png" /></figure><p><strong>RMSE</strong> has the advantage of returning a metric in <strong>the same unit as the target variable</strong>, making it more interpretable than <strong>MSE</strong>.</p><h4>Coefficient of Determination (R²)</h4><p>The <strong>Coefficient of Determination</strong>, or <strong>R²</strong>, is a metric that <strong>quantifies the proportion of variance in the target variable explained by the model</strong>.</p><p>It ranges <strong>from 0 to 1</strong> and is calculated by the formula:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/383/1*yNXALqc8foMXpzU40rcO-Q.png" /></figure><p>Where:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/461/1*J5s9sqRox1vTIfmhZ56HEQ.png" /></figure><p>A value of R² close to 1 indicates that the model explains a large part of the variability in the data, while a value close to 0 indicates that the model is not explaining much.</p><p>In other words, <strong>the closer to 1, the better the model’s performance.</strong></p><h4>Choosing the Right Metric</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4gTv4pOmyBVhnK0C" /><figcaption>Photo by <a href="https://unsplash.com/@jontyson?utm_source=medium&amp;utm_medium=referral">Jon Tyson</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The choice of the metric <strong>depends on the specific problem and project requirements.</strong></p><p><strong>MAE is a solid choice when absolute errors are more easily interpretable</strong>, while <strong>MSE</strong> and <strong>RMSE</strong> may be more appropriate <strong>when larger errors need to be penalized.</strong></p><p>On the other hand,<strong> R² is useful for understanding the variance explained by the model.</strong></p><p>Evaluation metrics in regression models play a fundamental role in measuring the model’s performance and in choosing the final model.</p><p>It is important to understand the nuances of each metric and choose the one that best suits the objectives of your project.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=168ab57fa88d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Feature Selection and Feature Engineering: Building Machine Learning Models with Quality Data]]></title>
            <link>https://medium.com/@rafaelnduarte/feature-selection-and-feature-engineering-building-machine-learning-models-with-quality-data-c83403d1a593?source=rss-95e660a7ce9------2</link>
            <guid isPermaLink="false">https://medium.com/p/c83403d1a593</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-analytics]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-cleaning]]></category>
            <dc:creator><![CDATA[Rafael Duarte]]></dc:creator>
            <pubDate>Wed, 08 Nov 2023 15:25:46 GMT</pubDate>
            <atom:updated>2023-11-08T15:25:46.476Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uDXK96Y5_mctCnzh" /><figcaption>Photo by <a href="https://unsplash.com/@sigmund?utm_source=medium&amp;utm_medium=referral">Sigmund</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The book “<a href="https://www.oreilly.com/library/view/hands-on-machine-learning/9781098125967/">Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow</a>” in its 3rd edition is an excellent source of knowledge for those looking to delve into the world of <strong>Machine Learning.</strong></p><p>One of the essential lessons the book teaches us is the “<strong>Garbage In, Garbage Out</strong>” (GIGO) principle, which <strong>emphasizes the importance of high-quality data</strong> in building effective Machine Learning models.</p><h3>Quality Data: The Foundation of Success</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0DKsCoVlL31ngzZE" /><figcaption>Photo by <a href="https://unsplash.com/@splashabout?utm_source=medium&amp;utm_medium=referral">Nareeta Martin</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The “<strong>Garbage In, Garbage Ou</strong>t” principle highlights that the quality of the results of a Machine Learning model is directly proportional to the quality of the data used to train it.</p><blockquote>This means that even the most advanced ML algorithms cannot compensate for bad data.</blockquote><p>Therefore, <strong>the critical first step in any ML project is to ensure that your data is of high quality.</strong></p><h3>Data Cleaning</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ukg4qo9jlzOYtLuT" /><figcaption>Photo by <a href="https://unsplash.com/@uniqueton?utm_source=medium&amp;utm_medium=referral">Anton</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Of course, the first step is checking for <strong>data</strong> <strong>integrity</strong>. Are the data types correct? Do they make sense?</p><p>Is there any missing data? Infinite values, duplicate rows or columns, outliers, all of these will impact the quality of your data.</p><p>Make sure you take the time to understand, clean and prepare your data for the next steps.</p><h3>Feature Selection</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*lZeBEIk_Q0-aQOD_" /><figcaption>Photo by <a href="https://unsplash.com/@victoriano?utm_source=medium&amp;utm_medium=referral">Victoriano Izquierdo</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In many datasets, there are features that are <strong>irrelevant</strong> or even <strong>detrimental</strong> to the model’s performance.</p><p><strong>Feature selection</strong> is the process of <strong>identifying and keeping only the most informative and relevant features</strong> for the problem at hand.</p><p>This helps reduce noise in the data and improve model efficiency.</p><p>For example, imagine you are building a house price prediction model.</p><p>If the dataset includes irrelevant features, such as the number of births in the city, feature selection can help identify and remove these worthless features, thereby improving the model’s accuracy.</p><h3>Feature Engineering</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cC8OU0igioiV7oOc" /><figcaption>Photo by <a href="https://unsplash.com/@thisisengineering?utm_source=medium&amp;utm_medium=referral">ThisisEngineering RAEng</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Feature engineering involves <strong>creating new features from existing ones to make the data more informative and useful for the model.</strong></p><p>This can include feature combination, extraction of specific information, or transforming features to make them more suitable for the model.</p><p>Suppose you are working on an email classification project as spam or not spam.</p><p>Instead of using the raw text of emails as features, <strong>feature engineering </strong>might involve extracting information like the <strong>count of specific keywords</strong>, <strong>sentiment analysis</strong>, or <strong>attachment detection</strong>, making the features more relevant to the classification problem.</p><h3>Applying it to Real-World Machine Learning Projects</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1R8TbsK1HVdyx-un" /><figcaption>Photo by <a href="https://unsplash.com/@ivanchenao?utm_source=medium&amp;utm_medium=referral">Ivan Henao</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>If you&#39;ve ever read “<a href="https://www.oreilly.com/library/view/hands-on-machine-learning/9781098125967/">Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow</a>” , you can see it reminds us of the fundamental importance of the “<strong>Garbage In, Garbage Out</strong>” principle in Machine Learning.</p><p>To build effective models,<strong> we must start with high-quality data</strong>. Feature selection and feature engineering play a vital role in ensuring that our data is informative, relevant, and suitable for the models we intend to build.</p><p>Therefore, when facing a new ML project, remember that success begins with the preparation and enhancement of your data.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c83403d1a593" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Simplifying Machine Learning with AutoGluon]]></title>
            <link>https://medium.com/@rafaelnduarte/simplifying-machine-learning-with-autogluon-ab21c67fb0a2?source=rss-95e660a7ce9------2</link>
            <guid isPermaLink="false">https://medium.com/p/ab21c67fb0a2</guid>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[auto-machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Rafael Duarte]]></dc:creator>
            <pubDate>Mon, 06 Nov 2023 15:06:50 GMT</pubDate>
            <atom:updated>2023-11-06T15:06:50.579Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/604/1*orFJdfG7MMHGiQOVwbudbA.png" /><figcaption>AutoGluon Logo | AutoGluon</figcaption></figure><p><strong>Machine Learning</strong> is a powerful tool that can be used to solve a variety of complex problems, from stock price prediction to image classification.</p><p>However, often, creating and fine-tuning ML models can be a time-consuming and challenging process.</p><p>This is where <a href="https://auto.gluon.ai/stable/index.html"><strong>AutoGluon</strong></a> comes in, an <strong>automated</strong> <strong>Machine Learning library</strong> that dramatically simplifies the model-building process.</p><p>Let&#39;s explore what <strong>AutoGluon</strong> is and how to use it with a practical example.</p><h4>What Is AutoGluon?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/776/1*98VfJoFyyhpEjRM4Zr7iJw.png" /><figcaption><a href="https://towardsdatascience.com/tabular-prediction-using-auto-machine-learning-autogluon-de2507ecd94f">Tabular Prediction using Auto Machine Learning (AutoGluon) | by Kb Pachauri</a></figcaption></figure><p><a href="https://auto.gluon.ai/stable/index.html"><strong>AutoGluon</strong></a> is an open-source automated Machine Learning library developed by <a href="https://github.com/dmlc"><strong>DMLC</strong></a>, the same organization behind the popular <strong>XGBoost</strong> library.</p><blockquote><strong>The primary goal of AutoGluon is to make Machine Learning more accessible by automating many of the complex tasks involved in model building.</strong></blockquote><p>With <strong>AutoGluon</strong>, you can <strong>automatically</strong> <strong>create</strong>, <strong>train</strong>, and<strong> fine-tune ML models</strong> without worrying about algorithm selection, hyperparameters, data preprocessing, and other intricate tasks.</p><p>It is suitable for both beginners who want to quickly create quality models and experts who want to automate the fine-tuning process.</p><h4>How to Use AutoGluon</h4><p>Let’s take a look at a simple example of using <strong>AutoGluon</strong> to solve an<strong> image classification</strong> problem.</p><p>In this example, we will use the<a href="https://www.kaggle.com/datasets/zalando-research/fashionmnist"> <strong>Fashion MNIST dataset</strong></a>, which contains images of clothing categorized into various classes.</p><p>First, you’ll need to <strong>install</strong> <strong>AutoGluon</strong>:</p><pre>pip install autogluon</pre><p>Here is a basic Python code to train an image classification model using AutoGluon:</p><pre><br>import autogluon as ag<br>from autogluon import ImageClassification as task<br><br># Loading the Fashion MNIST dataset<br>train_data = task.Dataset(name=&#39;FashionMNIST&#39;)<br><br># Creating an image classification task object<br>classifier = task.fit(train_data=train_data,<br> hyperparameters={&#39;epochs&#39;: 10},<br> num_trials=1)<br><br># Loading a sample test image<br>image_path = &#39;sample_image.png&#39;<br><br># Performing classification<br>result = classifier.predict(image_path)<br>print(result)<br></pre><p>In this example, we are training an image classification model on Fashion MNIST with only <strong>10 epochs</strong> to save time.</p><p>However, you can <strong>adjust the hyperparameters</strong> and the number of trials as needed to achieve better performance.</p><p><strong>AutoGluon</strong> will automatically do many things behind the scenes, including <strong>selecting the appropriate model, optimizing hyperparameters, data preprocessing, and more</strong>.</p><p>It is also highly <strong>customizable</strong>, allowing you to <strong>fine-tune</strong> settings according to your specific needs.</p><h4>Should YOU use AutoGluon?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LQoLn90rr1XEekaM" /><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><strong>AutoGluon</strong> is a powerful tool for simplifying Machine Learning and making it accessible to a wide range of users.</p><p>With it, you can <strong>easily create high-quality models, saving time and effort.</strong></p><p>Whether you are new to Machine Learning or want to automate tedious model fine-tuning tasks, AutoGluon is an excellent choice.</p><p>Give AutoGluon a try and accelerate your journey into the world of automated Machine Learning.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ab21c67fb0a2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Class Weight, SMOTE, Random Over, and Under Sampling]]></title>
            <link>https://medium.com/@rafaelnduarte/class-weight-smote-random-over-and-under-sampling-bca603378e02?source=rss-95e660a7ce9------2</link>
            <guid isPermaLink="false">https://medium.com/p/bca603378e02</guid>
            <category><![CDATA[imbalanced-dataset]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[statistics]]></category>
            <dc:creator><![CDATA[Rafael Duarte]]></dc:creator>
            <pubDate>Fri, 03 Nov 2023 20:49:19 GMT</pubDate>
            <atom:updated>2023-11-03T20:49:19.994Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*T8qomq_nOuBPTFTs" /><figcaption>Photo by <a href="https://unsplash.com/@saltsup?utm_source=medium&amp;utm_medium=referral">Piret Ilver</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong>Data balancing</strong> is a critical concern in Machine Learning tasks, especially when dealing with <strong>imbalanced datasets </strong>where one class has many more examples than the other.</p><p>With that in mind, let&#39;s explore four common data balancing strategies: <strong>Class Weight, SMOTE (Synthetic Minority Over-sampling Technique), Random Over Sampling, and Random Under Sampling.</strong></p><p>At the end of this article, you will understand what they are, their advantages, disadvantages, and when to use each of them.</p><h3>Class Weight</h3><p>The Class Weight approach involves assigning different weights to the classes in the dataset. These weights influence the loss function during training, giving higher importance to minority classes.</p><p><strong>Advantages</strong>:<br>- Simplicity: It is easy to implement, especially in libraries like scikit-learn, where you can specify weights for imbalanced classes.<br>- Efficiency: Can be effective when the imbalance is not extreme.</p><p><strong>Disadvantages</strong>:<br>- Limited to Linear Algorithms: May not work well with nonlinear Machine Learning algorithms like decision trees or deep neural networks.<br>- Variable Results: Effectiveness can vary depending on the dataset and model.</p><p><strong>When to Use:</strong><br>- Useful as a starting point for dealing with imbalanced classes.<br>- Recommended when the imbalance is not extreme.</p><h3><strong>SMOTE (Synthetic Minority Over-sampling Technique)</strong></h3><p>SMOTE is a technique that generates synthetic examples of the minority class to balance the dataset. It creates new data points by interpolating between existing examples of the minority class.</p><p><strong>Advantages</strong>:<br>- Generates Synthetic Data: Creates synthetic examples of the minority class, helping to increase the size of that class.<br>- Compatible with Nonlinear Algorithms: Works well with algorithms that do not assume linearity in the data.<br>- Preserves Information: Avoids the loss of information, unlike Random Under Sampling.</p><p><strong>Disadvantages</strong>:<br>- Computational Demands: Can be computationally intensive on large datasets.<br>- Parameter Sensitivity: Effectiveness depends on appropriate parameter choices.</p><p><strong>When to Use:</strong><br>- Recommended when the imbalance is significant.<br>- Useful when generating synthetic data is acceptable.</p><h3>Random Over Sampling</h3><p>The Random Over Sampling technique involves randomly duplicating examples from the minority class in the dataset.</p><p><strong>Advantages</strong>:<br>- Simplicity: It is easy to implement by simply randomly duplicating examples from the minority class.</p><p><strong>Disadvantages</strong>:<br>- Can Cause Overfitting: Excessive duplication of minority class examples can lead to overfitting.<br>- Loss of Information: Can result in the loss of relevant information.</p><p><strong>When to Use</strong>:<br>- Can be a quick and simple option to address imbalance in small datasets.</p><h3>Random Under Sampling</h3><p>The Random Under Sampling technique involves the random reduction of the number of examples from the majority class in the dataset.</p><p><strong>Advantages</strong>:<br>- Can Speed Up Training: Reduces the dataset size, which can speed up training on large datasets.</p><p><strong>Disadvantages</strong>:<br>- Loss of Information: Random removal of majority class examples can result in the loss of valuable information.<br>- Can Worsen Imbalance: If the imbalance is already extreme, random removal of majority class examples can worsen the problem.</p><p><strong>When to Use</strong>:<br>- Useful when the imbalance is not extreme and dataset reduction is acceptable.</p><h3>Using the Correct Technique</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qMaRAyU7h7Oa5aGe" /><figcaption>Photo by <a href="https://unsplash.com/@hautier?utm_source=medium&amp;utm_medium=referral">Christophe Hautier</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The choice of data balancing strategy depends on the <strong>nature of your dataset</strong>, the <strong>algorithm</strong> you are using, and your <strong>computational constraints</strong>.</p><p><strong>There is no one-size-fits-all solution</strong>, and it’s important to <strong>experiment</strong> with different approaches to determine what works best for your specific problem.</p><p><strong>Data balancing</strong> plays a crucial role in building accurate and fair Machine Learning models, especially in scenarios with imbalanced classes.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bca603378e02" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Structuring a Machine Learning Project: From Start to Finish]]></title>
            <link>https://medium.com/@rafaelnduarte/structuring-a-machine-learning-project-from-start-to-finish-49254780ac67?source=rss-95e660a7ce9------2</link>
            <guid isPermaLink="false">https://medium.com/p/49254780ac67</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[deployment]]></category>
            <category><![CDATA[end-to-end-solution]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Rafael Duarte]]></dc:creator>
            <pubDate>Wed, 01 Nov 2023 12:01:45 GMT</pubDate>
            <atom:updated>2023-11-01T12:01:45.626Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*x-50ICQ7E1pKNDWz" /><figcaption>Photo by <a href="https://unsplash.com/@iamr?utm_source=medium&amp;utm_medium=referral">Roman Serdyuk</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The successful implementation of a <strong>Machine Learning</strong> project requires a <strong>structured</strong> and <strong>disciplined</strong> approach.</p><p>Here, we are going to explore eight fundamental steps to structure your Machine Learning project, <strong>from conception to maintenance.</strong></p><h4>1. Understand the Big Picture</h4><p>Before delving into technical details, it is crucial to <strong>understand the nature and objectives of your Machine Learning project</strong>.</p><p>Important questions to answer at this stage include:</p><blockquote>What problem do you want to solve?</blockquote><blockquote>What is the expected impact of your model?</blockquote><blockquote>How does it fit into the overall strategy of the organization?</blockquote><h4>2. Obtain the Data</h4><p>Data is the fuel for any Machine Learning project. You need to collect, acquire, or access relevant data for your problem.</p><p>Ensure that the data is in a <strong>readable</strong> and <strong>structured</strong> format.</p><h4>3. Explore and Visualize the Data</h4><p>Before you start building models, it is crucial to <strong>explore</strong> and <strong>visualize</strong> the data to gain <strong>insights</strong>.</p><p>This involves identifying <strong>trends</strong>, <strong>patterns</strong>, and possible <strong>anomalies</strong> in the data.</p><p>Charts, descriptive statistics, and exploratory analyses are valuable tools at this stage.</p><h4>4. Prepare the Data</h4><p>Data is not always ready to be fed into Machine Learning algorithms.</p><p>In this stage, you should perform <strong>data cleaning</strong>, handling <strong>missing</strong> <strong>values</strong>, <strong>normalization</strong>, and <strong>encoding</strong> of categorical features, and any other technique your data requires to be useful and reliable.</p><p><strong><em>The quality of your data plays a critical role in the model’s performance.</em></strong></p><h4>5. Select a Model and Train It</h4><p>With the data prepared, it’s time to select a suitable Machine Learning model for your problem.</p><p>Depending on the type of task (<strong>classification</strong>, <strong>regression</strong>, <strong>clustering</strong>, etc.), you can choose algorithms such as Logistic Regression, Random Forest, Neural Networks, among others.</p><p>You will be able to tell what is the right model for your project once you <strong>understand the problem you are trying to solve</strong>. Then, choose among the possible models, and move to the next step.</p><p><strong>Train the model with your training data and evaluate its performance.</strong></p><h4>6. Fine-Tune Your Model</h4><p><strong>Fine-tuning</strong> is a crucial step. Experiment with different hyperparameters and regularization techniques to <strong>optimize</strong> your model’s performance.</p><p>Use <strong>cross-validation </strong>to prevent <strong>overfitting</strong> and ensure that your model generalizes well to unseen data.</p><h4>7. Present Your Solution</h4><p>With a <strong>well-trained and refined model</strong>, it’s time to present your solution.</p><p>Prepare <strong>reports</strong> or <strong>visualizations</strong> that clearly communicate the <strong>results</strong> of your project.</p><p>Be ready to explain the decisions made during the process and how the model can be used in practice.</p><h4>8. Deploy, Monitor, and Maintain</h4><p>After your model is approved and validated, it’s time to <strong>deploy</strong> it in production.</p><p>Monitor the model’s performance in a real environment and <strong>be prepared to make adjustments as needed.</strong></p><p>Machine Learning is a continuously evolving field, and ongoing maintenance is essential to ensure that your model remains useful and accurate over time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bgVK0xQ0FK4Zowjh" /><figcaption>Photo by <a href="https://unsplash.com/@goshua13?utm_source=medium&amp;utm_medium=referral">Joshua Aragon</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Remember that <strong>a Machine Learning project is not a linear process</strong> and may involve iterative cycles as you gain more insights and additional data.</p><p>The key to success is a systematic approach and collaboration between domain experts and data scientists.</p><p>With dedication and a structured approach, you can create powerful and impactful solutions through Machine Learning.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=49254780ac67" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exploring Supervised and Unsupervised Learning]]></title>
            <link>https://becominghuman.ai/exploring-supervised-and-unsupervised-learning-52d418d3c262?source=rss-95e660a7ce9------2</link>
            <guid isPermaLink="false">https://medium.com/p/52d418d3c262</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[unsupervised-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[reinforcement-learning]]></category>
            <category><![CDATA[supervised-learning]]></category>
            <dc:creator><![CDATA[Rafael Duarte]]></dc:creator>
            <pubDate>Tue, 31 Oct 2023 15:27:35 GMT</pubDate>
            <atom:updated>2023-10-31T15:29:11.155Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Pk7_LSMkB6xyKBWS" /><figcaption>Photo by <a href="https://unsplash.com/@josealjovin?utm_source=medium&amp;utm_medium=referral">jose aljovin</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Understanding the Two Pillars of Machine Learning</h3><p>Machine Learning is an <strong>exciting</strong> and <strong>ever-evolving</strong> field that has played a crucial role in a variety of applications, from voice assistants to medical diagnostics.</p><p>Two of the primary paradigms within the field of Machine Learning are <strong>Supervised Learning and Unsupervised Learning</strong>.</p><p>Let&#39;s explore these two pillars and understand their fundamental differences.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qbKlEDnEzgJrnk6O" /><figcaption>Photo by <a href="https://unsplash.com/@taypaigey?utm_source=medium&amp;utm_medium=referral">Taylor Flowe</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Supervised Learning: Guided by the Teacher</h3><p>Supervised Learning is one of the most basic and widely used concepts in Machine Learning. It involves the use of labeled data to train a model that can make predictions or classifications. Here are the key aspects of Supervised Learning:</p><h4>Labeled Data</h4><p>In Supervised Learning, you have a training dataset that includes input examples (or features) along with the desired outputs (labels). For example, in an email spam recognition system, you would have emails labeled as “spam” or “not spam.”</p><h4>Model Training</h4><p>The goal of training is to make the model learn the relationship between input features and the desired outputs. The model makes predictions based on inputs and is iteratively adjusted to minimize errors between its predictions and the actual labels.</p><h4>Model Application</h4><p>After training, the model can be used to make predictions on new, unseen data. For example, a cat or dog image classification model trained with photos of cats and dogs can predict whether a new image contains a cat or a dog.</p><h4>Examples of Algorithms</h4><p>Some examples of Supervised Learning algorithms include Linear Regression, Decision Trees, k-Nearest Neighbors (K-NN), and Neural Networks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NJG4c5KGyF9LVnVa" /><figcaption>Photo by <a href="https://unsplash.com/@emilymorter?utm_source=medium&amp;utm_medium=referral">Emily Morter</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Unsupervised Learning: Discovering Hidden Patterns</h3><p>Unsupervised Learning is a paradigm where the model is trained on unlabeled data and challenged to find patterns, structures, or groups within the data. Here are the key aspects of Unsupervised Learning:</p><h4>Unlabeled Data</h4><p>Unlike Supervised Learning, data is not labeled in Unsupervised Learning. The model only receives input features and must discover any structures or patterns in the data on its own.</p><h4>Clustering</h4><p>One of the main goals of Unsupervised Learning is clustering, where the model groups data into clusters or groups based on their similarities. This is useful for customer segmentation, social network analysis, and more.</p><h4>Dimensionality Reduction</h4><p>Another important application is dimensionality reduction, where the model seeks more compact representations of the data. This is useful when dealing with high-dimensional datasets, such as images or text.</p><h4>Examples of Algorithms</h4><p>Some examples of Unsupervised Learning algorithms include K-Means for clustering, Principal Component Analysis (PCA) for dimensionality reduction, and Association Rules algorithms for discovering association rules in data.</p><p>Supervised Learning is the choice when you have labeled data and want the model to make predictions or classifications based on these labels. Unsupervised Learning is the preferred approach when you lack labels and want the model to discover patterns or structures in the data on its own.</p><p>Both paradigms play crucial roles in Machine Learning, and the choice between them depends on the specific problem and the available data. As the field continues to evolve, we are also witnessing the fusion of these approaches into techniques like Semi-Supervised Learning and Reinforcement Learning, further expanding the toolbox for solving a wide range of complex problems. Therefore, the world of Machine Learning offers exciting opportunities for those who want to explore these paradigms and shape the future of technology.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=52d418d3c262" width="1" height="1" alt=""><hr><p><a href="https://becominghuman.ai/exploring-supervised-and-unsupervised-learning-52d418d3c262">Exploring Supervised and Unsupervised Learning</a> was originally published in <a href="https://becominghuman.ai/">Becoming Human: Artificial Intelligence Magazine</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data Standardization and Normalization in Machine Learning]]></title>
            <link>https://becominghuman.ai/data-standardization-and-normalization-in-machine-learning-6041883bc9ff?source=rss-95e660a7ce9------2</link>
            <guid isPermaLink="false">https://medium.com/p/6041883bc9ff</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[data-pre-processing]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Rafael Duarte]]></dc:creator>
            <pubDate>Mon, 30 Oct 2023 15:22:34 GMT</pubDate>
            <atom:updated>2023-10-30T15:22:34.016Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*C7vwKy-eOtO36oyq" /><figcaption>Photo by <a href="https://unsplash.com/@marius?utm_source=medium&amp;utm_medium=referral">Marius Masalar</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Data normalization and standardization are fundamental techniques in Machine Learning to prepare data before feeding it to models.</p><p>These approaches help improve model performance and ensure that features of different scales or units are treated equitably.</p><h4>Data Normalization</h4><p>Normalization is the process of <strong>scaling feature values to a specific range</strong>, usually between 0 and 1.</p><p><strong>This is useful when features have different scales</strong>, and you want to bring them all into the same range. The formula for normalization is given by:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fnK0q0WgsTOK0PcVU5rKWQ.png" /><figcaption>Normalization Equation — KDnuggets</figcaption></figure><p>Where:<br>- X_norm is the normalized value.<br>- X is the original feature value.<br>- X_min is the minimum feature value.<br>- X_max is the maximum feature value.</p><p>For example, suppose you have a feature representing the age of customers, ranging from 0 to 100 years.</p><p>Applying normalization will transform the values into a scale from 0 to 1.</p><h4>Data Standardization</h4><p>Standardization, on the other hand, involves <strong>transforming feature values to have a mean of 0 and a standard deviation of 1.</strong></p><p>This is particularly useful when data follows a <strong>normal</strong> (or approximately normal) <strong>distribution</strong>. The formula for standardization is given by:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*xf17tGsfSrSApqMHKPcMKg.png" /><figcaption>Standardization Equation — GeeksforGeeks</figcaption></figure><p>Where:<br>-z is the standardized value.<br>- X is the original feature value.<br>- mu is the mean of the feature values.<br>- sigma is the standard deviation of the feature values.</p><p>Standardization is valuable when you want features to have a <strong>mean close to zero</strong>, which can help <strong>speed up the convergence of optimization algorithms</strong>, such as gradient descent.</p><h4>When to Use Normalization or Standardization</h4><p>The choice between normalization and standardization depends on your dataset and the algorithm you intend to use. Here are some general guidelines:</p><p>- <strong>Normalization</strong>: Use normalization when your features do not follow a normal distribution, and you want to keep the features within a specific range. This is common in algorithms that rely on distances, such as clustering algorithms (e.g., k-Means) and neural networks.</p><p>- <strong>Standardization</strong>: Use standardization when your data follows a normal or approximately normal distribution. This is appropriate for algorithms that assume data is centered at the mean and has a similar scale, such as linear regression, principal component analysis (PCA), and support vector machines (SVM).</p><h4>Implementation in Python</h4><p>Implementing data normalization and standardization in Python is straightforward, thanks to libraries like NumPy and scikit-learn. Here’s an example of how to do it using scikit-learn:</p><pre>from sklearn.preprocessing import MinMaxScaler, StandardScaler<br><br># Example of normalization<br>scaler = MinMaxScaler()<br>X_normalized = scaler.fit_transform(X)<br><br># Example of standardization<br>scaler = StandardScaler()<br>X_standardized = scaler.fit_transform(X)</pre><p>Remember that it is <strong>essential</strong> to fit the scaler <strong>only on the training data</strong> and then apply it separately to the training and test sets.</p><p>Data normalization and standardization are crucial techniques to prepare your data before feeding it to Machine Learning models.</p><p>The choice between them depends on your dataset and the algorithm you are using.</p><p>By applying these techniques, you help your models learn more efficiently and achieve better results.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6041883bc9ff" width="1" height="1" alt=""><hr><p><a href="https://becominghuman.ai/data-standardization-and-normalization-in-machine-learning-6041883bc9ff">Data Standardization and Normalization in Machine Learning</a> was originally published in <a href="https://becominghuman.ai/">Becoming Human: Artificial Intelligence Magazine</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>