<?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 Ana Preciado on Medium]]></title>
        <description><![CDATA[Stories by Ana Preciado on Medium]]></description>
        <link>https://medium.com/@anamargaritapreciado?source=rss-86094b625ab5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*DJrDVpYjIOaV_FLPtCSySA.png</url>
            <title>Stories by Ana Preciado on Medium</title>
            <link>https://medium.com/@anamargaritapreciado?source=rss-86094b625ab5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 09:41:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@anamargaritapreciado/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[1. Introduction to Meta-Agent Architectures]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-snippet">The artificial intelligence landscape is rapidly shifting from single-prompt interactions toward meta-agent architectures &#x2014; an emerging&#x2026;</p><p class="medium-feed-link"><a href="https://anamargaritapreciado.medium.com/1-introduction-to-meta-agent-architectures-1fd2c1ccd590?source=rss-86094b625ab5------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://anamargaritapreciado.medium.com/1-introduction-to-meta-agent-architectures-1fd2c1ccd590?source=rss-86094b625ab5------2</link>
            <guid isPermaLink="false">https://medium.com/p/1fd2c1ccd590</guid>
            <dc:creator><![CDATA[Ana Preciado]]></dc:creator>
            <pubDate>Sat, 15 Aug 2026 23:22:02 GMT</pubDate>
            <atom:updated>2026-08-15T23:22:02.396Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Using the Developer Knowledge MCP for Gemini]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-snippet">1. Understanding MCP and Gemini Docs in the ADK Context</p><p class="medium-feed-link"><a href="https://anamargaritapreciado.medium.com/using-the-developer-knowledge-mcp-for-gemini-dc84258cd096?source=rss-86094b625ab5------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://anamargaritapreciado.medium.com/using-the-developer-knowledge-mcp-for-gemini-dc84258cd096?source=rss-86094b625ab5------2</link>
            <guid isPermaLink="false">https://medium.com/p/dc84258cd096</guid>
            <dc:creator><![CDATA[Ana Preciado]]></dc:creator>
            <pubDate>Sat, 15 Aug 2026 19:13:57 GMT</pubDate>
            <atom:updated>2026-08-15T19:13:57.190Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Projects don’t just deliver outputs. They move organizations.]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/swlh/projects-dont-just-deliver-outputs-they-move-organizations-490f001e8def?source=rss-86094b625ab5------2"><img src="https://cdn-images-1.medium.com/max/625/0*Mei84UYi8uiamIxa.jpeg" width="625"></a></p><p class="medium-feed-snippet">Projects are different from ongoing operational efforts in that they are not just a mechanism for delivering results. They are a mechanism&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/swlh/projects-dont-just-deliver-outputs-they-move-organizations-490f001e8def?source=rss-86094b625ab5------2">Continue reading on The Startup »</a></p></div>]]></description>
            <link>https://medium.com/swlh/projects-dont-just-deliver-outputs-they-move-organizations-490f001e8def?source=rss-86094b625ab5------2</link>
            <guid isPermaLink="false">https://medium.com/p/490f001e8def</guid>
            <dc:creator><![CDATA[Ana Preciado]]></dc:creator>
            <pubDate>Sun, 12 Apr 2026 19:51:34 GMT</pubDate>
            <atom:updated>2026-04-12T19:51:34.845Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Building a Hierarchical Crew of Agents Using CrewAI]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-snippet">Who is this article for</p><p class="medium-feed-link"><a href="https://anamargaritapreciado.medium.com/building-a-hierarchical-crew-of-agents-using-crewai-a9e2791d8d38?source=rss-86094b625ab5------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://anamargaritapreciado.medium.com/building-a-hierarchical-crew-of-agents-using-crewai-a9e2791d8d38?source=rss-86094b625ab5------2</link>
            <guid isPermaLink="false">https://medium.com/p/a9e2791d8d38</guid>
            <dc:creator><![CDATA[Ana Preciado]]></dc:creator>
            <pubDate>Sun, 08 Feb 2026 22:39:28 GMT</pubDate>
            <atom:updated>2026-02-08T22:41:53.070Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Why I Keep Choosing GCP DataForm]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-snippet">This small article is to summarize the key aspects of my positive experience using GCP DataForm. For conext, DataForm is a service&#x2026;</p><p class="medium-feed-link"><a href="https://anamargaritapreciado.medium.com/why-i-keep-choosing-gcp-dataform-6b947142c6c3?source=rss-86094b625ab5------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://anamargaritapreciado.medium.com/why-i-keep-choosing-gcp-dataform-6b947142c6c3?source=rss-86094b625ab5------2</link>
            <guid isPermaLink="false">https://medium.com/p/6b947142c6c3</guid>
            <dc:creator><![CDATA[Ana Preciado]]></dc:creator>
            <pubDate>Fri, 06 Feb 2026 02:13:48 GMT</pubDate>
            <atom:updated>2026-02-06T02:13:48.697Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[How I defined the DQC strategy for my demand forecasting project]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-snippet">The objective of this document is to share my learnings about DQC best practices as I defined the strategy for my demand forecasting&#x2026;</p><p class="medium-feed-link"><a href="https://anamargaritapreciado.medium.com/how-i-defined-the-dqc-strategy-for-my-demand-forecasting-project-edf27376a8c9?source=rss-86094b625ab5------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://anamargaritapreciado.medium.com/how-i-defined-the-dqc-strategy-for-my-demand-forecasting-project-edf27376a8c9?source=rss-86094b625ab5------2</link>
            <guid isPermaLink="false">https://medium.com/p/edf27376a8c9</guid>
            <dc:creator><![CDATA[Ana Preciado]]></dc:creator>
            <pubDate>Sat, 24 Jan 2026 02:22:04 GMT</pubDate>
            <atom:updated>2026-01-24T02:22:04.907Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[How I improved my writing skills by carefully reading The Minto’s Pyramid Principle by Barbara…]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://anamargaritapreciado.medium.com/how-i-improved-my-writing-skills-by-carefully-reading-the-mintos-pyramid-principle-by-barbara-a1c1552ad7e1?source=rss-86094b625ab5------2"><img src="https://cdn-images-1.medium.com/max/1080/1*zQ1yoRnwEGYU1YrJ7Ou8fA.png" width="1080"></a></p><p class="medium-feed-snippet">Hello dear reader, if you clicked on this article its probably because you are aware of the importance of effective writing for your&#x2026;</p><p class="medium-feed-link"><a href="https://anamargaritapreciado.medium.com/how-i-improved-my-writing-skills-by-carefully-reading-the-mintos-pyramid-principle-by-barbara-a1c1552ad7e1?source=rss-86094b625ab5------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://anamargaritapreciado.medium.com/how-i-improved-my-writing-skills-by-carefully-reading-the-mintos-pyramid-principle-by-barbara-a1c1552ad7e1?source=rss-86094b625ab5------2</link>
            <guid isPermaLink="false">https://medium.com/p/a1c1552ad7e1</guid>
            <category><![CDATA[documentation]]></category>
            <category><![CDATA[clarity]]></category>
            <category><![CDATA[writing]]></category>
            <category><![CDATA[arguments]]></category>
            <category><![CDATA[business-writing-skills]]></category>
            <dc:creator><![CDATA[Ana Preciado]]></dc:creator>
            <pubDate>Sat, 07 Jun 2025 19:00:35 GMT</pubDate>
            <atom:updated>2025-06-07T19:00:35.386Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[The Power Of Embedding Clustering: Leveraging Open AI to Analyze Common Themes in Recent High…]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/data-science-collective/the-power-of-embedding-clustering-leveraging-open-ai-to-analyze-common-themes-in-recent-high-cc2db12ab047?source=rss-86094b625ab5------2"><img src="https://cdn-images-1.medium.com/max/2600/1*F4CNW5CsMi1yyxLYkz_uww.png" width="5049"></a></p><p class="medium-feed-snippet">What can movie text data tell us about the different film industry market clusters, and how can we use it to develop a cluster based&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/data-science-collective/the-power-of-embedding-clustering-leveraging-open-ai-to-analyze-common-themes-in-recent-high-cc2db12ab047?source=rss-86094b625ab5------2">Continue reading on Data Science Collective »</a></p></div>]]></description>
            <link>https://medium.com/data-science-collective/the-power-of-embedding-clustering-leveraging-open-ai-to-analyze-common-themes-in-recent-high-cc2db12ab047?source=rss-86094b625ab5------2</link>
            <guid isPermaLink="false">https://medium.com/p/cc2db12ab047</guid>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[snet]]></category>
            <category><![CDATA[embedding]]></category>
            <dc:creator><![CDATA[Ana Preciado]]></dc:creator>
            <pubDate>Mon, 07 Aug 2023 22:29:23 GMT</pubDate>
            <atom:updated>2025-06-12T20:50:53.961Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[PCA for ML business insights: using dimensionality reduction to identify error profiles in your…]]></title>
            <link>https://anamargaritapreciado.medium.com/pca-for-ml-business-insights-using-clusters-to-identify-underlying-structures-in-your-predictions-fed096bf73a1?source=rss-86094b625ab5------2</link>
            <guid isPermaLink="false">https://medium.com/p/fed096bf73a1</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[error-analysis]]></category>
            <category><![CDATA[predictions]]></category>
            <category><![CDATA[pcap-analysis]]></category>
            <dc:creator><![CDATA[Ana Preciado]]></dc:creator>
            <pubDate>Wed, 05 Jul 2023 03:07:37 GMT</pubDate>
            <atom:updated>2023-07-05T03:11:55.353Z</atom:updated>
            <content:encoded><![CDATA[<h3>PCA for ML business insights: using dimensionality reduction to identify error profiles in your predictions</h3><h3>Introduction:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h0xbovMNJDb3hlVh1QOKUg.jpeg" /><figcaption>Image by vecstock on Freepik. Website at: <a href="https://www.freepik.com/free-photo/fresh-coffee-steams-wooden-table-close-up-generative-ai_40950852.htm#query=coffee&amp;position=2&amp;from_view=search&amp;track=sph">https://www.freepik.com/free-photo/fresh-coffee-steams-wooden-table-close-up-generative-ai_40950852.htm#query=coffee&amp;position=2&amp;from_view=search&amp;track=sph</a></figcaption></figure><p>Machine learning is said to be both, an art and a science. The science aspect comes from the application of statistical algorithms, and the art comes from the integration of industry knowledge into the use-case. In this article, I want to propose a technique to leverages a dimensionality reduction analysis (science) to aid the discovery of factors driving the predictions error in a wholistic manner (art). The value of this exercize comes from knowing that the resulting components form the reduction will be highly abstract, but will allows us to see in a summarized manner the different structures within our data. By using our machine learning predictions, we can also identify what are the structures in the data where the majority of the error lie lies. From here, we complement the analysis with our industry knowledge, and brainstorm what can be driving the error for these groups as well as what are ways that we can best gather information with predictive value for them.</p><p>As said before, the main advantage of this exercise is the wholistic birds-eye view to the nature of the data (and also the error of our predictions) in a two dimensional space. For the example we have in this article, we’ll be using the open dataset available in the following kaggle link: <a href="https://www.kaggle.com/datasets/volpatto/coffee-quality-database-from-cqi">https://www.kaggle.com/datasets/volpatto/coffee-quality-database-from-cqi</a>. It contains quality information on coffee beans from different countries. For the sake of simplicity, I want to focus on type two errors ( errors pertaining to taste), and only leverage features pertaining to the different taste scores the beans obtain (this way all features are in a similar scale, and we don’t have to undergo additional transformations).</p><p>Because the objective is to undergo analysis, I wont be splitting the data into testing and training, and I will be using a rather simple algorihtm (decision tree with a max depth of two ) to ensure there are enough errors in the data to analyze.</p><h3><strong>Step 1: quick data description, and the creation of a mock model</strong></h3><h4>Original Schema:</h4><p>‘ID’, ‘Country of Origin’, ‘Farm Name’, ‘Lot Number’,<br> ‘Mill’, ‘ICO Number’, ‘Company’, ‘Altitude’, ‘Region’, ‘Producer’,<br> ‘Number of Bags’, ‘Bag Weight’, ‘In-Country Partner’, ‘Harvest Year’,<br> ‘Grading Date’, ‘Owner’, ‘Variety’, ‘Status’, ‘Processing Method’,<br> ‘Aroma’, ‘Flavor’, ‘Aftertaste’, ‘Acidity’, ‘Body’, ‘Balance’,<br> ‘Uniformity’, ‘Clean Cup’, ‘Sweetness’, ‘Overall’, ‘Defects’,<br> ‘Total Cup Points’, ‘Moisture Percentage’, ‘Category One Defects’,<br> ‘Quakers’, ‘Color’, ‘Category Two Defects’, ‘Expiration’,<br> ‘Certification Body’, ‘Certification Address’, ‘Certification Contact’</p><h4>Features used</h4><p>As said before i will be ignoring the majority of the features in order to focus only on the features that pertain to coffee bean taste: <br> ‘Aroma’, ‘Overall’, ‘Flavor’, ‘Aftertaste’, ‘Acidity’, ‘Body’, ‘Balance’, ‘Uniformity’, ‘Moisture Percentage’, ‘Quakers’.</p><h4>Target variable defined:</h4><p>This exercise predicts for a simplified version of the ‘Category Two Defects’ variable available in the original schema. I made this column into a binary by transforming all types of defects cases into a 1, and keeping non-defects cases as zero.</p><h4>Simple algorihtm — deicsion tree:</h4><p>I will set the max-depth of the decision tree to two because I want this exercise not to focus on the quality of the predictions, but rather in the value that leveraging dimensionality reduction for error analysis can provide.</p><h4>Code cells pertaining to this section</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.com%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ml%2Fanaprec07%2Fpca-for-business-insights-1ff5b%2Fv%2F1%26cellId%3D0&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ml%2Fanaprec07%2Fpca-for-business-insights-1ff5b%2Fv%2F1%26cellId%3D0&amp;image=https%3A%2F%2Fapi.jovian.com%2Fapi%2Fgist%2F1ff5b1f7bfc44683be79330e1269a549%2Fpreview%2F5843c5d932ab44129c9d0b7db9cc6bdb%3Fts%3D1688338830191&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/2e6fd07067368ac7e08cf37c183a10a5/href">https://medium.com/media/2e6fd07067368ac7e08cf37c183a10a5/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.com%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ml%2Fanaprec07%2Fpca-for-business-insights-1ff5b%2Fv%2F1%26cellId%3D1&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ml%2Fanaprec07%2Fpca-for-business-insights-1ff5b%2Fv%2F1%26cellId%3D1&amp;image=https%3A%2F%2Fapi.jovian.com%2Fapi%2Fgist%2F1ff5b1f7bfc44683be79330e1269a549%2Fpreview%2F5843c5d932ab44129c9d0b7db9cc6bdb%3Fts%3D1688338830191&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/e32539a82ce905dea5923caf161a6fd0/href">https://medium.com/media/e32539a82ce905dea5923caf161a6fd0/href</a></iframe><h3><strong>Step 2: Finding underlying structures in the data through PCA</strong></h3><p>Through a PCA plot, we can see that our data indeed has an underlying structure:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.com%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ml%2Fanaprec07%2Fpca-for-business-insights-1ff5b%2Fv%2F1%26cellId%3D2&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ml%2Fanaprec07%2Fpca-for-business-insights-1ff5b%2Fv%2F1%26cellId%3D2&amp;image=https%3A%2F%2Fapi.jovian.com%2Fapi%2Fgist%2F1ff5b1f7bfc44683be79330e1269a549%2Fpreview%2F5843c5d932ab44129c9d0b7db9cc6bdb%3Fts%3D1688338830191&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/99acc51d94a8f1d1ca563c4bf0fdea7f/href">https://medium.com/media/99acc51d94a8f1d1ca563c4bf0fdea7f/href</a></iframe><p>The majority of the observations (and error) have a value of 0 o less for the first component. However we can clearly see that the model seems to be performing well for observations to the right of said threshold. I personally find this view valuable because it allows us to have a birds eye view of the structures within our observation. Even though component 1 and component 2 have a rather abstract definition, the plot still begs the questions of what make the different component ranges different, as there is a discernable difference in error along its discrete axis.</p><p>If we break it down into quantiles we would obtain the following summary in terms of % of observations with error and total of observations with error (along the different component 1 quantile groups):</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.com%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ml%2Fanaprec07%2Fpca-for-business-insights-1ff5b%2Fv%2F1%26cellId%3D3&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ml%2Fanaprec07%2Fpca-for-business-insights-1ff5b%2Fv%2F1%26cellId%3D3&amp;image=https%3A%2F%2Fapi.jovian.com%2Fapi%2Fgist%2F1ff5b1f7bfc44683be79330e1269a549%2Fpreview%2F5843c5d932ab44129c9d0b7db9cc6bdb%3Fts%3D1688338830191&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/05f61deef2ca13c460086ef11c8dccb4/href">https://medium.com/media/05f61deef2ca13c460086ef11c8dccb4/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.com%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ml%2Fanaprec07%2Fpca-for-business-insights-1ff5b%2Fv%2F1%26cellId%3D4&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ml%2Fanaprec07%2Fpca-for-business-insights-1ff5b%2Fv%2F1%26cellId%3D4&amp;image=https%3A%2F%2Fapi.jovian.com%2Fapi%2Fgist%2F1ff5b1f7bfc44683be79330e1269a549%2Fpreview%2F5843c5d932ab44129c9d0b7db9cc6bdb%3Fts%3D1688338830191&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/a1eadb3f20912799e96bdce0ac5073fc/href">https://medium.com/media/a1eadb3f20912799e96bdce0ac5073fc/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.com%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ml%2Fanaprec07%2Fpca-for-business-insights-1ff5b%2Fv%2F1%26cellId%3D5&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ml%2Fanaprec07%2Fpca-for-business-insights-1ff5b%2Fv%2F1%26cellId%3D5&amp;image=https%3A%2F%2Fapi.jovian.com%2Fapi%2Fgist%2F1ff5b1f7bfc44683be79330e1269a549%2Fpreview%2F5843c5d932ab44129c9d0b7db9cc6bdb%3Fts%3D1688338830191&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/00ed2be6306c9af6a75115e2fc85bf58/href">https://medium.com/media/00ed2be6306c9af6a75115e2fc85bf58/href</a></iframe><h3>Step 3: Bringing this back to the original features</h3><p>This is seems great, but it is useless if we don’t have a way to bring it back to actionable context. This is why we’ll proceed to plot the median of the different feature values for each of the quantiles that we previously explored. For this section of the analysis please feel free to leverage any tool you feel more comfortable with.</p><p>In order to plot all features used into one single visualization, I used the min max scaler transformer available with scikit-learn (and added a feature pertaining to the number of bags per bean type).</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.com%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ml%2Fanaprec07%2Fpca-for-business-insights-1ff5b%2Fv%2F1%26cellId%3D6&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ml%2Fanaprec07%2Fpca-for-business-insights-1ff5b%2Fv%2F1%26cellId%3D6&amp;image=https%3A%2F%2Fapi.jovian.com%2Fapi%2Fgist%2F1ff5b1f7bfc44683be79330e1269a549%2Fpreview%2F5843c5d932ab44129c9d0b7db9cc6bdb%3Fts%3D1688338830191&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/f17c9c294361ac01bee4125392adcef6/href">https://medium.com/media/f17c9c294361ac01bee4125392adcef6/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.com%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ml%2Fanaprec07%2Fpca-for-business-insights-1ff5b%2Fv%2F1%26cellId%3D7&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ml%2Fanaprec07%2Fpca-for-business-insights-1ff5b%2Fv%2F1%26cellId%3D7&amp;image=https%3A%2F%2Fapi.jovian.com%2Fapi%2Fgist%2F1ff5b1f7bfc44683be79330e1269a549%2Fpreview%2F5843c5d932ab44129c9d0b7db9cc6bdb%3Fts%3D1688338830191&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/19dd25742a581cb85b592c35cf188f97/href">https://medium.com/media/19dd25742a581cb85b592c35cf188f97/href</a></iframe><p>The visualization hints at us that there are indeed some visible patters across component 1 scale. To the left (the cases where the model is having the most trouble predicting), the different flavors have higher scores as well as lower humidity. To the right, humidity is higher, flavor scores lower, and there is also a higher number of bags for the different beans. From here, the data science team can communicate with the industry experts to ask questions of whether there is any difference in the cases with low humidity, higher flavor scores or lower number of bags that could be driving the error.</p><p>For example, does a lower number of bags mean that the coffee beans in observation had a lower number of samples for sensory scores than their counterparts? Can this under representation be driving the error? What is the relationship between humidity, and sensory flavor information, and why do beans with a lower number of bags seem to have a higher humidity? From there, the industry experts can start considering the potential causes for the model error, and brainstorm potential new variables or features with predictive values for these cases.</p><h3>Conclusion</h3><p>Machine learning is an art as well as a sicence, and it should not be decoupled from industry expertise in its development. Tools such as dimentionality reduction can help provide a summarized view of the underlyings structures of the data in order to spot or identify the areas of said structure with which the algorithm is having the most troule predicting. From there, we can identify patters within those groups in order to have a wholistic view at what types of profiles is the model struggling wtih the most. Here, industry experts can provide with their knowledge in finding the leading causes for the error, and help identify variables that could aid better predictions for these cases.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fed096bf73a1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Oversampling: A PCA-KNN Approach]]></title>
            <link>https://medium.com/data-science/oversampling-a-pca-knn-approach-f392ca232486?source=rss-86094b625ab5------2</link>
            <guid isPermaLink="false">https://medium.com/p/f392ca232486</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[oversampling]]></category>
            <category><![CDATA[knn]]></category>
            <category><![CDATA[imbalanced-data]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Ana Preciado]]></dc:creator>
            <pubDate>Wed, 10 Nov 2021 22:31:53 GMT</pubDate>
            <atom:updated>2021-11-16T05:20:16.983Z</atom:updated>
            <content:encoded><![CDATA[<h4>Leverage majority class information to improve predictions</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ECSpk0KO_tgtd2-DXTNquQ.png" /><figcaption><a href="https://jovian.ai/anaprec07/pca-knn-article-notebook-breatcancer">https://jovian.ai/anaprec07/pca-knn-article-notebook-breatcancer</a></figcaption></figure><p>In this article, I will talk about an oversampling approach alternative using PCA dimensionality reduction and the K-nearest Neighbors algorithm. It consists of (1) preprocessing the features to scale them, remove nulls, and remove outliers ; (2) reducing their dimensionality through a PCA; (3) using the KNN algorithm to find majority class observations that are similar enough to minority class observations as to have them be fakely-considered minority classes instead.</p><p>Please feel free to follow along with the exercise through this Jovian notebook.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fanaprec07%2Fpca-knn-article-notebook-breatcancer-1%2Fv%2F1&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fanaprec07%2Fpca-knn-article-notebook-breatcancer-1%2Fv%2F1&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F59f68ac00f58441fb1863e6bcbdfff0f%2Fpreview%2F94d06c8ac72540dc810fb9c1fdd2b1fa&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/df89914a922ad4b5b2b58edd6523eb00/href">https://medium.com/media/df89914a922ad4b5b2b58edd6523eb00/href</a></iframe><p>I will be using the breast cancer dataset available through the scikit-learn library. In the notebook, I resample the dataset to create a new highly imbalanced version of it that has 248 observations, from which only 36 are positive — in other words, 14%. Using train_test_split, we divide our dataset into training (70%) and testing (30%).</p><p>Before we can evaluate the PCA KNN oversampling alternative I propose in this article, we need a benchmark. For this, we’ll create a couple of base models that are trained directly from our newly created features. For the sake of diversity, we’ll be looking at SVM, Decision Tree Classifier, Random Forest, and Gradient Boosting.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fanaprec07%2Fpca-knn-article-notebook-breatcancer-1%2Fv%2F1%26cellId%3D8&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fanaprec07%2Fpca-knn-article-notebook-breatcancer-1%2Fv%2F1%26cellId%3D8&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F59f68ac00f58441fb1863e6bcbdfff0f%2Fpreview%2F94d06c8ac72540dc810fb9c1fdd2b1fa&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/f0b3a763c98158444fb633e460934c35/href">https://medium.com/media/f0b3a763c98158444fb633e460934c35/href</a></iframe><p>Next, we’ll predict our test set with the base algorithms, and create a function that will help us evaluate their performance through selected metrics (average precision, Breier score loss, ROC AUC) in a clear organized pandas table. The objective of having this be a previously defined function is that we’ll be reusing it in the future.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fanaprec07%2Fpca-knn-article-notebook-breatcancer-1%2Fv%2F1%26cellId%3D10&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fanaprec07%2Fpca-knn-article-notebook-breatcancer-1%2Fv%2F1%26cellId%3D10&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F59f68ac00f58441fb1863e6bcbdfff0f%2Fpreview%2F94d06c8ac72540dc810fb9c1fdd2b1fa&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/33a0ec3ac17ff267c149f0908399e916/href">https://medium.com/media/33a0ec3ac17ff267c149f0908399e916/href</a></iframe><p>Here is a metrics dictionary I put together quoting directly from the <a href="https://scikit-learn.org/stable/modules/generated/sklearn.metrics.brier_score_loss.html">sklearn documentation</a>.</p><h3>METRICS DICTIONARY:</h3><ul><li><strong>average_precision_score </strong>: “AP summarizes a precision-recall curve as the weighted mean of precisions achieved at each threshold, with the increase in recall from the previous threshold used as the weight. This implementation is not interpolated and is different from computing the area under the precision-recall curve with the trapezoidal rule, which uses linear interpolation and can be too optimistic”.</li><li><strong>brier_score_loss </strong>: “The smaller the Brier score loss, the better, hence the naming with “loss”. The Brier score measures the mean squared difference between the predicted probability and the actual outcome. The Brier score always takes on a value between zero and one, since this is the largest possible difference between a predicted probability (which must be between zero and one) and the actual outcome (which can take on values of only 0 and 1)”.</li><li><strong>roc auc </strong>: “Compute Area Under the Receiver Operating Characteristic Curve (ROC AUC) from prediction scores”.</li></ul><h3>BASE MODEL RESULTS:</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fanaprec07%2Fpca-knn-article-notebook-breatcancer-1%2Fv%2F1%26cellId%3D13&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fanaprec07%2Fpca-knn-article-notebook-breatcancer-1%2Fv%2F1%26cellId%3D13&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F59f68ac00f58441fb1863e6bcbdfff0f%2Fpreview%2F94d06c8ac72540dc810fb9c1fdd2b1fa&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/9c5448641551de852ba08daa90811273/href">https://medium.com/media/9c5448641551de852ba08daa90811273/href</a></iframe><h3>PROPOSED OVERSAMPLING TECHNIQUE: PCA KNN</h3><p>Next, we’ll try an approach where we’ll use a PCA and a KNN in order to transform some of the negative observations into positive ones and improve the quality of our machine learning model.</p><p>In the following cod, we’ll create a table through which we’ll select which are the majority-class observations we want to switch up to fakely by minority-class observations so that we can enrich the models we’ll next train.</p><p>As explained before we preprocess our data (power transformer and standard scaler), apply a PCA to it, and then with a KNN identify these the observations we’ll be switching.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fanaprec07%2Fpca-knn-article-notebook-breatcancer-1%2Fv%2F1%26cellId%3D16&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fanaprec07%2Fpca-knn-article-notebook-breatcancer-1%2Fv%2F1%26cellId%3D16&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F59f68ac00f58441fb1863e6bcbdfff0f%2Fpreview%2F94d06c8ac72540dc810fb9c1fdd2b1fa&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/f07798df3c6a683cb6a1bb691b92661d/href">https://medium.com/media/f07798df3c6a683cb6a1bb691b92661d/href</a></iframe><p>Here is a beautiful seaborn pairplot of the resulting PCA components we are using:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fanaprec07%2Fpca-knn-article-notebook-breatcancer-1%2Fv%2F1%26cellId%3D17&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fanaprec07%2Fpca-knn-article-notebook-breatcancer-1%2Fv%2F1%26cellId%3D17&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F59f68ac00f58441fb1863e6bcbdfff0f%2Fpreview%2F94d06c8ac72540dc810fb9c1fdd2b1fa&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/80103f636994eb5ec2c1bc79c97018f5/href">https://medium.com/media/80103f636994eb5ec2c1bc79c97018f5/href</a></iframe><p>Here we train and predict a KNN with the produced data:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fanaprec07%2Fpca-knn-article-notebook-breatcancer-1%2Fv%2F1%26cellId%3D18&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fanaprec07%2Fpca-knn-article-notebook-breatcancer-1%2Fv%2F1%26cellId%3D18&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F59f68ac00f58441fb1863e6bcbdfff0f%2Fpreview%2F94d06c8ac72540dc810fb9c1fdd2b1fa&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/77323ad07c6a0a139b8d4749f495c303/href">https://medium.com/media/77323ad07c6a0a139b8d4749f495c303/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fanaprec07%2Fpca-knn-article-notebook-breatcancer-1%2Fv%2F1%26cellId%3D19&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fanaprec07%2Fpca-knn-article-notebook-breatcancer-1%2Fv%2F1%26cellId%3D19&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F59f68ac00f58441fb1863e6bcbdfff0f%2Fpreview%2F94d06c8ac72540dc810fb9c1fdd2b1fa&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/d17d4490ccba850326e20974e43542c5/href">https://medium.com/media/d17d4490ccba850326e20974e43542c5/href</a></iframe><p>We chose a threshold cutoff point for the majority-class observations we’ll be switching to be minority-class, and we create our new target with them.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fanaprec07%2Fpca-knn-article-notebook-breatcancer-1%2Fv%2F1%26cellId%3D20&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fanaprec07%2Fpca-knn-article-notebook-breatcancer-1%2Fv%2F1%26cellId%3D20&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F59f68ac00f58441fb1863e6bcbdfff0f%2Fpreview%2F94d06c8ac72540dc810fb9c1fdd2b1fa&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/f31fd54f24892d46c6f619c141b5d57a/href">https://medium.com/media/f31fd54f24892d46c6f619c141b5d57a/href</a></iframe><p>In the notebook the threshold is set to 0.3. This way we earn 5 new positive observations — which may not sound like a lot but represent a 20% increase on the original number we had in our training set.</p><p>Here we train the models:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fanaprec07%2Fpca-knn-article-notebook-breatcancer-1%2Fv%2F1%26cellId%3D22&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fanaprec07%2Fpca-knn-article-notebook-breatcancer-1%2Fv%2F1%26cellId%3D22&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F59f68ac00f58441fb1863e6bcbdfff0f%2Fpreview%2F94d06c8ac72540dc810fb9c1fdd2b1fa&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/13ef7090040b837e409c8bda315bfb78/href">https://medium.com/media/13ef7090040b837e409c8bda315bfb78/href</a></iframe><p>and predict with them:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fanaprec07%2Fpca-knn-article-notebook-breatcancer-1%2Fv%2F1%26cellId%3D23&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fanaprec07%2Fpca-knn-article-notebook-breatcancer-1%2Fv%2F1%26cellId%3D23&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F59f68ac00f58441fb1863e6bcbdfff0f%2Fpreview%2F94d06c8ac72540dc810fb9c1fdd2b1fa&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/569d383580fe677c1fa7b6018b9eeb3a/href">https://medium.com/media/569d383580fe677c1fa7b6018b9eeb3a/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fanaprec07%2Fpca-knn-article-notebook-breatcancer-1%2Fv%2F1%26cellId%3D24&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fanaprec07%2Fpca-knn-article-notebook-breatcancer-1%2Fv%2F1%26cellId%3D24&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F59f68ac00f58441fb1863e6bcbdfff0f%2Fpreview%2F94d06c8ac72540dc810fb9c1fdd2b1fa&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/feb2419fd624234159b67772b89b2610/href">https://medium.com/media/feb2419fd624234159b67772b89b2610/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fanaprec07%2Fpca-knn-article-notebook-breatcancer-1%2Fv%2F1%26cellId%3D25&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fanaprec07%2Fpca-knn-article-notebook-breatcancer-1%2Fv%2F1%26cellId%3D25&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F59f68ac00f58441fb1863e6bcbdfff0f%2Fpreview%2F94d06c8ac72540dc810fb9c1fdd2b1fa&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/a5298c5ca4ba08b8475002822d88986e/href">https://medium.com/media/a5298c5ca4ba08b8475002822d88986e/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fanaprec07%2Fpca-knn-article-notebook-breatcancer-1%2Fv%2F1%26cellId%3D26&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fanaprec07%2Fpca-knn-article-notebook-breatcancer-1%2Fv%2F1%26cellId%3D26&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F59f68ac00f58441fb1863e6bcbdfff0f%2Fpreview%2F94d06c8ac72540dc810fb9c1fdd2b1fa&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/613bff5e0890d5ca847ef0391e498429/href">https://medium.com/media/613bff5e0890d5ca847ef0391e498429/href</a></iframe><h3><strong>Conclusion — What does this mean?</strong></h3><p>It means that the oversampling approach indeed made for a slightly better model. As you can see in the jovian notebook if we make a cut off point at the prediction 0.97, we get 7 correct predictions, as opposed to the 3 we used to get. Another advantage is that the technique achieves a higher performance without influencing or inflating the model’s feature importance much. It makes for an oversampling technique that is less invasive, while still improving the base predictions.</p><p><a href="https://www.linkedin.com/in/anapreciado/">Ana Preciado - Data Scientist - Banco General | LinkedIn</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f392ca232486" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/oversampling-a-pca-knn-approach-f392ca232486">Oversampling: A PCA-KNN Approach</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>