<?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 Hunter Kempf on Medium]]></title>
        <description><![CDATA[Stories by Hunter Kempf on Medium]]></description>
        <link>https://medium.com/@HunterKempf?source=rss-d22bc8bd93b6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*_omfV6PGwHHZEu0xrEO9pA.jpeg</url>
            <title>Stories by Hunter Kempf on Medium</title>
            <link>https://medium.com/@HunterKempf?source=rss-d22bc8bd93b6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 14:07:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@HunterKempf/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[2024 Trends in AI and Machine Learning]]></title>
            <link>https://medium.com/@HunterKempf/2024-trends-in-ai-and-machine-learning-58f45a2007ca?source=rss-d22bc8bd93b6------2</link>
            <guid isPermaLink="false">https://medium.com/p/58f45a2007ca</guid>
            <category><![CDATA[mlops]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Hunter Kempf]]></dc:creator>
            <pubDate>Tue, 13 Feb 2024 03:18:12 GMT</pubDate>
            <atom:updated>2024-02-13T03:18:12.348Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="source: https://www.bing.com/images/create/1382579972/2-65caaa6719354dbfa7cbcbf444995aa8?id=cnwqCMRzpWInG1XSbUW57w%3d%3d&amp;view=detailv2&amp;idpp=genimg&amp;idpclose=1&amp;genimgbce=1&amp;thId=OIGBCE1.r2dIu8HCtTtG8LDG7UOZ&amp;FORM=SYDBIC" src="https://cdn-images-1.medium.com/max/1024/1*cnwqCMRzpWInG1XSbUW57w.jpeg" /><figcaption>The Above Image was Generated with Copilot Designer via Copilot chat</figcaption></figure><p>The AI and Machine Learning space had a lot of changes in 2023. The biggest impact areas were around Generative AI and Large Language Models (LLMs). As we enter 2024 I have compiled a list of trends that I am expecting for the year. I have broken these trends into Traditional ML trends and Generative AI trends.</p><h3>Key Term Definitions</h3><p>Before we start with the trends lets define and level set on the definitions of a few key terms.</p><h4>Machine Learning (ML)</h4><blockquote>Machine learning is a subset of artificial intelligence that automatically enables a machine or system to learn and improve from experience. Instead of explicit programming, machine learning uses algorithms to analyze large amounts of data, learn from the insights, and then make informed decisions.</blockquote><blockquote>Machine learning algorithms improve performance over time as they are trained—exposed to more data. Machine learning models are the output, or what the program learns from running an algorithm on training data. The more data used, the better the model will get.</blockquote><blockquote>-<a href="https://cloud.google.com/learn/artificial-intelligence-vs-machine-learning"> Google Cloud</a></blockquote><h4>Artificial Intelligence (AI)</h4><blockquote>Artificial intelligence is a broad field, which refers to the use of technologies to build machines and computers that have the ability to mimic cognitive functions associated with human intelligence, such as being able to see, understand, and respond to spoken or written language, analyze data, make recommendations, and more.</blockquote><blockquote>Although artificial intelligence is often thought of as a system in itself, it is a set of technologies implemented in a system to enable it to reason, learn, and act to solve a complex problem.</blockquote><blockquote>- <a href="https://cloud.google.com/learn/artificial-intelligence-vs-machine-learning">Google Cloud</a></blockquote><h3>Traditional ML Trends</h3><p>Traditional ML will continue to be the more commonly used method by businesses in 2024. Since Traditional ML techniques are more mature instead of focusing on specific models or model architecture trends I will focus on 2 key areas that affect traditional ML (but also can affect Generative AI). Those key areas are Hardware Acceleration and Machine Learning Operations (ML Ops).</p><h4>Hardware Acceleration</h4><figure><img alt="source: https://www.bing.com/images/create/-1767639674/2-65cade19da5f48a785e3cca7a5c57915?id=jda7eshYWhhwABTioue9aw%3D%3D&amp;view=detailv2&amp;idpp=genimg&amp;idpclose=1&amp;genimgbce=1&amp;thid=OIGBCE3.EGWnkkRmeV0p9rty8b44&amp;form=SYDBIC" src="https://cdn-images-1.medium.com/max/1024/1*jda7eshYWhhwABTioue9aw.jpeg" /><figcaption>The Above Image was Generated with Copilot Designer via Copilot chat</figcaption></figure><p>One of the most important elements for training large machine learning models is optimized compute. In most cases that optimization is in the form of GPU Acceleration.</p><p>I expect NVIDIA’s CUDA acceleration to remain as the most popular GPU acceleration framework in 2024 especially since NVIDIA has ~75% market share with consumers (according to the most recent <a href="https://store.steampowered.com/hwsurvey">steam hardware survey</a>) and a staggering estimated <a href="https://www.extremetech.com/computing/analysts-estimate-nvidia-owns-98-of-the-data-center-gpu-market">98% market share of the Data Center market</a>. With that being said it will be interesting to see improvements in AMD’s ROCm and Intel’s One API which are both open source and have been improving rapidly but do not have any significant market share. As Training datasets continue to grow GPUs become the most effective way to train a new model and I see this trend continuing in 2024 and also including more gpu accelerated inference.</p><p>Besides GPUs there are specialty accelerator chips. Usually these chips are used for inference and can provide impressive performance per watt compared to CPU or GPUs which by their nature are both more general processing chips. In 2024 I would expect continued investments in these specialized accelerator chips from <a href="https://azure.microsoft.com/en-us/blog/microsoft-azure-delivers-purpose-built-cloud-infrastructure-in-the-era-of-ai/">AZURE</a>, <a href="https://aws.amazon.com/machine-learning/inferentia/">AWS</a> and <a href="https://cloud.google.com/tpu/?hl=en">GCP</a>.</p><h4>ML Ops</h4><figure><img alt="source: https://www.bing.com/images/create/708970683/2-65cadee71fb241629cf6ed786db46c17?id=Mt30%2F5GO3Bc0B1eQL5XCmQ%3D%3D&amp;view=detailv2&amp;idpp=genimg&amp;idpclose=1&amp;genimgbce=1&amp;thid=OIGBCE1.85da_zUy4jFsnS06MlwN&amp;form=SYDBIC" src="https://cdn-images-1.medium.com/max/1024/1*Mt30_5GO3Bc0B1eQL5XCmQ.jpeg" /><figcaption>The Above Image was Generated with Copilot Designer via Copilot chat</figcaption></figure><p>Continuing with Trends in Traditional ML, ML Ops has been a big focus area for many companies that are using ML models in production. ML Ops tools can help simplify the Monitoring, Management and Lifecycle’s of a Machine Learning Model and can even help reduce costs.</p><p><em>Model Monitoring/Insights</em> have been getting a lot of attention lately. These are the easiest tools for many business leaders to understand and generally help with monitoring a model’s input and output while it is in production. This can help to give important information on data quality issues or feature and demographic drifts on the inputs and score drifts on the outputs. These tools also can be helpful in providing insights like when a model should be retrained or understanding model explainability (what inputs affected the model score).</p><p><em>Feature Stores</em> were very popular concepts over the last few years with a few niche startups and hosted versions being added into the public cloud providers but for most cases the overhead of managing a feature store has been bigger than the associated value they bring. Specific companies (mostly centered around core data/features that are used by many models) will see benefits with feature stores but most companies with models that cover a bigger variety of datasets and dont have much feature overlap between them will not see much value.</p><p>Once a company has a model that was trained for a specific task that has become stale they need to retrain it in order to get the same predictive power it had when it was first trained. This has lead to a lot of tools that help to log the model artifacts, hyperparameters, training sets etc of model retraining which can help to automate some elements of the training/retraining lifecycle.</p><p>The newest addition into ML Ops is the <em>vector database </em>which is mostly used in conjunction with LLM models. For example a company can cache similar queries to a chatbot model and reduce the usage of the expensive computations by then returning the same answer for similar queries.</p><h3>Generative AI Trends</h3><p>Generative AI usecases in 2023 were the source of a lot of hype. That hype will continue into 2024 and currently those usecases can be grouped into two main categories, Text Generation and Image Generation. While both usecases use models with similar concepts, the competitors and trends are distinct.</p><h4>Text Generation</h4><figure><img alt="source: https://www.bing.com/images/create/robot-typing-a-chat-message-on-a-computer/65403d92852d4bf2a3bbd4a4c82b3afc?id=mUuKxF76ynBSZxT23pADUw%3d%3d&amp;view=detailv2&amp;idpp=genimg&amp;FORM=GCRIDP&amp;mode=overlay" src="https://cdn-images-1.medium.com/max/1024/0*LQd2CMGmkTpa4e-d" /><figcaption>The Above Image was Generated with Copilot Designer via Copilot chat</figcaption></figure><p>Generative Text models have captivated both businesses and consumers.</p><p>Consumers have been using AI chats like Chat GPT for over a year now (released in Nov 2022). I expect the percentage of people using AI chat tools to increase in 2024 as more companies roll out their own AI powered apps.</p><p>Businesses see the value of making their internal information more easily accessible to their employees or customers while also reducing their IT helpdesk or customer service agent costs. Most of the business work seems to focus on connecting internal data to Generative AI chatbots which generally can mean fine tuning an open source model like Llama 2 or using a pretrained model like GPT 4 and in both cases hooking up to a vector database which stores a representation of a company’s internal documents.</p><p>Currently according to user feedback in <a href="https://huggingface.co/spaces/lmsys/chatbot-arena-leaderboard">Chatbot Arena</a> (a crowdsourced A/B evaluation platform with over 200k human votes) the best text generation models are all closed source models. I expect this trend to continue especially since the barriers to gathering large training sets and GPU hours required to train large competitive models make open source projects less feasible than their closed source/for profit counterparts.</p><h4>Image Generation</h4><figure><img alt="source: https://www.bing.com/images/create/robot-painting-a-picture-on-an-art-easel/65403b3106a543a68e4c7be40bbe6569?id=o8S6k4efJXiWVdN7ZCAXig%3d%3d&amp;view=detailv2&amp;idpp=genimg&amp;FORM=GCRIDP&amp;mode=overlay" src="https://cdn-images-1.medium.com/max/1024/0*pt5WVYypT6AE15JS" /><figcaption>The Above Image was Generated with Copilot Designer via Copilot chat</figcaption></figure><p>In 2022 the concept of AI art and AI image generation burst onto the scene. DALLE 2, Midjourney and Stable Diffusion were all released a few months apart in mid 2022 and have been getting consistent updates with that being said it seems like year over year while there have been improvements to the models, the usecases are more niche and don’t have as much of a broad impact as LLMs and Chatbots have. I expect that Image Generation will continue to improve (especially with in image text generation) and expand into AI generated Gif’s/Short Clips.</p><p>Sadly there is not currently a model comparison site similar to Chatbot Arena for Image Generators. That being said the best models by reputation are Midjourney, DALL-E 2 and Stable Diffusion.</p><h4>Spotlight: Building LLM Applications using LangChain</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/1*zXwCBYCFPY-6EmYf3Pjqag.jpeg" /></figure><p><a href="https://python.langchain.com/docs/get_started/introduction">LangChain</a> is a framework for developing applications powered by language models. It enables applications that:</p><ul><li>Are context-aware: connect a language model to sources of context (prompt instructions, few shot examples, content to ground its response in, etc.)</li><li>Reason: rely on a language model to reason (about how to answer based on provided context, what actions to take, etc.)</li></ul><p>The main value props of LangChain are:</p><ol><li>Components: abstractions for working with language models, along with a collection of implementations for each abstraction. Components are modular and easy-to-use, whether you are using the rest of the LangChain framework or not</li><li>Off-the-shelf chains: a structured assembly of components for accomplishing specific higher-level tasks</li></ol><p>Off-the-shelf chains make it easy to get started. For complex applications, components make it easy to customize existing chains and build new ones.</p><h4>Spotlight: AI Gateway and Workers AI</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/416/1*vU-aXcghgSIzj3q7-MBruQ.png" /></figure><p><em>Disclosure: I work for Cloudflare as a Machine Learning Engineer. I do not work on the team developing AI Gateway or Workers AI and while I do hold Cloudflare stock my opinions on this are not otherwise sponsored or endorsed by the company.</em></p><p><a href="https://developers.cloudflare.com/ai-gateway/">AI Gateway</a> is a plug and play service that most importantly allows applications to cache model requests and responses along with controls like rate limiting. It also can provide Analytics, Logs and other insights. You can use it in front of any API but it also comes preconfigured for a few of the top inference APIs like OpenAI, Amazon’s Bedrock, Workers AI and more. I think that components like AI Gateway which make deploying AI powered apps easier, provide usage insights and protect against spikes in demand will only become more popular in 2024.</p><p><a href="https://developers.cloudflare.com/workers-ai/">Workers AI</a> is an easy way to create AI powered apps using just an API call. It supports a variety of models and usecases and can be called from LangChain. I expect that in 2024 more platforms will continue to provide hosted model solutions where a developer doesn&#39;t need to train and host their own custom LLM but can use Retrieval Augmented Generation or similar techniques to give more generalized models proper context for their application. A few competitors that offer similar hosted model services are Amazon’s Bedrock service, Hugging Face’s Inference service and obviously OpenAI.</p><h3>My Data Science Setup</h3><p>I am a <a href="https://datascience.hp.com/us/en/our-ambassadors/hunter-kempf.html">Z by HP Global Data Science Ambassador</a> which means <a href="https://www.hp.com/us-en/workstations/workstation-pcs.html">Z by HP</a> sponsors my content and has provided me with the following hardware that I used to create this Data Science Project and the others I work on!</p><h3><a href="https://www.hp.com/us-en/workstations/z8.html">Desktop: HP Z8</a></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/291/0*Djwyg3VFpMNNVTCJ.png" /></figure><p>Having a powerful desktop is very important for iterating quickly while working on Data Science projects. Not having to wait as long between updates to my code and outputs lets me get more done. The powerful GPUs in my Z8 are very helpful when training large deep learning models.</p><h3><a href="https://www.hp.com/us-en/workstations/zbook-studio.html">Laptop: ZBook Studio</a></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/291/0*ZWnE0qPjGMi49jCK.png" /></figure><p>Being able to work on Data Science projects when I am away from my home office helps me to maximize my productivity. The ZBook Studio I have has a powerful enough CPU and GPU to handle a lot of the iterations and initial models I run.</p><h3>Monitor: HP Z38c</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*APIoRBtiIrdiEsxR.png" /></figure><p>Having a big high resolution display like the Z38c helps me to improve my productivity by running multiple windows at the same time. I usually have it open with a python notebook and internet browser, chat app or video call open on the other side of the screen.</p><h3><a href="https://h20195.www2.hp.com/v2/GetDocument.aspx?docname=4AA7-5783ENW">Preloaded Software Stack</a></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*GfsoTQO-MnjEn0Jb.gif" /></figure><p>Being able to have the software I use for Data Science come preinstalled and configured to manage package updates helps me get started on projects and worry less about package compatibility issues that arise from updating packages one by one.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=58f45a2007ca" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Should you be Afraid of AI?]]></title>
            <link>https://medium.com/@HunterKempf/should-you-be-afraid-of-ai-1170cb24f347?source=rss-d22bc8bd93b6------2</link>
            <guid isPermaLink="false">https://medium.com/p/1170cb24f347</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[ethics]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[ethics-in-tech]]></category>
            <dc:creator><![CDATA[Hunter Kempf]]></dc:creator>
            <pubDate>Tue, 01 Aug 2023 03:29:02 GMT</pubDate>
            <atom:updated>2023-08-01T03:29:02.338Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Bing Image Creator with prompt “A robot that is half good and half bad” — https://www.bing.com/images/create/a-robot-that-is-half-good-and-half-bad/64c8634cc7364e2bbb87c09e9e658ebe?id=6GQv1G88Dk6OGWRUo9cCpg%3d%3d&amp;view=detailv2&amp;idpp=genimg&amp;idpclose=1&amp;FORM=SYDBIC" src="https://cdn-images-1.medium.com/max/1024/1*zebD6KSxRkh55e2-7p037A.jpeg" /></figure><p>Artificial Intelligence (AI) is often talked about either as an potential incredible productivity boost for workers or as a replacement for jobs. In the current headlines you will see that many Hollywood writers and actors are on strike over many issues including the use of AI technologies to replace human writers and in the future to replace actors. On the other side you may see posts and videos on social media sites where creators are advocating others to get started in “get rich quick” style schemes using AI tools to make money. Often these articles or social media posts are sensationalizing the effect that these technologies will have for relative beginners in a field. Usually the tools discussed in these articles and posts are large and generalized models which are pitched as being generalized and able to handle multiple different tasks. What is talked about in most of the hype is not what most companies that use AI models actually base their systems on. With all this information should you be afraid of AI becoming a problem? replacing artists? taking your job?</p><figure><img alt="Bing Image Creator with prompt “robot learning” — https://www.bing.com/images/create/robot-learning/64c86400f818405099784afbf6f1faed?id=6el5nbGgvX98B33I0%2f5O3w%3d%3d&amp;view=detailv2&amp;idpp=genimg&amp;idpclose=1&amp;FORM=SYDBIC" src="https://cdn-images-1.medium.com/max/1024/1*ppuoQ46Dl7lOht76qUpoig.jpeg" /></figure><p>To understand these questions it is important to understand what AI usecases are already in use in your day to day life. Most of the actual “AI” that companies have built and will continue to build is more narrow in scope which can allow the models to outperform those large models on the specific tasks they were designed to handle. These more focused models are built with a technique called Machine Learning (ML) and generally are used for tasks that most people take for granted.</p><p>At its simplest ML uses curated data to tune statistical models. To understand just how widespread the use is I will give a few examples of where these models are used.</p><ul><li>Credit Card companies use large datasets of customer transactions with a small percentage of records that show fraud to train ML models to determine if a new transaction is fraudulent or normal for a given account.</li><li>Email providers use large datasets of emails with emails sorted into categories of Primary, Promotions and Social to train ML models to determine which category a new email fits into.</li><li>Ecommerce sites use large datasets of items that users have purchased to train ML models to make recommendations for which items a user may be interested in viewing or purchasing next.</li><li>Ridesharing Companies use large datasets of trips, drivers and users to train an ML model determine what the price for a ride between 2 places should be</li></ul><p>Most of these examples happen all around you and provide value to the consumers without taking a person’s job or causing problems. That being said ML when applied without the proper ethical considerations, oversight and care can cause or at the very least exacerbate problems.</p><figure><img alt="Bing Image Creator prompt “a robot failing” — https://www.bing.com/images/create/a-robot-failing/64c87b4da7114067ba049c9a7f997b9c?id=Gl6yMQenbQy4SOAaH1iXBQ%3d%3d&amp;view=detailv2&amp;idpp=genimg&amp;idpclose=1&amp;FORM=SYDBIC" src="https://cdn-images-1.medium.com/max/1024/1*zPzeQ6Elg0uhLlnUfNnjhw.jpeg" /></figure><p>Some examples of ML mishaps are:</p><ul><li>Models that were trained on historical crime data and end up perpetuating biases — <a href="https://www.technologyreview.com/2019/01/21/137783/algorithms-criminal-justice-ai/">AI is sending people to jail — and getting it wrong | MIT Technology Review</a></li><li>Models trained on historical Real-estate prices lost Zillow $881 Million in a year — <a href="https://www.wsj.com/articles/zillows-shuttered-home-flipping-business-lost-881-million-in-2021-11644529656">Zillow’s Shuttered Home-Flipping Business Lost $881 Million in 2021 — WSJ</a></li></ul><p>These two issues with ML highlight 2 potential issues that AI and ML have and will continue to have in the future.</p><p>The first issue is that AI and ML require training data (examples) and lots of them. Often this means that models are trained with existing biases which will then reflect those biases in the results they output or more simply stated: garbage in means garbage out.</p><p>The second issue is that results out of AI and ML models are often looked at by “data driven” leaders as unquestionable since they were trained on the data they must know more than the people. This can often not be the case and oversight is needed especially when edge cases occur that the models were not trained to handle. More simply a model trained to predict a market using only up markets will never predict a down market and while it may predict great most of the time if it is left unchecked it can have dire consequences when there is a slowdown or change in the market conditions.</p><p>So to wrap up the question of “Should I be afraid of AI?” the answer depends on how the AI is implemented and what controls are in place as guard-rails around it. For many narrowly focused use cases you probably already interact positively with AI in your day to day life. In cases where AI is trained on good quality data, with oversight from teams that are carefully considering the impacts and effects of their models you should not worry much about AI. When teams carelessly train models and implement them without proper oversight or ethical considerations that can be when bigger issues arise and it is probably worth worrying about AI.</p><h3>My Data Science Setup</h3><p>I am a <a href="https://datascience.hp.com/us/en/our-ambassadors/hunter-kempf.html">Z by HP Global Data Science Ambassador</a> which means <a href="https://www.hp.com/us-en/workstations/workstation-pcs.html">Z by HP</a> sponsors my content and has provided me with the following hardware that I used to create this Data Science Project and the others I work on!</p><h3><a href="https://www.hp.com/us-en/workstations/z8.html">Desktop: HP Z8</a></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/291/0*_1bQ02R-1RgPaZOB.png" /></figure><p>Having a powerful desktop is very important for iterating quickly while working on Data Science projects. Not having to wait as long between updates to my code and outputs lets me get more done. The powerful GPUs in my Z8 are very helpful when training large deep learning models.</p><h3><a href="https://www.hp.com/us-en/workstations/zbook-studio.html">Laptop: ZBook Studio</a></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/291/0*hi9NQ28TN8n5SBKA.png" /></figure><p>Being able to work on Data Science projects when I am away from my home office helps me to maximize my productivity. The ZBook Studio I have has a powerful enough CPU and GPU to handle a lot of the iterations and initial models I run.</p><h3>Monitor: HP Z38c</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*H3E4FVpa6iCEf6gj.png" /></figure><p>Having a big high resolution display like the Z38c helps me to improve my productivity by running multiple windows at the same time. I usually have it open with a python notebook and internet browser, chat app or video call open on the other side of the screen.</p><h3><a href="https://h20195.www2.hp.com/v2/GetDocument.aspx?docname=4AA7-5783ENW">Preloaded Software Stack</a></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*qpT1yt-kJcbf-Tz_.gif" /></figure><p>Being able to have the software I use for Data Science come preinstalled and configured to manage package updates helps me get started on projects and worry less about package compatibility issues that arise from updating packages one by one.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1170cb24f347" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Z by HP Data Science Stack Manager: A Game-Changer for Your Data Science Projects]]></title>
            <link>https://medium.com/@HunterKempf/the-z-by-hp-data-science-stack-manager-a-game-changer-for-your-data-science-projects-b5f0867ab998?source=rss-d22bc8bd93b6------2</link>
            <guid isPermaLink="false">https://medium.com/p/b5f0867ab998</guid>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[nvidia]]></category>
            <category><![CDATA[wsl-2]]></category>
            <dc:creator><![CDATA[Hunter Kempf]]></dc:creator>
            <pubDate>Wed, 03 May 2023 01:42:32 GMT</pubDate>
            <atom:updated>2023-05-03T01:42:32.901Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/278/1*9wSpnoJgOwuv1VzdXz6IZQ.png" /></figure><p>Getting a new machine set up to work with an existing or new Data Science project can be difficult. This is especially the case when packages have specific versions that require specific versions of other installed tools like cuda. That is where the Z by HP Data Science Stack Manager can really shine.</p><h3>What is it?</h3><p>At a high level the Stack Manager is a free program that helps install popular Data Science tools on Ubuntu or Windows (WSL 2) Machines. What makes the Stack Manager better than going out on your own and downloading different tools is that HP’s team tests the package combinations in their preconfigured environments so that they work with each other and work with the version of tools installed on your computer (like NVDIA’s CUDA for GPU acceleration). It also allows you to install Development tools like Git and Docker or Development Environments like VS Code and PyCharm without having to download, install or configure them.</p><h3>Why it is a Game-Changer?</h3><p>If you have set up a Computer for Data Science before you likely have run into frustration when you install a package or program and try to use it only to realize you are missing prerequisites or installed a version that wont work with your computer’s existing mix of tools/package versions. When a package only relies on pip dependencies then it will usually sort itself out but Data Science Packages such as Pytorch or Tensorflow rely on specifically built versions for each version of CUDA or other hardware acceleration. This is where the Stack Manager shines, it installs the right packages and versions and lets you as the data scientist focus less on setting up your development environment and more on the Data Science Project.</p><p>Beyond the installation step it can also keep your packages up to date. This can be important especially with open source packages which are often updated to fix vulnerabilities. For example Tensorflow has over 400 CVE’s associated with it on <a href="https://nvd.nist.gov/vuln/search/results?form_type=Basic&amp;results_type=overview&amp;query=Tensorflow&amp;search_type=all&amp;isCpeNameSearch=false">NIST’s National Vulnerability Database</a> so running older versions of common data science packages may introduce security vulnerabilities.</p><p>Ultimately most Data Scientists will want to install these packages or tools anyways so using the Data Science Software Stack just simplifies your life when setting up a new computer but also keeps them up to date for you which avoids much of the hassle that open source packages can introduce.</p><h3>Where Can I Learn More About Stack Manager and Where Can I Download it?</h3><p>To Learn More about Stack Manager visit the <a href="https://www.hp.com/us-en/workstations/learning-hub/z-data-science-preloaded.html">Z by HP Website</a></p><p>To Download Stack Manager or Read the Docs visit the <a href="https://zdocs.datascience.hp.com/">Stack Manager Website</a></p><h3>My Data Science Setup</h3><p>I am a <a href="https://datascience.hp.com/us/en/our-ambassadors/hunter-kempf.html">Z by HP Global Data Science Ambassador</a> which means <a href="https://www.hp.com/us-en/workstations/workstation-pcs.html">Z by HP</a> sponsors my content and has provided me with the following hardware that I used to create this Data Science Project and the others I work on!</p><h3><a href="https://www.hp.com/us-en/workstations/z8.html">Desktop: HP Z8</a></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/291/0*5KbVOmImadJBdLe5.png" /></figure><p>Having a powerful desktop is very important for iterating quickly while working on Data Science projects. Not having to wait as long between updates to my code and outputs lets me get more done. The powerful GPUs in my Z8 are very helpful when training large deep learning models.</p><h3><a href="https://www.hp.com/us-en/workstations/zbook-studio.html">Laptop: ZBook Studio 15</a></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/291/0*rtc2z40k3KCOKHl7.png" /></figure><p>Being able to work on Data Science projects when I am away from my home office helps me to maximize my productivity. The ZBook Studio I have has a powerful enough CPU and GPU to handle a lot of the iterations and initial models I run.</p><h3>Monitor: HP Z38c</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*FPbMmpkzY9kPr1aD.png" /></figure><p>Having a big high resolution display like the Z38c helps me to improve my productivity by running multiple windows at the same time. I usually have it open with a python notebook and internet browser, chat app or video call open on the other side of the screen.</p><h3><a href="https://h20195.www2.hp.com/v2/GetDocument.aspx?docname=4AA7-5783ENW">Preloaded Software Stack</a></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*dliSmM1_oqiyoQrm.gif" /></figure><p>Being able to have the software I use for Data Science come preinstalled and configured to manage package updates helps me get started on projects and worry less about package compatibility issues that arise from updating packages one by one.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b5f0867ab998" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[WSL2 for Data Science]]></title>
            <link>https://medium.com/@HunterKempf/wsl2-for-data-science-f334bad9c9a1?source=rss-d22bc8bd93b6------2</link>
            <guid isPermaLink="false">https://medium.com/p/f334bad9c9a1</guid>
            <category><![CDATA[data-analytics]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[wsl]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[data-engineering]]></category>
            <dc:creator><![CDATA[Hunter Kempf]]></dc:creator>
            <pubDate>Wed, 14 Sep 2022 17:25:06 GMT</pubDate>
            <atom:updated>2022-09-14T17:25:06.558Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tYVVXSmt2iNOptpC.jpg" /><figcaption>image from <a href="https://www.bleepingcomputer.com/news/security/wsl2-now-supports-localhost-connections-from-windows-10-apps/">WSL2 Now Supports Localhost Connections From Windows 10 Apps (bleepingcomputer.com)</a></figcaption></figure><h3>What is WSL2?</h3><p>Before we dive into why you might want to use WSL2 lets talk about what it is. WSL2 is something that allows developers to run linux command line tools and applications inside of windows without the issues of running a VM or dual booting a computer. If you are interested in researching more about it or how to set it up you can visit the <a href="https://docs.microsoft.com/en-us/windows/wsl/about">microsoft docs page</a> which has setup guides and other helpful content.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F48k317kOxqg%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D48k317kOxqg&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F48k317kOxqg%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/0acfa2c505afb1e8013502809ad5a83e/href">https://medium.com/media/0acfa2c505afb1e8013502809ad5a83e/href</a></iframe><h3>Why use WSL2 for Development?</h3><h4>Convenience and Performance</h4><p>Before WSL2 if you wanted to run Linux applications on a windows computer you would have to either dual boot your computer (which is inconvenient to use) or run a VM (which has performance constraints). With WSL2 you can get CPU performance that is much better than a VM and close to dual booting with the convenience of being able to run windows applications at the same time. It also allows for GPU support for containers with NVDIA’s CUDA which for data science can be a game changer. Another convenience factor is that you can access the same filesystem you use in windows from the Linux terminal so you don’t have to worry about creating shared folders or moving them to and from the VM.</p><h4>Linux Development Tools</h4><p>If you have done development work on windows previously you have probably been forced to use tools like Putty or Chocolatey.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/0*WoqGjKxCazEQNaBD" /><figcaption>Screenshot of Putty from <a href="https://www.howtoforge.com/tutorial/putty-remote-x11-desktop-applications/">Using Putty to remotely open GUI applications (howtoforge.com)</a></figcaption></figure><p>While you can get the job done with those tools their linux friendly counterparts of SSH and Homebrew are much easier to setup, use and work with. WSL2 in my opinion is worth it for SSH and Homebrew support alone.</p><h3>Data Science Usecases</h3><p>So now that you understand a little about what WSL2 is and why it is good to use for general software development here are some specific tools you should add to your DS workflow if you have WSL2 on your machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*xKYjpi34gydeWjay.jpg" /><figcaption>image from <a href="https://devclass.com/2018/10/11/nvidia-rapids-machine-learning/">NVIDIA goes higher, faster, RAPIDS for Machine Learning • DEVCLASS</a></figcaption></figure><h4><a href="https://rapids.ai/">NVDIA Rapids</a></h4><p>This is a GPU accelerated python library that can speed up everything from data loading and feature engineering to data conversion to machine learning model training. Rapids works with Conda and Docker on Linux or WSL2 systems. Rapids integrates with Spark for GPU accelerated ETL, XGBoost for GPU accelerated model training and with CuDF (which is a similar interface to pandas) for data frame operations and transformations. As the size of a dataset grows the benefits of GPU acceleration becomes much more important.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4k6LwfsiR1SseNxA.png" /><figcaption>logo from <a href="https://www.docker.com/">Home — Docker</a></figcaption></figure><h4>GPU support for Docker</h4><p>With WSL2 you can build docker images that paravirtualize your GPU, which is a fancy way of saying that NVDIA GPU resources are available through a software interface to a container or VM. This means you can run a GPU accelerated application locally as a container on your windows machine before deploying it to a cloud environment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ue834wkk68TLtr0k.png" /><figcaption>image from <a href="https://code.visualstudio.com/brand">Visual Studio Code and VS Code icons and names usage guidelines</a></figcaption></figure><h4>Visual Studio Code</h4><p>VS Code is my code editor of choice and it has a plugin for connecting to a WSL backend. Thus you can run linux code and libraries in the WSL backend while running the same code editor in windows that you are used to using. It really is a best of both worlds situation for creating data science code that has linux dependencies.</p><h4><a href="https://github.com/saharmor/dalle-playground">Dalle-playground </a>(and other Linux reliant apps)</h4><p>Many of the cool new projects like dalle-mini and apps built on top of them like dalle-playground rely on linux libraries but can be run in a docker container with WSL2’s NVDIA docker support.</p><h3>My Data Science Setup</h3><p>I am a <a href="https://datascience.hp.com/us/en/our-ambassadors/hunter-kempf.html">Z by HP Global Data Science Ambassador</a> which means <a href="https://www.hp.com/us-en/workstations/workstation-pcs.html">Z by HP</a> sponsors my content and has provided me with the following hardware that I used to create this Data Science Project and the others I work on!</p><h3><a href="https://www.hp.com/us-en/workstations/z8.html">Desktop: HP Z8</a></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/291/0*6S_YWxpLin_AJ3QQ.png" /></figure><p>Having a powerful desktop is very important for iterating quickly while working on Data Science projects. Not having to wait as long between updates to my code and outputs lets me get more done. The powerful GPUs in my Z8 are very helpful when training large deep learning models.</p><h3><a href="https://www.hp.com/us-en/workstations/zbook-studio.html">Laptop: ZBook Studio 15</a></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/291/0*PKtDijCxPLmfK4Pe.png" /></figure><p>Being able to work on Data Science projects when I am away from my home office helps me to maximize my productivity. The ZBook Studio I have has a powerful enough CPU and GPU to handle a lot of the iterations and initial models I run.</p><h3>Monitor: HP Z38c</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*lj3_nocS4_QKJJjO.png" /></figure><p>Having a big high resolution display like the Z38c helps me to improve my productivity by running multiple windows at the same time. I usually have it open with a python notebook and internet browser, chat app or video call open on the other side of the screen.</p><h3><a href="https://h20195.www2.hp.com/v2/GetDocument.aspx?docname=4AA7-5783ENW">Preloaded Software Stack</a></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*Yel5dRFFVdQHxBOE.gif" /></figure><p>Being able to have the software I use for Data Science come preinstalled and configured to manage package updates helps me get started on projects and worry less about package compatibility issues that arise from updating packages one by one.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f334bad9c9a1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI for Good: Trash Sorting/Recycling]]></title>
            <link>https://medium.com/@HunterKempf/ai-for-good-trash-sorting-recycling-4bf04d8eeb63?source=rss-d22bc8bd93b6------2</link>
            <guid isPermaLink="false">https://medium.com/p/4bf04d8eeb63</guid>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[environment]]></category>
            <category><![CDATA[recycling]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Hunter Kempf]]></dc:creator>
            <pubDate>Mon, 25 Jul 2022 23:40:03 GMT</pubDate>
            <atom:updated>2022-07-25T23:40:03.422Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Tq0QVwq8jbECmG09uK5EHg.jpeg" /><figcaption>AI Trash Sorting at Tim Hortons</figcaption></figure><p>Recently I was visiting Vancouver for vacation and came across an interesting trash can at Tim Hortons. Its not the kind of thing that many people give a second thought to but it is a practical example of an implementation of AI for Good. I was interested in learning more about the company behind it and the benefits of using computer vision to help people sort their trash into the proper bins and will share what I have found about the company. Also I will go through an overview of how I would build one of these if I was tasked with creating something similar.</p><h3>Oscar Sort</h3><p>After some quick searching I found that this AI Trash sorting solution comes from a company called <a href="https://intuitiveai.ca/">intuitive</a>. They market Oscar Sort as a Zero Waste and Zero Manual Sorting solution.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FtfHzroHA_Pc%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DtfHzroHA_Pc&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FtfHzroHA_Pc%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/dca45923b60da499660ea01db50d8de1/href">https://medium.com/media/dca45923b60da499660ea01db50d8de1/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FRn_f5d4jyS4%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DRn_f5d4jyS4&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FRn_f5d4jyS4%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/bdef9cd32a6ab896356c8ac60e6609a3/href">https://medium.com/media/bdef9cd32a6ab896356c8ac60e6609a3/href</a></iframe><p>From their videos it seems like they have two main goals: automatically measure waste in its different forms and educate people on recycling in real time. It can also give users rewards for properly sorting their waste/recycling/compost. This application of Computer Vision is really cool and seems to be making an impact! Their website touts that it promotes up to a 300% increase in recycling, up to a 40% savings for operations and as a way to gamify recycling.</p><p>If you are looking for more information here are a few other YouTube Videos:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FSc2hdmwGgnU%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DSc2hdmwGgnU&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FSc2hdmwGgnU%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/253f5f1e154569fc88977e95c2058dd3/href">https://medium.com/media/253f5f1e154569fc88977e95c2058dd3/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F7XhYS3WFt58%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D7XhYS3WFt58&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F7XhYS3WFt58%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/59be33e4362d8d8b8f53753abc29db42/href">https://medium.com/media/59be33e4362d8d8b8f53753abc29db42/href</a></iframe><h3>How I would create an AI enabled trash can</h3><p>This AI enabled trash can has 3 main components that combine to create the product: Hardware, Backend Software and Frontend Software.</p><h4>Hardware</h4><p>This is maybe the hardest part to figure out since even in July of 2022 there seems to be a pretty big shortage of IOT hardware available in retailers and the ones that have stock like amazon or newegg have highly marked up prices from resellers trying to profit off the shortages.</p><p><strong>Main Processor</strong></p><p>Raspberry Pi — While these cheap all purpose ARM based computers should cost from $35 to $75 depending on the RAM size they are sold out at most retailers and sell for well over $100 for the cheaper RAM sizes on Amazon right now.</p><p>Jetson Nano — These are GPU development boards sold by NVDIA that do not need a separate USB accelerator to handle high FPS for an object detection model on video feeds. They should cost around $60 but sell for upwards of $400 on Amazon right now.</p><p>Coral Dev Board — These are TPU development boards sold by Google and like the Jetson Nano wont need a separate USB accelerator to handle high FPS for an object detection model on video feeds. They should cost around $130 but are selling for $155 on Amazon right now which is a bit of a markup but not too bad compared to some of the others.</p><p>Best Option: Normally I think a Raspberry Pi is the best option since they are cheap, multipurposed and have tons of great documentation. Due to the current markups I think the Coral Dev Board is the best option since it has all the acceleration needed to run Object Detection at good frame rates and is cheaper than a Raspberry Pi + USB Accelerator.</p><p><strong>USB Accelerator</strong></p><p>Coral USB Accelerator — This is a USB connected TPU board that works with a computer like a Raspberry pi to speed up execution time for neural networks used in tasks like Object Detection. It is restricted to using TensorFlow Lite models so that may reduce the model choices it can be used with. They should cost around $60 but are selling for over $350 right now on Amazon.</p><p>Intel Neural Compute Stick 2 — This is also a USB connected accelerator board that works with a computer like a raspberry pi. It can work with many different Neural Network architectures which allows for a lot of flexibility with model choices. It should cost around $70 but is selling for around $200 right now on Ebay.</p><p>Best Option: At MSRP I would chose a Coral USB accelerator since it <a href="https://www.arrow.com/en/research-and-events/articles/google-coral-edge-tpu-accelerator-vs-intel-neural-compute-stick-2">performs better in reviews</a> but at the current prices it is hard to justify their high costs compared to something like the Coral Dev Board which contains the same Coral Accelerator chip and also is a fully functional computer for less than the current cost of either USB Accelerator.</p><p><strong>Camera</strong></p><p>This will depend a bit on how much resolution is needed by the backend object detection model but generally if the main processor is a raspberry pi then a pi camera is going to be best (since the onboard GPU can handle around 30 FPS of HD images without using the CPU which will be running the detection model) and if not then a general USB camera should be fine (something around 30fps and 720p should be fine). Most object detection models that run in real time on the hardware above will use smaller image sizes like YOLOv5 which uses 640 by 640 input images so getting something like a 4k camera for this application is not going to improve the results much if at all. Both Pi cameras and cheap USB cameras can be found in the $10–$15 range so there really isn’t too much of a difference in price.</p><p><strong>Display</strong></p><p>This will be used to prompt the user to place their item into the correct bin and to display instructions for how to use the device. Resolution shouldn’t be too important here since the front end should be mostly large text and images compared to the screen size.</p><p>I think a cheap 24 or 32 inch tv is the best option here since they can be easily VESA mounted and are currently available on Amazon or Best Buy for ~$120 at the cheapest. Long term I do not know what the life of the screen would be since it is not rated for continuous use. So a better alternative would be to get something like a <a href="https://www.bhphotovideo.com/c/products/Flat-Panel-Displays/ci/16073/N/4205668456?sort=PRICE_LOW_TO_HIGH&amp;filters=fct_display-size_4953%3A18in%7C19in%7C20in%7C21in%7C22in%7C23in%7C24in%7C26in%7C27in%7C28in%7C30in%7C31in%7C32in">Commercial Display</a> which goes for ~ $300 at the cheapest for those sizes.</p><p><strong>Cost</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/230/1*mvwVcm-vevjd1IyMo18FDg.png" /><figcaption>Cost Breakdown of Prototype</figcaption></figure><p>These costs include electronic components and don’t include any mounting hardware or other materials to make a working copy. I am far from an expert there so I will leave those costs of a final prototype out of this analysis.</p><p><strong>Cheapest Option (using MSRP):</strong></p><ul><li>$35 for a Raspberry Pi</li><li>$60 for a Coral USB Accelerator</li><li>$10 for a cheap Pi Camera</li><li>$120 for a cheap 32&quot; TV</li></ul><p>Total Cost: $225</p><p><strong>More Realistic Option (using Today’s Prices):</strong></p><ul><li>$155 for a Coral Dev Board</li><li>$20 for a decent USB webcam or a Coral Dev Board camera</li><li>$300 for a 32&quot; Commercial Display</li></ul><p>Total Cost: $475</p><p>Having a more reliable display and an all in one dev board with a built in accelerator chip will make this solution more reliable when it is deployed in the real world but do add cost. Also obviously with some components marked up so much on second hand sites it forces some design choices that otherwise might not be ideal.</p><h4>Backend Software</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/773/0*ruIJejgzP_Mpdmq6.jpg" /><figcaption>Sourced from the YOLOv7 GitHub page</figcaption></figure><p>The backend for this product will be pretty simple we need a model that can detect objects and in the case of multiple objects distinguish which is the primary object. For prototyping or initial setup I would suggest using a <a href="https://github.com/ultralytics/yolov5/wiki/Train-Custom-Data">finetuned version of YOLOv5</a> which is easy to train and can run at relatively high FPS even on cheaper hardware. Here the model will be close to as good as the cutting edge object detection models in metrics like Average Precision and inference time and has the benefit of many examples and tutorials out there which can speed up execution time. In the future it may be worth it to look into models like <a href="https://arxiv.org/pdf/2207.02696.pdf">YOLOv7</a> which has a recently released (July 2022) <a href="https://github.com/WongKinYiu/yolov7">GitHub implementation</a> since it promises model versions that are much faster for the same Average Precision or have improved Average Precision for the same inference time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/902/0*VnANpdZmY7we3XWD.png" /><figcaption>Sourced from the YOLOv7 GitHub page</figcaption></figure><p>With either model the process will be relatively similar. First collect, annotate and label images of the types of common trash you want to label using a prototype of the hardware. Then finetune a version of the object detection model chosen. Finally test the finetuned model on the video feed coming from the prototype of the hardware and see how the real world performance is. If the model is running too slow or the model accuracy is too low then repeat the steps with a smaller (for low FPS issues) or larger (for poor accuracy) version of the model until acceptable performance is reached. Additional training data can also be collected which may improve model accuracy.</p><h4>Frontend Software</h4><p>Admittedly I am not the best at front end development and if I wanted to emulate something similar to what OSCAR has I would probably create a PowerPoint or other presentation and screen record different clips or static images that could be triggered by the backend program to display to the screen when users walk up to the display, and when objects are recognized as trash, compost or recycling.</p><h3>My Data Science Setup</h3><p>I am a <a href="https://datascience.hp.com/us/en/our-ambassadors/hunter-kempf.html">Z by HP Global Data Science Ambassador</a> which means <a href="https://www.hp.com/us-en/workstations/workstation-pcs.html">Z by HP</a> sponsors my content and has provided me with the following hardware that I used to create this Data Science Project and the others I work on!</p><h3><a href="https://www.hp.com/us-en/workstations/z8.html">Desktop: HP Z8</a></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/291/0*Y0AYVEtOuKTRSqqp.png" /></figure><p>Having a powerful desktop is very important for iterating quickly while working on Data Science projects. Not having to wait as long between updates to my code and outputs lets me get more done. The powerful GPUs in my Z8 are very helpful when training large deep learning models.</p><h3><a href="https://www.hp.com/us-en/workstations/zbook-studio.html">Laptop: ZBook Studio 15</a></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/291/0*-isVa46XVACpuGRX.png" /></figure><p>Being able to work on Data Science projects when I am away from my home office helps me to maximize my productivity. The ZBook Studio I have has a powerful enough CPU and GPU to handle a lot of the iterations and initial models I run.</p><h3>Monitor: HP Z38c</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*GNoTZ7bvBSSF3yF-.png" /></figure><p>Having a big high resolution display like the Z38c helps me to improve my productivity by running multiple windows at the same time. I usually have it open with a python notebook and internet browser, chat app or video call open on the other side of the screen.</p><h3><a href="https://h20195.www2.hp.com/v2/GetDocument.aspx?docname=4AA7-5783ENW">Preloaded Software Stack</a></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*O941zCVujHpxT2Lt.gif" /></figure><p>Being able to have the software I use for Data Science come preinstalled and configured to manage package updates helps me get started on projects and worry less about package compatibility issues that arise from updating packages one by one.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4bf04d8eeb63" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Public Data for Cybersecurity Data Science Projects]]></title>
            <link>https://medium.com/@HunterKempf/public-data-for-cybersecurity-data-science-projects-3af6c0354025?source=rss-d22bc8bd93b6------2</link>
            <guid isPermaLink="false">https://medium.com/p/3af6c0354025</guid>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Hunter Kempf]]></dc:creator>
            <pubDate>Mon, 11 Jul 2022 20:47:29 GMT</pubDate>
            <atom:updated>2022-07-11T20:47:29.653Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XtnYegzS5oCV0xWGEgNaiQ.jpeg" /><figcaption>Photo by Markus Spiske from Pexels: <a href="https://www.pexels.com/photo/technology-computer-desktop-programming-113850/">https://www.pexels.com/photo/technology-computer-desktop-programming-113850/</a></figcaption></figure><p>Finding good data to use for a Data Science project can be difficult especially when you branch outside of more common topics. Cybersecurity generally deals with data that companies keep private and don’t share openly due to the potential for disclosing private employee and/or company information. This can make it hard to find cyber data to use in either personal data science projects or to find public data to train a model to apply to internal company data. I have run into this problem many times with the intersection of data science and cybersecurity and have collected many different resources for finding or creating these domain specific datasets.</p><p>The goal of this article is to create a collection of datasets and resources to create your own cybersecurity focused datasets with short descriptions of the data and ideas for potential projects to build off of them.</p><h3>Kaggle</h3><p><a href="https://www.kaggle.com/">Kaggle: Your Home for Data Science</a></p><p>Kaggle is a good source for usable data. It also has the benefit of public code and discussion sections where you can learn from, share and collaborate with other users working on the same dataset. The downside when trying to do anything more than a side project is that the datasets can be often preprocessed into formats that are different than how they would be found normally and thus are less useful in training models that are applicable to internal datasets. Often these preprocessed datasets come in the form of tabular datasets which are the easiest for analysis and model building.</p><h4>Email Datasets</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qZ45KkhspfcwmnKA19KXHA.jpeg" /><figcaption>Photo by Andrea Piacquadio from Pexels: <a href="https://www.pexels.com/photo/man-in-white-dress-shirt-sitting-on-black-rolling-chair-while-facing-black-computer-set-and-smiling-840996/">https://www.pexels.com/photo/man-in-white-dress-shirt-sitting-on-black-rolling-chair-while-facing-black-computer-set-and-smiling-840996/</a></figcaption></figure><p>Email is an attack vector that is commonly used by cybercriminals in Phishing and Fraud Attacks. Publicly available email datasets tend to be from the early to mid 2000’s so while they may be interesting for personal projects they will likely have limited benefits in their use for building models that can detect modern threats. Common tasks for email datasets are: Exploratory Data Analysis, Network Analysis and Classification.</p><p><a href="https://www.kaggle.com/datasets/rtatman/fraudulent-email-corpus">Fraudulent E-mail Corpus | Kaggle</a></p><p>This dataset contains the email bodies and metadata for the so called “Nigerian” Fraud emails and has 2.5k emails ranging from 1998 to 2007.</p><p><a href="https://www.kaggle.com/datasets/llabhishekll/fraud-email-dataset">Fraud Email Dataset | Kaggle</a></p><p>This is a cleaned up version of the previous dataset that just keeps the email bodies and discards the other email metadata, so it would be ideal for an NLP model that attempts to just use the email text to classify fraud and non-fraud emails.</p><p><a href="https://www.kaggle.com/datasets/wcukierski/enron-email-dataset">The Enron Email Dataset | Kaggle</a></p><p>This dataset contains ~500k emails from ~150 users and has spam, fraud and other emails within it. This particular dataset doesn’t have those emails labeled but could be an interesting set to test a model built on another labeled dataset.</p><p><strong>Project Ideas for Email Datasets:</strong></p><ul><li>General Questions/EDA: Are first time encounters with an email address more likely to be fraud/spam than an address with more email history? What other datasets can be joined with the emails? (think org chart with position, level etc or other publicly available data) What limitations does this dataset have if models trained or finetuned on it are applied to a businesses’ internal email database.</li><li>Sentiment Analysis: Run a sentiment analysis model on the emails to see patterns and/or trends in what users send. The emails can be grouped by day of the week, month of the year or other time based groups as well as by job function, label or any other variable.</li><li>Classification: Classify emails into Fraud/Not Fraud, Spam/Not Spam, Advertisement/Not Advertisement, Work Related/Not Work Related or a Multiclass classification with a combination of the above.</li><li>Network Analysis: Who emails who (can split by job function/org-hierarchy), are Fraud/Spam email addresses sending the same/very similar emails to different users (potentially connected email accounts)</li></ul><h4>Website Datasets</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FaDdPX7-JtS0lDge8dsJpg.jpeg" /><figcaption>Photo by Format: <a href="https://www.pexels.com/photo/photo-of-imac-near-macbook-1029757/">https://www.pexels.com/photo/photo-of-imac-near-macbook-1029757/</a></figcaption></figure><p>Website Datasets tend to focus on the url or metadata of a website but some include html of the pages. Common tasks for website datasets are: Exploratory Data Analysis, Content extraction and Classification.</p><p><a href="https://www.kaggle.com/datasets/shashwatwork/phishing-dataset-for-machine-learning">Phishing Dataset for Machine Learning | Kaggle</a></p><p>This Dataset contains 10k rows and 48 columns of tabular data about a website (created from the url, html and other webiste metadata) as well as id and label columns and was collected from May 2015 to June 2017.</p><p><a href="https://www.kaggle.com/datasets/huntingdata11/phishing-website-html-classification">Phishing Website HTML Classification | Kaggle</a></p><p>This Dataset contains ~10.3k html files of Phishing and NotPhishing websites collected from 2/28/2022 to 3/24/2022. One nice thing is it contains the HTML not just generated features so it will be more similar to how data would be if a model was put into production. It also can allow for NLP models like transformers that can use the text data directly.</p><p><a href="https://www.kaggle.com/datasets/antonyj453/urldataset">Malicious_n_Non-Malicious URL | Kaggle</a></p><p>This Dataset contains 411k urls and labels which correspond to if a website attempts to install malware or not. It is unbalanced and is roughly 80% Non-Malicious and 20% Malicious urls.</p><p><strong>Project Ideas for Website Datasets:</strong></p><ul><li>Exploratory Data Analysis: What patterns do you see in the URLs or websites. Are there basic features you can generate that show a higher or lower rate of being Malicious? (Length of URL, number of “.”, etc)</li><li>Classification: classify websites into Malicious/Non-Malicious groups using feature generation or NLP type models</li><li>Clustering: group similar websites/urls together to find patterns like crypto phishing sites, ecommerce phishing sites or malware download sites</li><li>Content Extraction: Using NLP models extract the important words and phrases from a website. Then using those important words/phrases build a classification or clustering model.</li></ul><h4>Malware Datasets</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I5cfGM7n7kMkU2mhlMNlfw.jpeg" /><figcaption>Photo by Sora Shimazaki: <a href="https://www.pexels.com/photo/crop-cyber-spy-hacking-system-while-typing-on-laptop-5935794/">https://www.pexels.com/photo/crop-cyber-spy-hacking-system-while-typing-on-laptop-5935794/</a></figcaption></figure><p>These datasets focus on malware and metadata extracted from it. They can range from tabular to image data but all focus on malware samples that were collected from infected systems or honeypots. Some common tasks for Malware would be Exploratory Data Analysis and Classification.</p><p><a href="https://www.kaggle.com/competitions/malware-classification/data">Microsoft Malware Classification Challenge (BIG 2015) | Kaggle</a></p><p>This is a huge dataset (~500GB) consisting of Malware samples from 9 different families. The dataset has .asm (assembly) and .bytes files for the malware and will require preprocessing before building models.</p><p><a href="https://www.kaggle.com/competitions/microsoft-malware-prediction/data">Microsoft Malware Prediction | Kaggle</a></p><p>This is smaller than the previous dataset but still pretty big (~8.5GB) and is in a much easier format to consume and get started since it is already in tabular format. The dataset is a binary classification which again should make life easier compared to the previous dataset.</p><p><a href="https://www.kaggle.com/datasets/saurabhshahane/android-permission-dataset">Android Permission Dataset | Kaggle</a></p><p>This dataset contains tabular metadata about Android apps including information like the app name, rating and the permissions it asks users to grant. It has over 180 columns of information including a target column of if an app is benign or malicious and is around 55MB in size.</p><p><a href="https://www.kaggle.com/datasets/matthewfields/malware-as-images">Malware as Images | Kaggle</a></p><p>This is an interesting approach where PE (Portable Executable) files of Malware and Benign programs were turned into images using <a href="https://github.com/fieldsfieldsfields/mallook">malook</a>. The dataset contains multiple DPI resolution images of 61 Benign and 75 Malicious Files.</p><p><a href="https://www.kaggle.com/datasets/saurabhshahane/classification-of-malwares">Classification of Malwares (CLaMP) | Kaggle</a></p><p>The CLaMP dataset is a tabular dataset of features extracted from PE files of Malicious and Benign programs. This version has 54 base features and 15 derived features and 5184 total samples.</p><p><a href="https://www.kaggle.com/datasets/piyushrumao/malware-executable-detection">Malware Executable Detection | Kaggle</a></p><p>This Dataset has 371 samples and 531 features extracted from windows malware. Since it has more features than samples it would be a great dataset to practice dimensionality reduction techniques on.</p><p><strong>Project Ideas for Malware Datasets:</strong></p><ul><li>Analyze the Malware samples for feature trends that are predictive for malicious or normal programs</li><li>Train a Classification model to predict Malicious or Normal programs</li><li>Build a dashboard to visualize the data from the Malware and normal samples</li></ul><h3>Network Logs</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-09iuNgeeQ3FYzVfTc4cKQ.jpeg" /><figcaption>Photo by Brett Sayles: <a href="https://www.pexels.com/photo/cables-connected-on-server-2881229/">https://www.pexels.com/photo/cables-connected-on-server-2881229/</a></figcaption></figure><p><a href="https://www.kaggle.com/datasets/hawkcurry/2019-trendmicro-ctf-wildcard-400">2019 Trendmicro CTF Wildcard 400 | Kaggle</a></p><p>This Dataset consists of timeseries network logs that contain malicious activity. It comes from a CTF (Capture the Flag) challenge and has 10 questions that can focus your analysis.</p><p><a href="https://www.kaggle.com/datasets/mohamedamineferrag/edgeiiotset-cyber-security-dataset-of-iot-iiot">Edge-IIoTset Cyber Security Dataset of IoT &amp; IIoT | Kaggle</a></p><p>This Dataset consists of malicious and normal network traffic from different IOT devices. It could be useful for exploratory analysis or for classification.</p><p><a href="https://www.kaggle.com/datasets/jacobvs/ddos-attack-network-logs">DDOS Attack Network Logs | Kaggle</a></p><p>This Dataset ~2.1M records of labelled network logs with 27 features. The logs contain 4 malicious traffic types and normal traffic so it would be perfect for a multiclass classification model and will likely require preprocessing before building models off of it.</p><p><strong>Project Ideas for Network Log Datasets:</strong></p><ul><li>Analyze the traffic patterns to detect the indicators of malicious traffic</li><li>Make your own deterministic Firewall rules that would detect and stop malicious traffic</li><li>Train a Classification model that can detect and label malicious traffic</li><li>Build a dashboard showing traffic patterns and labelling anomalous or malicious traffic</li></ul><h3>PhishTank</h3><p><a href="https://phishtank.org/">PhishTank | Join the fight against phishing</a></p><p>PhishTank is a live feed of user submitted Phishing sites. Other users can look at a site and vote on if it is Malicious or Not Malicious and each submission is then classified based on the votes. This is an awesome source for real world live examples of phishing websites.</p><p><strong>Project Ideas for PhishTank:</strong></p><ul><li>Website Scraper: Build a bot that scrapes the content from urls posted to PhishTank (be careful to sandbox this scraper so you don’t accidentally infect your personal computer)</li><li>Website Classifier: Extend the Scraper to also give the url/websites submitted to PhishTank a classification score or probability of Malicious/Non-Malicious or a classification of the type of malicious site it is Crypto Phish, Bank Phish, Ecommerce Phish, etc.</li><li>Real-time Dashboard: Extend your Classifier to build out a real time dashboard with metrics on the sites you scrape, their classifications and other metrics over time. This can be done in Tableau, PowerBI, Streamlit, JavaScript or any other dashboarding/website software. It will require a bit of Data Engineering and Machine Learning Engineering skills to deploy but will be a really interesting project when complete.</li></ul><h3>My Data Science Setup</h3><p>I am a <a href="https://datascience.hp.com/us/en/our-ambassadors/hunter-kempf.html">Z by HP Global Data Science Ambassador</a> which means <a href="https://www.hp.com/us-en/workstations/workstation-pcs.html">Z by HP</a> sponsors my content and has provided me with the following hardware that I used to create this Data Science Project and the others I work on!</p><h3><a href="https://www.hp.com/us-en/workstations/z8.html">Desktop: HP Z8</a></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/291/0*GjQK72_ETRkryVyD.png" /></figure><p>Having a powerful desktop is very important for iterating quickly while working on Data Science projects. Not having to wait as long between updates to my code and outputs lets me get more done. The powerful GPUs in my Z8 are very helpful when training large deep learning models.</p><h3><a href="https://www.hp.com/us-en/workstations/zbook-studio.html">Laptop: ZBook Studio 15</a></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/291/0*Hr50ts4up_T8wyfB.png" /></figure><p>Being able to work on Data Science projects when I am away from my home office helps me to maximize my productivity. The ZBook Studio I have has a powerful enough CPU and GPU to handle a lot of the iterations and initial models I run.</p><h3>Monitor: HP Z38c</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*k07A5PfQ14Tg_PQn.png" /></figure><p>Having a big high resolution display like the Z38c helps me to improve my productivity by running multiple windows at the same time. I usually have it open with a python notebook and internet browser, chat app or video call open on the other side of the screen.</p><h3><a href="https://h20195.www2.hp.com/v2/GetDocument.aspx?docname=4AA7-5783ENW">Preloaded Software Stack</a></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*ZCofrmwBaFttZYXV.gif" /></figure><p>Being able to have the software I use for Data Science come preinstalled and configured to manage package updates helps me get started on projects and worry less about package compatibility issues that arise from updating packages one by one.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3af6c0354025" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Data Science Home Office/Setup —  Summer of 2022]]></title>
            <link>https://medium.com/@HunterKempf/my-data-science-home-office-setup-summer-of-2022-a9afe407c1c0?source=rss-d22bc8bd93b6------2</link>
            <guid isPermaLink="false">https://medium.com/p/a9afe407c1c0</guid>
            <category><![CDATA[computers]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[software]]></category>
            <category><![CDATA[hardware]]></category>
            <category><![CDATA[desk]]></category>
            <dc:creator><![CDATA[Hunter Kempf]]></dc:creator>
            <pubDate>Tue, 07 Jun 2022 16:42:04 GMT</pubDate>
            <atom:updated>2022-06-07T16:42:04.434Z</atom:updated>
            <content:encoded><![CDATA[<h3>My Data Science Home Office/Setup — Summer of 2022</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eihZz6u56elGimJeeFbadw.jpeg" /></figure><p>When working on data science problems the right tools, setup and hardware can not only simplify the process of working with data and training models but can also simplify the setup time and allow for better productivity.</p><p>I have now been using my current setup for around 8 or so months and I think that it might be interesting for other Data minded folks to see my setup, learn from it and maybe even offer their advice on improvements to it. I will discuss my current home office/setup and talk about what I like about the hardware/software and furniture I use as well as discussing some improvements I want to make in the future.</p><h3>Computer Hardware</h3><p>I am a <a href="https://datascience.hp.com/us/en/our-ambassadors/hunter-kempf.html">Z by HP Global Data Science Ambassador</a> which means <a href="https://www.hp.com/us-en/workstations/workstation-pcs.html">Z by HP</a> sponsors my content and has provided me with the following hardware that I use to create Data Science Projects.</p><h3><a href="https://www.hp.com/us-en/workstations/z8.html">Desktop: HP Z8</a></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/291/0*ehp5CzEnTP-jSXwn.png" /></figure><p>Having a powerful desktop is very important for iterating quickly while working on Data Science projects. Not having to wait as long between updates to my code and outputs lets me get more done. The powerful A6000 GPUs in my Z8 are very helpful when training large deep learning models.</p><p>A quick example of where this desktop was invaluable to my work is a project I worked on this spring for my Masters in Cybersecurity from Georgia Tech. The goal of the project was to predict if a website was a Phishing site or Non-Phishing site using Transformer Language models like GPT and BERT using the HTML from the site. In order to fine tune larger Transformer models like GPT-J 6B on the full HTML of a website I used the 384 GB of Ram in my Z8 and CPU training. For smaller and medium sized models which could fit in the 48 GB of GPU memory in the A6000s I was able to use GPU training which is much faster using NVDIA’s Cuda acceleration.</p><p>As a Data Scientist it is awesome knowing that I can work with the latest cutting edge models and techniques for the range of problems I encounter and my Z8 can not only complete the analysis but can do so quickly.</p><h4>Future Improvements Ideas with my Desktop:</h4><ul><li>In the future I want to figure out a good pattern for securely remotely accessing my Z8 to have access to my highest performance compute even when I am away from my home office. From what I have seen ZCentral Remote boost is something I plan to investigate to see if it fits this need.</li><li>More GPU memory. When finetuning the largest transformer models I ran into a few cases where the 48 GB of GPU memory was filled up and I needed to finetune on the CPU using the RAM. NVDIA is expected to launch their next gen consumer graphics cards later in 2022 so hopefully they will also launch new workstation GPUs with increased memory that will allow for training bigger and bigger models without having to use CPU training.</li></ul><h3><a href="https://www.hp.com/us-en/workstations/zbook-studio.html">Laptop: ZBook Studio 15</a></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/291/0*WcoQxhznNzCXnQms.png" /></figure><p>Being able to work on Data Science projects when I am away from my home office helps me to maximize my productivity. The ZBook Studio I have has a powerful enough CPU and GPU to handle a lot of the iterations and initial models I run.</p><p>Going back to the project I worked on to classify Phishing websites, when I started working on the project I was visiting my family for Christmas and away from my desktop. I wanted to prototype out what a model would look like and try to make sure that it would be a problem that Language Transformer models could solve. Started writing the code and was able to parameterize it so for larger models all I would need to change was the model name from hugging face and the max number of tokens to keep from the HTML. This allowed me to prototype on my laptop training smaller versions of GPT2, GPT-neo and BERT to confirm that my code was working correctly and that the data I had collected could be useful for the classification problem I wanted to solve.</p><p>I know most people need the flexibility a laptop offers and so this part of my setup is probably most relevant to the larger audience. This machine is very capable and mine has an A5000 GPU which is good enough to handle all but the bigger neural nets and can quickly train even on the CPU. Generally I much prefer having local GPU compute on a laptop (if you can get it) to something like Colab or Kaggle GPUs which have data size and time restrictions or to using cloud resources which can get expensive and can require a lot more configuration to use.</p><h4>Future Improvements with my Laptop:</h4><ul><li>I don’t really have many limitations that I have run into with my laptop but when using the GPU and/or CPU in intensive tasks the battery does drain relatively quickly so I usually am training larger models while connected to wall power.</li></ul><h3>Monitor: HP Z38c</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*lNGUSQZaFuyLgVtH.png" /></figure><p>Having a big high resolution display like the Z38c helps me to improve my productivity by running multiple windows at the same time. I usually have it open with a python notebook and internet browser, chat app or video call open on the other side of the screen.</p><p>There isn’t much more to say with this monitor. It is a high resolution monitor that I can use with my desktop and laptop and can even charge my laptop through USB-C. It is the perfect size for me and a great resolution so I don’t have too much that I would change about it. The newer versions of it even have an integrated web cam which would be a nice to have.</p><h4>Future Improvements with my Display:</h4><ul><li>In the future I am interested in trying out something like a virtual desktop through VR</li></ul><h3>Peripherals</h3><p>Mic: Blue Yeti</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*HIB3Tr17PfM67Br66ZV-lg.jpeg" /></figure><p>This mic is awesome! I have a mic arm that keeps it up and out of the way when I am not using it which can easily be adjusted when I need it. I mostly use it for video calls and honestly it is a bit overkill for that but has a great software interface for tweaking sound and multiple mic patterns to avoid background noise.</p><p>Webcam: Razer Kiyo</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/0*P8m3mUrwQBLKqSx4" /></figure><p>I needed a webcam for my desktop and went with the Razer Kiyo after looking around a bit. Its not the perfect webcam but it can do 1080p @ 30fps and for any video calls I am on looks pretty clear. I tend to put the ring light component to medium or low brightness and just keep my room lights on so that part of the webcam is a bit over hyped. I would probably not recommend this webcam to others since there are better webcams for the price or cheaper ones for about the same picture quality.</p><p>Keyboard: HP USB Premium Keyboard</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/573/0*Hlfa02gHdT2BPmZQ.png" /></figure><p>I have no complaints with the HP keyboard. It has a very premium look and feel and is pretty heavy. For a slim keyboard you pretty much get the same type of key travel as a laptop which I am fine with. I know some people tend to go crazy with their RGB and mechanical keyboards but this one works great for my day to day coding and productivity work.</p><p>Mouse: HP Wired PC Mouse</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/0*sJhSAsGxuv_GoFPC" /></figure><p>Similarly to my keyboard I tend to not to do anything crazy with my mouse so a basic mouse is all I need. This works fine for any Data or productivity work I do but if I was playing games or anything more I would probably upgrade it.</p><h4>Future Improvements with my Peripherals:</h4><ul><li>I have run into some situations where I want to use a single keyboard and mouse with both my laptop and desktop. I am considering getting a KVM switch that can allow me to use my keyboard, mouse, mic and webcam on either computer without having to plug or unplug.</li></ul><h3>Software</h3><p>There is a lot of software that I use in my day to day projects and work and these are a few that I recommend. It is not an exhaustive list but I would love to hear in the comments which ones you agree with or which ones you would add to this list.</p><h4>WSL2</h4><p>This is my favorite software I have used since I set up my new computers. Both of my computers have WSL2 (Windows Subsystem for Linux) which allows me to run Linux native software while maintaining the windows look and feel as well as windows program compatibility. Since many advanced programs in data science are built for Linux this allows me to use cool tools like NVDIA Rapids, Apache Kafka and many other tools that just work better with Linux than Windows. Also this gives a Linux terminal that you can use commands like curl, ping, etc. that are nice to have’s for lots of situations.</p><h4>Z by HP Data Science Stack/Stack Manager</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*RiOdsDjD-zvAD465.gif" /></figure><p>My computers came preinstalled with the Z by HP Data Science Software stack which simplified my setup from day 1. I have set up data science computers before and know especially when you are trying to configure specific versions of tensorflow, pytorch and cuda that getting the right software to work together can take a while. The stack manager builds on top of this and allows for customized installs of the Data Science stack. While software compatibility isn’t the most interesting part of data science if you don’t have it you can certainly waste a lot of time trying to fix stuff.</p><h4>NVDIA Rapids</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/0*dx4KNgrljk9Jl6-j.png" /></figure><p>Rapids is a really interesting python package which allows you to run most data ingestion, processing, ETL or common ML models on an NVDIA GPU which really speeds up the execution time of programs. I have just scratched the surface with this program but have been really impressed with it when using it.</p><h4>Microsoft To Do</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*Pn94B_5Et1nA8Csl.png" /></figure><p>Like any Data Scientist I tend to have a lot of projects in flight at any one time and get asked to do quite a bit of one off tasks. So having a tool where I can keep track of what I need to do, assign tasks to a due date with reminders and have cross-compatibility with my phone and computer is awesome. I really like the feature where I can add subtasks to a major task and track progress as I complete it. It is also free which makes it a no brainer to at least try out.</p><h4>VS Code</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/0*WW9j_oGrGGeaIs8-.png" /></figure><p>VS Code is a great code editor and has support built in for running and editing jupyter notebook (.ipynb) files. It is much simpler to use than jupyter which requires a browser and terminal to run. It also has dark mode which is a nice feature for most programmers.</p><h4>HuggingFace</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*O23Q9GKiXjlqw3qw.png" /></figure><p>I recently have spent a lot of time with NLP models and the HuggingFace library is quickly becoming one of my favorite python packages. It is easy to use, has lots of great tutorials and example code snippets on the web and hosts all the most popular language models in an easy to navigate and use library.</p><h4>Future Improvements with my Software:</h4><ul><li>Project Tracking: I am interested in experimenting with moving from To Do to a Project Management software. Most of those can get expensive though so I want to see if the added features make it worth the money.</li><li>Additional Linux Native Data Science Software: I am interested in finding other Linux software to try since I am running both my computers on WSL2. I previously have only used Mac and Windows for DS so I don&#39;t have the most experience with Linux native packages to try out.</li></ul><h3>Furniture</h3><p><strong>Desk : Custom (Gerton table top + Standing Desk Frame)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uxE3S6IRJv9zPtCBVrVorQ.jpeg" /></figure><p>I bought a Gerton table top from Ikea back in 2019 and had some cheap Adils legs on it for a few years which got the job done for a home office desk but was far from ideal. Since Covid hit I have almost exclusively worked from home, so in 2021 I decided to buy a better desk frame that would allow me to stand or sit throughout the day. I found a “CUH” electric height adjustable standing desk frame online for cheap and I have been very happy with it so far. It can go from 70 cm (~27 in) to over 100 cm (~39 in) which for me works great.</p><p><strong>Chair : True Innovations Mesh Chair</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*ENLgGDI7xIyhLS_Mz-RtEg.jpeg" /></figure><p>I went with a basic chair and don’t really have too much to complain about. Its not as nice as a Herman Miller chair but its also not ~$1.5k. For me this relatively simple office chair gets the job done and is comfortable enough for a few hours of seated work.</p><h4>Monitor Mount : VIVO Single Monitor Mount</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0vpiCzRNwA6KocOqSCBo8g.jpeg" /></figure><p>I decided to get a monitor mount that I could attach through my desk because the stand that came with my Z38c had a pretty bulky base and it took up a large footprint on my desk. Also since this mount goes through my desk it will prevent the monitor from falling or being knocked off the desk. I cant speak to other monitor mounts but this suits my needs perfectly and didn’t break the bank.</p><h4>Cable Management: Scandinavian Hub Cable Management Tray</h4><p>I got a pack of 2 of these under desk wire trays to keep the power bricks and other wires off the ground. They have held up but I wouldn&#39;t necessarily recommend them since some of the screws have come loose and I’m sure there are better options out there but for the money they have held up ok.</p><h4>Future Improvements with my Furniture:</h4><ul><li>Cable management: While I have some cable management trays to generally keep the cords and plugs off the ground I can definitely improve the cable routing and the overall</li><li>Standing desk mat: I enjoy standing up but my feet can get tired from standing for a while so I am considering buying a standing desk pad which will hopefully let me stand for longer without getting uncomfortable.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a9afe407c1c0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Predicting the 2022 NCAA Basketball Tournament Using Data Science]]></title>
            <link>https://medium.com/@HunterKempf/predicting-the-2022-ncaa-basketball-tournament-using-data-science-3400a2c84098?source=rss-d22bc8bd93b6------2</link>
            <guid isPermaLink="false">https://medium.com/p/3400a2c84098</guid>
            <category><![CDATA[ncaa-basketball]]></category>
            <category><![CDATA[basketball]]></category>
            <category><![CDATA[march-madness]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[sports-analytics]]></category>
            <dc:creator><![CDATA[Hunter Kempf]]></dc:creator>
            <pubDate>Thu, 17 Mar 2022 05:09:10 GMT</pubDate>
            <atom:updated>2022-04-06T02:22:57.633Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y9oREUVU-lGLCLhWzsZooA.jpeg" /><figcaption><a href="https://stocksnap.io/photo/ball-basketball-6R67TDLVWJ">Photo</a> by <a href="https://stocksnap.io/author/26094">Dan Carlson</a> on <a href="https://stocksnap.io/">StockSnap</a></figcaption></figure><p>Every year many Americans fill out a Tournament Bracket and compete with their friends and families to try to guess the teams that will win each game. People come up with all sorts of strategies for picking their brackets from following picks from an expert or group of experts to watching many hours of basketball and picking based on the strengths they perceive each team to have all the way to the wacky strategies like full random selections or using their pets to pick for them. This year I was inspired to try to use data about regular season games and Data Science techniques to predict the tournament game outcomes.</p><h3>Available Data Sources</h3><p>While Data is available for NCAA games many places around the internet, I wanted to start with a basic dataset that would be relatively clean and easy to use so I decided to use the Kaggle Dataset released for this year’s tournament</p><p><a href="https://www.kaggle.com/c/mens-march-mania-2022/overview">March Machine Learning Mania 2022 — Men’s | Kaggle</a></p><p>This choice has a few nice features such as locking in my model before the tournament, automatically providing a scoring metric for my model when the games are played and having a variety of interesting datasets to create features from.</p><p>One downside of choosing Kaggle is that the results it has you submit are not in a bracket format and are a matrix of all possible combinations of teams then checks the scores against the outcomes of the games that actually were played so to create a bracket from my model I will have to do a bit of post-processing.</p><h3>General Approach</h3><p>My general approach for this challenge was to create feature data for each team from the results of their regular season (games played that season up to the tournament) to predict their probability of winning their tournament matchups that post season. One potential downside of this approach is that the model will not consider the prior results of a team in the tournament for the later rounds but will hopefully help me avoid issues with overfitting since the results for the whole tournament have to be predicted before any of the tournament games have been played.</p><p>For this model I decided to have a consistent approach of creating feature data frames keyed by Team IDs and Season for every set of features that I wanted to create out of the source tables. Doing this allowed me to create reusable methods to join all of these datasets to the training data without having to create complex join logic.</p><p>Finally once the feature DataFrame is complete I trained a model using all tournament matchups from 2003 to 2021. To help avoid overfitting I used a cross validation split of 10 and stratified on the column we are predicting (Win/Loss). Once that model was trained I then used the 2022 training data to predict the probabilities of the outcomes of all potential combinations of teams.</p><h3>Feature Generation</h3><p>I got inspiration from published models submitted to previous competitions and in cases where I used features described in those notebooks I will link to the original author’s work.</p><h4><a href="https://www.kaggle.com/raddar/team-power-rankings">Team Power Rankings/Quality</a></h4><p>This was inspired by a notebook on Kaggle by Raddar. The general idea is that it creates a simple GLM binomial model using only the two Team IDs playing in the game as features (treating them as Factors). This approach will give a relative team strength knowing nothing else about the team and is a nice baseline result to include as a feature for the more complicated model.</p><h4><a href="https://www.omnicalculator.com/sports/elo">ELO</a></h4><p>This was inspired by how chess rankings are created and gives less points to beating teams you are expected by the model to beat and more points to beating teams it doesn’t expect you to beat. Ultimately this ranking should give relative strength scores for each team but given the relatively short season can have some issues since at the beginning of any season all teams start at the same ELO.</p><h4>Score Stats</h4><p>I came up with these stats which basically aim to compare how much a team scores in games compared to their opponents scores against and vice versa how much the opponent scores compared to how much the team normally allows. Here I create percentages for each game based on the min, mean and max for those scores then take the min, mean and max over the season for the percentages. Since I came up with this feature on my own I cant link to any better explanation but hopefully it makes sense.</p><h4><a href="https://www.kaggle.com/lnatml/feature-engineering-with-advanced-stats">Advanced Stats</a></h4><p>These features were inspired by a notebook Laksan Nathan shared on Kaggle. They cover advanced statistics such as offensive efficiency, defensive efficiency, assist ratio, turnover ratio, etc and hopefully will help to improve the comparison of the strengths and weaknesses of any team.</p><h4><a href="https://en.wikipedia.org/wiki/Rating_percentage_index">RPI (Team and Conference)</a></h4><p>In previous years teams used to be seeded using RPI which tries to balance winning percentage with the quality of the opponents the team faced. I worked to create this metric for all teams and Ken Jee helped me to extend this to compare conference strengths.</p><h4><a href="https://bracketresearch.com/team-quadrant-wins-and-losses-tracker/">Quadrant Wins/Quadrant Score</a></h4><p>I was interested in understanding how the new NET Rank determines quadrant wins and found a great chart on BracketResearch.com which I created a similar count of Quadrant wins and Quadrant scores using RPI Rank instead of NET Rank.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*L4tkZsAZokr5AJn4h10Kqg.jpeg" /><figcaption><a href="https://bracketresearch.com/team-quadrant-wins-and-losses-tracker/">Team Quadrant Wins and Losses Tracker | BracketResearch.com</a></figcaption></figure><h4><a href="https://masseyratings.com/cb/compare.htm">Massey Ordinals</a></h4><p>These features are pulled directly from a dataset curated by Kenneth Massey that has a detailed history of Public Rankings of teams going back to the 2002–2003 Season.</p><h4>Tournament Seeds</h4><p>These are the most straightforward features I used and are the numeric seeds of the teams as the selection committee ranked the teams in each of their regions (1–16).</p><h4>Difference Features</h4><p>Finally I took the difference between the matching features of the two teams and created an additional feature for each pair. The goal here was to do some feature reduction and focus the model to the comparison of the two teams as opposed to the strength or weakness of a particular team.</p><h3>Future Feature/Improvement Ideas</h3><p>While I spent a good amount of time working on this I didn’t get to creating all the features I wanted to and have some ideas for future feature creation I would like to do for a model next year!</p><h4>Additional Models/Ensembles</h4><p>Due to time constraints this year I only created one type of model (Light GBM) which did fairly well but I would love to explore other types of models and compare their performance and ultimately ensemble the results of a few of the best methods.</p><h4>Player Based Features</h4><p>All the features I created are based on the teams or conferences and I think a great way to improve my model would be to add Player Features such as recruit rankings of players, the experience (Frosh, Soph, JR or SR) make up of a team, individual statistics and how many players on average play meaningful minutes for a team. Finally Measurable stats like Height, Weight, Wingspan and other physical attributes would be interesting to add.</p><h4>Game Control Features</h4><p>I envision these features dealing with the time/points teams lead games by and would require detailed game data to create. It also would be interesting to see things like scoring consistency or conversely scoring droughts teams go through during the regular season and use them to help predict games.</p><h3>Final Model Metrics</h3><p>I trained 2 models, the first with all features and the second only with the difference features.</p><p>The model with all features had an average cross validation log loss score of 0.5545. The top 3 features were all difference features and many of the top features were Advanced Stats although the RPI, RPI rank and RPI Quad Score were all in the top 30 most important features.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/201/1*02qJXxfU-6-xO6Ortmlrog.png" /><figcaption>Feature Importance’s for model with all features</figcaption></figure><p>The model with only the Difference features performed slightly better in cross validation with an average log loss of 0.54768. Many of the features that were important in the all features model were important for this model too. By just selecting the difference features the model now only gets 1 feature for each instead of 3 (higher, lower, and difference) and this dimensionality reduction seems to have helped.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/275/1*qB_o1QyI0CMuDqz0ElrBdg.png" /><figcaption>Feature Importance’s for Diff only Model</figcaption></figure><h3>Comparison to a model run on the Women’s NCAA Tournament</h3><p>A casual fan might assume that the Men’s and Women’s tournaments might be able to use the same model to predict tournament performance. I did train a model using similar feature generation code but the women’s tournament model had a glaring difference.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/760/0*E9L5Kk0P6K5VDQzH.png" /><figcaption>Top Feature Importances for Women’s Tournament Model</figcaption></figure><p>Not sure if you caught that but Tournament Seed is the biggest predictor by a wide margin for the Women’s tournament but doesn’t make the top features for the Men’s tournament.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/754/0*w02sf0ALeRf7nKRN.png" /><figcaption>Top Feature Importances for Men’s Tournament Model</figcaption></figure><p>Compare that to the Men’s tournament model and you can see that even though the top 4 features have a wider margin of importance there isnt a single feature that dominates the model.</p><h3>My 2022 Bracket</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-Z--Q6dABm9jJ6WJwuaCIg.png" /></figure><p>Using my model to predict each of the tournament games it didn’t predict many upsets (obviously the seeding is correlated with perceived team strength) but some interesting upsets are Loyola Chicago and Virginia Tech winning in the first round and LSU beating Wisconsin in the Second round. In many brackets people try to pick 5 seeds that are upset by 12 seeds and 6 seeds that are upset by 11 seeds which this model found one of. It would be interesting to try to add in a model that just predicts specific early round games which may be more likely to be upsets next year.</p><h3>2022 Tournament Results</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CgQcGjabovqvbM6_OV2eYQ.png" /><figcaption>Visualization of my prediction performance — <a href="https://wncviz.com/demos/NCAA_Brackets/kaggle_brackets.html">Kaggle Brackets (wncviz.com)</a></figcaption></figure><p>I placed in the top 16% of all the 2022 NCAA Mens Tournament Predictions submitted to Kaggle and while I predicted quite a few of the games right I also had some pretty big upsets that I wasn’t able to predict a high likelihood for (like St. Peters winning 3 games or Iowa losing to Richmond in the first round).</p><h3>Wrap Up</h3><p>I really enjoyed working on this Data Science Project and hope you found it interesting and informative. I would like to thank Ken Jee who worked on creating some features for this model with me.</p><h3>My Data Science Setup</h3><p>I am a <a href="https://datascience.hp.com/us/en/our-ambassadors/hunter-kempf.html">Z by HP Global Data Science Ambassador</a> which means <a href="https://www.hp.com/us-en/workstations/workstation-pcs.html">Z by HP</a> sponsors my content and has provided me with the following hardware that I used to create this Data Science Project and the others I work on!</p><h4><a href="https://www.hp.com/us-en/workstations/z8.html">Desktop: HP Z8</a></h4><figure><img alt="https://www.hp.com/us-en/workstations/z8.html" src="https://cdn-images-1.medium.com/max/291/0*_jNaDeu6-pHkPn_c.png" /></figure><p>Having a powerful desktop is very important for iterating quickly while working on Data Science projects. Not having to wait as long between updates to my code and outputs lets me get more done. The powerful GPUs in my Z8 are very helpful when training large deep learning models.</p><h4><a href="https://www.hp.com/us-en/workstations/zbook-studio.html">Laptop: ZBook Studio 15</a></h4><figure><img alt="https://www.hp.com/us-en/workstations/zbook-studio.html" src="https://cdn-images-1.medium.com/max/291/0*MVdpnlEYwU0cLSfg.png" /></figure><p>Being able to work on Data Science projects when I am away from my home office helps me to maximize my productivity. The ZBook Studio I have has a powerful enough CPU and GPU to handle a lot of the iterations and initial models I run.</p><h4>Monitor: HP Z38c</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*j_LWjhpWwQtpS3Rm.png" /></figure><p>Having a big high resolution display like the Z38c helps me to improve my productivity by running multiple windows at the same time. I usually have it open with a python notebook and internet browser, chat app or video call open on the other side of the screen.</p><h4><a href="https://h20195.www2.hp.com/v2/GetDocument.aspx?docname=4AA7-5783ENW">Preloaded Software Stack</a></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*lHWZvixuYLGZTG02.gif" /></figure><p>Being able to have the software I use for Data Science come preinstalled and configured to manage package updates helps me get started on projects and worry less about package compatibility issues that arise from updating packages one by one.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3400a2c84098" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Music to My Ears: An Analysis of Taylor Swift and Beyoncé Music and Youtube Search Trends]]></title>
            <link>https://medium.com/thedataviz/music-to-my-ears-an-analysis-of-taylor-swift-and-beyonc%C3%A9-music-and-youtube-search-trends-db92d7f43f02?source=rss-d22bc8bd93b6------2</link>
            <guid isPermaLink="false">https://medium.com/p/db92d7f43f02</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[taylor-swift]]></category>
            <category><![CDATA[beyonce]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[music]]></category>
            <dc:creator><![CDATA[Hunter Kempf]]></dc:creator>
            <pubDate>Wed, 30 Sep 2020 18:46:02 GMT</pubDate>
            <atom:updated>2020-09-30T18:52:15.327Z</atom:updated>
            <content:encoded><![CDATA[<p>Taylor Swift and Beyoncé are two of the most successful artists since the 2000’s. Hit Albums like <em>Fearless</em>, <em>Dangerously in Love </em>and <em>1989 </em>all have sales of over 10 Million units <a href="https://www.riaa.com/wp-content/uploads/2016/02/ALBUM-AWARD-RIAA-AND-GRF-CERTIFICATION-AUDIT-REQUIREMENTS.pdf">as defined by the RIAA</a>. With how popular these two artists are it is interesting to look at a comparison of their music, popularity over time and the states they are most popular in.</p><p>First off most of this data was compiled by <a href="https://twitter.com/Rosie_Baillie_">Rosie Baillie</a> and <a href="https://twitter.com/sastoudt">Dr. Sara Stoudt</a> for the R for Data Science Tidy Tuesday project so a huge thank you to everyone that worked to come up with this idea and gather relevant data.</p><p>You can read more about this data or get a link to Rosie’s analysis on Taylor Swift songs on the Tidy Tuesday GitHub:</p><p><a href="https://github.com/rfordatascience/tidytuesday/blob/master/data/2020/2020-09-29/readme.md">rfordatascience/tidytuesday</a></p><h3>Youtube Search Trends</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*De2827UrAVpaVEtDtjDs5A.png" /></figure><p>Looking at user search trends on Youtube for Taylor and Beyoncé it is clear that from between 2008 and 2015 both Artists were at their peak popularity on the platform. Every Album release corresponds to a strong spike up in searches with Taylor’s album releases being more popular on average. The most popular month in the dataset for Taylor was September 2009 which corresponded with her October 27th re-release of <em>Fearless</em>. For Beyoncé her peak popularity was in November and December of 2008 corresponding with her November 14th release of the album <em>I Am… Sasha Fierce.</em></p><p>Taylor’s October 2014 album <em>1989</em> marks the last album for Taylor that gained any meaningful traction in Youtube searches. In fact in November of 2014 an article was written on Mashable describing the effect of Taylor removing her music from Spotify. Since these dates line up with her <em>1989</em> album release they probably inflate that album’s effect on her search history if anything.</p><p><a href="https://mashable.com/2014/11/20/taylor-swift-spotify-youtube/">Taylor Swift&#39;s YouTube activity doubled after Spotify controversy</a></p><p>Around 2015 both artist’s relative popularity in Youtube searches began declining and to this point has never recovered. In fact since 2015 each of Taylor’s album’s have produced a less meaningful search bump compared to the album before it. This most likely corresponds with the rise of music streaming on Spotify, Apple Music and other sources.</p><h3>Music Analysis</h3><p>Listening to the music of both artists there are some obvious differences. That being said this analysis will focus mostly on song lyrics since that is the data that was provided.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YciANXhN5cyUvinZMLLoYw.png" /></figure><p>First looking at Taylor’s song titles she picks the title from an exact song lyric 89% of the time but as the title word count grows the likelihood of an exact match plummets. Taylor’s top songs by number of times a title is mentioned in the song lyrics are <em>This Love</em> (54), <em>Red</em> (41), <em>Daylight</em> (40), <em>Out of the Woods</em> (38) and <em>Shake it Off</em> (36).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DTiGBQZYp2ZOy1uiWjFQaw.png" /></figure><p>Beyoncé is more creative with her titles with the fact that she is less likely to pick an exact song lyric as a title. As the title word count grows though the same trend holds as before. Beyoncé’s top songs by number of times a title is mentioned in the song lyrics are <em>Waiting</em> (75), <em>Halo</em> (67), <em>Hello</em> (59) and <em>Run the World</em> (59).</p><h4>Color Analysis</h4><p>Both Artists love to use colors in their songs. This is a visualization of the different colors that each artist uses in their music.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xxR48NxMfwOmxCxb0vJa2A.png" /></figure><p>Taylor Swift uses the color Red much more than any other color in her songs and actually has both a song and album titled <em>Red</em>. Unsurprisingly Taylor’s track <em>Red</em> has the most mentions of a single color, red at 41 times it also was the track with the most total mentions of colors at 47. More interesting may be the fact that the track with the most unique colors mentioned is <em>invisible string</em> from the <em>folklore</em> album which mentions 4 unique colors (gold, green, pink and purple) most of which are rare mentions in Taylor songs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w9cbwd0HCVErdygt8Pz6VQ.png" /></figure><p>Beyoncé in the 390 songs analyzed sings about green a lot more than I would expect. I think this may have something to do with the fact that her song <em>Green Light</em> mentions green 23 times and the dataset includes five different versions or remixes of that song. The song with the most mentions of a single color is <em>Hey Goldmember (Ft. Devin The Dude &amp; Solange) </em>which mentions gold 48 times. The song with the most unique colors mentioned is <em>Lemonade Film (Script) </em>which mentions 9 colors (black, white, red, gold, maroon, yellow, pink, green and orange) a total of 70 times in the track.</p><h3>Youtube Popularity Comparison Map</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WC2LfZpo1TMYmGQ-hxp6EQ.png" /></figure><p>When looking at a comparison of Artist popularity by state there are some obvious patterns. Taylor seems to be more popular in the Midwest where her early career country style music probably is more popular. Beyoncé on the other hand is most popular in the South but also appears to be slightly more popular in states with large cities (New York, California, Illinois and Texas).</p><p>Code to reproduce this analysis is available on GitHub:</p><p><a href="https://github.com/thedataviz/Tidy-Tuesday/tree/master/9-29-2020">https://github.com/thedataviz/Tidy-Tuesday/tree/master/9-29-2020</a></p><p>If you would like to see more visualization and analysis like this please give this article a clap and follow <a href="https://medium.com/thedataviz"><strong>The DataViz</strong></a>. To make suggestions for future datasets please leave a comment on what you would like to see.</p><h4>More from The DataViz:</h4><p><a href="https://medium.com/thedataviz/conquering-the-himalayas-an-analysis-of-himalayan-peaks-and-expeditions-from-1905-to-2019-f489f8357c58">Conquering the Himalayas: An Analysis of Himalayan Peaks and Expeditions from 1905 to 2019</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=db92d7f43f02" width="1" height="1" alt=""><hr><p><a href="https://medium.com/thedataviz/music-to-my-ears-an-analysis-of-taylor-swift-and-beyonc%C3%A9-music-and-youtube-search-trends-db92d7f43f02">Music to My Ears: An Analysis of Taylor Swift and Beyoncé Music and Youtube Search Trends</a> was originally published in <a href="https://medium.com/thedataviz">The DataViz</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Conquering the Himalayas: An Analysis of Himalayan Peaks and Expeditions from 1905 to 2019]]></title>
            <link>https://medium.com/thedataviz/conquering-the-himalayas-an-analysis-of-himalayan-peaks-and-expeditions-from-1905-to-2019-f489f8357c58?source=rss-d22bc8bd93b6------2</link>
            <guid isPermaLink="false">https://medium.com/p/f489f8357c58</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[climbing]]></category>
            <category><![CDATA[himalayas]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[data-visualization]]></category>
            <dc:creator><![CDATA[Hunter Kempf]]></dc:creator>
            <pubDate>Fri, 25 Sep 2020 04:31:23 GMT</pubDate>
            <atom:updated>2020-09-25T04:31:23.435Z</atom:updated>
            <content:encoded><![CDATA[<p>The Himalayas contain many of the world’s highest peaks, the most famous of which is Everest. Many put climbing these peaks on a personal bucket list, others enjoy the danger and thrill of battling the elements and ‘Conquering’ the Mountain. Whatever the personal reason for climbing peaks in the Himalayas, the Total number of Climbers attempting expeditions has grown drastically from the first recorded attempt to climb a Himalayan peak in 1905 to 2018 when 1,847 climbers attempted a peak.</p><p>I will use data from <em>The Himalayan Database</em> to show some of the most interesting information about the Himalayan Peaks and the recorded Expeditions to climb them.</p><p><a href="https://www.himalayandatabase.com/">The Himalayan Database, The Expedition Archives of Elizabeth Hawley</a></p><p>One of the most staggering statistics on about the Himalayas is just how many peaks there are other than Everest (468 total) and the fact that not every peak has been successfully climbed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JAmt81uPcy8hL8FDEY1c8g.png" /></figure><p><a href="https://www.bbc.com/future/article/20140703-the-last-mountains-to-climb">The BBC has an article</a> that has some explanation as to why so many of the Himalayan peaks remain unconquered</p><blockquote>Many in the 6,000-to-7,000m (19,800ft-to-23,100ft) range in the Himalayas, for example, haven’t been climbed yet simply because people tend to focus on the 8,000m (26,400ft) peaks. In addition, more and more mountains that were once off limits are now reachable, including <a href="http://theadventureblog.blogspot.com/2014/05/nepal-opens-104-more-peaks-for-climbing.html"><strong>104 peaks recently opened in Nepal</strong></a>. It’s probably only a matter of time until those last unclimbed peaks are scaled.</blockquote><p>The theory from that article of most people focusing on the taller 8,000+ meter peaks makes some sense because looking at the tallest peak climbed for the first time in a year from the 1950–1970s almost all of the 8,000+ meter peaks were climbed. After 2000 though it appears that some emphasis may have been put on climbing previously unconquered peaks.</p><p>To further cement this idea, even as the number of climbers per year has dramatically grown since the early years the percentage of climbers attempting one of the 3 most popular peaks has grown to over 50% of all climbers attempting to climb in the Himalayas. Two of those most popular peaks are over 8,000 meters tall.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qF5S10zCwz8dfoIHfmCA_Q.png" /></figure><p>With more climbers attempting peaks every year it may be a surprise but success rates rose pretty consistently since the early 1900s. A notable exception is in 2015 when earthquakes caused avalanches and unsafe conditions and an expedition success rate under 25%.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*faLHen3cJUUjAHed45lLEA.png" /></figure><p>Even with success rates on the rise the biggest reasons for failed expeditions are bad weather and conditions. The rest of the issues seem to stem from the inexperience of the more casual climbers that have flocked to the Himalayas as the total number of climbers per year has grown dramatically.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fy2UL5Er-TpndXfCexWGAw.png" /><figcaption>Note: the y-axis is a count not percentage</figcaption></figure><p>The US leads all countries for most climbers over from 1909 to 2019 but note this list excludes any climbers hired for an expedition. If those were to be included unsurprisingly Nepal would far and away have the most climbers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UaQ2IXw01-u2i9hbu7QBrw.png" /></figure><p>This analysis would not be possible without the work of <a href="https://twitter.com/alexcookson">Alex Cookson</a> who cleaned the data and R for Data Science’s project called <a href="https://github.com/rfordatascience/tidytuesday">Tidy Tuesday</a> which is where I first found the data.</p><p>If you would like to see more visualization and analysis like this please give this article a clap and follow <a href="https://medium.com/thedataviz"><strong>The DataViz</strong></a>. To make suggestions for future datasets please leave a comment on what you would like to see.</p><p>For the code to reproduce the graphs shown here and more exploratory data analysis see the GitHub repo below</p><p><a href="https://github.com/thedataviz/Tidy-Tuesday/tree/master/9-22-2020%20Conquering%20The%20Himilayas">https://github.com/thedataviz/Tidy-Tuesday/tree/master/9-22-2020%20Conquering%20The%20Himilayas</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f489f8357c58" width="1" height="1" alt=""><hr><p><a href="https://medium.com/thedataviz/conquering-the-himalayas-an-analysis-of-himalayan-peaks-and-expeditions-from-1905-to-2019-f489f8357c58">Conquering the Himalayas: An Analysis of Himalayan Peaks and Expeditions from 1905 to 2019</a> was originally published in <a href="https://medium.com/thedataviz">The DataViz</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>