<?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 Leo Garver on Medium]]></title>
        <description><![CDATA[Stories by Leo Garver on Medium]]></description>
        <link>https://medium.com/@leogarver?source=rss-f5f3e75af3b6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*jdR83TzgitFHouUH.jpg</url>
            <title>Stories by Leo Garver on Medium</title>
            <link>https://medium.com/@leogarver?source=rss-f5f3e75af3b6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 03:29:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@leogarver/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[A Tale of Two Binary Text Classifiers]]></title>
            <link>https://medium.com/@leogarver/a-tale-of-two-binary-text-classifiers-8bb33928ddc4?source=rss-f5f3e75af3b6------2</link>
            <guid isPermaLink="false">https://medium.com/p/8bb33928ddc4</guid>
            <category><![CDATA[league-of-legends]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[the-onion]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[nlp]]></category>
            <dc:creator><![CDATA[Leo Garver]]></dc:creator>
            <pubDate>Thu, 30 Apr 2020 07:19:12 GMT</pubDate>
            <atom:updated>2020-04-30T07:19:12.850Z</atom:updated>
            <content:encoded><![CDATA[<p>These past couple weeks, I’ve completed two large data science projects. Both of them were binary text classification models using NLP. While many of the methods I used were the same, the results were quite different I found the differences quite interesting.</p><p>The first project was using binary text classification to take reddit posts and then try and determine which of two subreddits they belong to. The two subreddits I chose were those of two video games: League of Legends (LoL) and Teamfight Tactics(TFT) . Both of these games are built by the same developer, Riot Games. League of Legends was first released in 2009 and as of 2016, boasted 100 million monthly active players. There is a thriving esports scene devoted to it as well. The 2019 World Championship Finals had over 44 million unique viewers. With all of this success, Riot has recently built several new games that draw upon the same universe and characters as the ones built for League of Legends. The first of these to be released was Teamfight tactics, which was released in June 2019 and by September 2019 already had 33 million monthly players. In March 2020, TFT was released as a mobile app. Because of the greater complexity of LoL, it has no mobile app. Both games are changed very frequently, with new builds or patches every 2 to 4 weeks. To help determine what changes need to be made, they incorporate lots of player feedback. With multiple games that have the same characters, there are lots of comments that could apply to multiple games. The statement “Master Yi is way too powerful. Riot please nerf” could be referring to either LoL or TFT, and the response would be very different depending on which game it was talking about. With this in mind, I thought it would be useful to have a classifier that would predict which game a post was referring to.</p><p>The second project I worked on tried to detect sarcasm in news headlines. To do this, I started by comparing stories from The Huffington Post (non-sarcastic) and The Onion(sarcastic). Sarcasm is something that can drastically change the meaning of a certain story, and while humans can detect the difference (at least sometimes), the task is very difficult for computers. Looking at two recent headlines regarding the same event, HuffPost reported on April 20th “<a href="https://www.huffpost.com/entry/kim-jong-un-north-korea-health-surgery_n_5e9e5378c5b6b2e5b83718ce">South Korea Downplays Reports That Kim Jong Un Is In Poor Health After Surgery</a>”, while the Onion reported on April 27th, that “<a href="https://www.theonion.com/north-korean-media-report-kim-jong-un-in-best-health-of-1843112451">North Korean Media Report Kim Jong-Un In Best Health Of Life After Receiving Hundreds Of Heart Transplants</a>”. For a human, the difference is obvious so I wondered if the experience with my previous NLP project would help me to create a machine learning model to do the same thing.</p><p>Once I had grabbed and cleaned my data, my next step for both project was to vectorize the text data so it could be used for a model. There are two main ways of doing this (that I’m aware of). The first is CountVectorizer, which is quite simple. All it does is counts how many times each word occurs in each piece of text. The second one is TF-IDF Vectorizer, which is a bit more complicated. What it does is calculates how many times a word occurs (Term Frequency, the TF) and then scales it relative to how often the word occurs in all the other documents(IDF or Inverse Document Frequency). This gives larger values to words that are less common in the corpus as a whole. To determine which vectorizer to use, I tried both with a wide variety of hyperparameters before using a baseline logistic regression to see how they performed. The difference between the two was minimal in both cases, but the hyperparameters that worked were quite different for my two projects. In my video game project, the best results were when we only looked at individual words (rather than multi-word phrases) and when we removed a large number of stopwords, which are very common words that don’t add very much to context(I, and, the, with, for, etc.). This leads the model to only look at words that give a lot of content and context, which makes sense as we are trying to distinguish the posts based on their content. While the two games share many attributes, my hypothesis would be that some of the terms that only refer to one game would be the best predictors. For my headline analysis, these two hyperparameters were flipped. The model worked best when it looked at single words and two word combinations and when we did not remove any stopwords. When thinking about our problem, this also made sense. Since we were more looking at tone and style differences instead of content because both sites may have articles about the same news stories.</p><p>After fitting a wide variety of models with our video game subreddit data, the best performing classifier I built was a Voting Classifier using Logistic Regression, Random Forests, and Support Vector Machines. To dig deeper into the data, I grabbed the coefficients from the logistic regression model to see which words were most predictive of each subreddit. My earlier prediction that game terms would be most predictive proved true. For TFT, some of the most predictive words were terms that only existed in that game such as: Set, Comp, Round, Star, and Unit. Mobile and phone were also strong predictors, which makes sense given that the game was released on mobile during the same time period that I grabbed posts from. The words that predicted LoL were mostly game terms as well. Lane, ADC, jungle, mid, and support were all very strong predictors since those aren’t terms used in TFT. One word that initially surprised me as a predictor was ‘years’. It made sense however, when you consider that LoL has been around for over 10 years and TFT for less than one. Therefore, if a post was talking about playing for years, or years ago something happened, it could only refer to LoL. In the end, it looked like my model performed very well on the initial problem of being able to distinguish which game a post was referencing.</p><p>In my headline classification project, the best performing model was a Random Forest classifier. Again, I dug deeper into the model to find which words were most predictive. For headlines from the Onion, the three strongest predictors were profanity. If the Onion frequently has profane headlines, but HuffPost has a policy against it, this makes perfect sense. Three different two-word combinations were strong predictors as well. “Area man” and “Study finds” are two very common phrases in Onion headlines, but are probably too generic for use in real news. “Mike Pence” is also a strong predictor for the Onion. My reasoning for this is that he is too boring to be in many real news stories, but that makes him a great punchline in satire. One of the strongest predictors for HuffPost was “says he”. As I looked through some headlines, it looked like a lot of HuffPost stories were merely reporting on something someone said to another publication, leading to lots of ‘says he’ in headlines. Many of the other strong predictors were words pertaining to lgbtq issues. lgbtq, lgbt, queer, trans, and transgender were all strong predictors for HuffPost. To me, this means that the Onion follows one of the main rules of comedy: “Punch up, not down”, meaning you should only make jokes at the expense of people who have greater power/status than you instead of someone with less power/status. I think it’s a very good thing that the Onion doesn’t make fun of a group that has been so persecuted and discriminated against. Better to punch up, at say, Mike Pence. Looking at all of these results, it appears like the model did not do what I set out to do, detect sarcasm. Rather, it classified more on the style of the different sites’ headlines, as well as issues one covered, but not the other. If that were the objective, I think the model turned out well.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8bb33928ddc4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Iterative Problem Solving in Data Science]]></title>
            <link>https://medium.com/@leogarver/iterative-problem-solving-in-data-science-742cbd622588?source=rss-f5f3e75af3b6------2</link>
            <guid isPermaLink="false">https://medium.com/p/742cbd622588</guid>
            <dc:creator><![CDATA[Leo Garver]]></dc:creator>
            <pubDate>Thu, 16 Apr 2020 06:02:54 GMT</pubDate>
            <atom:updated>2020-04-16T06:02:54.564Z</atom:updated>
            <content:encoded><![CDATA[<p>When I first learned about agile methodologies, and it’s focus on continuous, iterative workflow, I immediately thought it made perfect sense. I was honestly surprised that these ideas were new; that this wasn’t the way software had always been developed.</p><figure><img alt="Agile Methodology — Plan, Design, Develop, Test, Release, Feedback, then repeat" src="https://cdn-images-1.medium.com/proxy/1*Fzz56Ps_vQSTPHDO9IomXw.png" /></figure><p>Repeatedly building products, testing them, and using the feedback to improve iteratively was how I tried to approach every problem. I really gravitated to the idea of starting by building a Minimum Viable Product; the simplest version of your idea with just enough features to test and get feedback. Repeating this process, using the feedback to help design and develop a better version over and over to get to better and better products.</p><p>Reflecting on my most recent project, building a linear regression model to predict home prices based on features of a home using the Ames Housing data reinforced the value of this iterative approach. At first, I forgot this, and I tried building the best model from start to finish. I tried to do what I thought was the best data cleaning, then the best feature engineering, then the best feature selection, and then the best model selection. That approach didn’t work, and left me frustrated. When I finally got to a model, it performed okay, but I knew there was lots of room for improvement. My head-first approach, however, made it very difficult to go back and iterate upon. I found myself tweaking bits of code and having to run my entire notebook again and again. The structure of my notebook kept getting messier, and trying to iterate seemed to keep getting harder.</p><p>After seeing some of my classmates’ approach, I realized my mistakes. Building lots of small helper functions would both clean up my code and make it much easier to iterate upon. The best way to come up with the best model wasn’t as straightforward as how I attempted. What I should have done was to build a Minimum Viable Model to start getting me feedback as fast as possible. Rather than trying to build the <em>best</em> model, I should have tried to build <em>as many models as I could!</em> Using the same iterative problem solving, I could have tried all sorts of various combinations of feature engineering, feature selection, model selection, and hyperparameters. I could keep track of all of these trials, and then finally pick whichever of my many iterative models performed the best. I’m very glad I’ve come to these revelations, and plan on taking that feedback and iterating on it in my future projects.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=742cbd622588" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I taught myself data science without knowing it]]></title>
            <link>https://medium.com/@leogarver/how-i-taught-myself-data-science-without-knowing-it-993e4797138c?source=rss-f5f3e75af3b6------2</link>
            <guid isPermaLink="false">https://medium.com/p/993e4797138c</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[baseball]]></category>
            <dc:creator><![CDATA[Leo Garver]]></dc:creator>
            <pubDate>Thu, 02 Apr 2020 06:44:19 GMT</pubDate>
            <atom:updated>2020-04-02T06:46:07.803Z</atom:updated>
            <content:encoded><![CDATA[<p>When I was 6 years old, in 1993, I fell in love with baseball. It’s basically impossible for me to remember a time before I was obsessed with baseball. From that early age, I remember poring over baseball statistics in big encyclopedias and newspapers. It’s why, for some reason, I can still recall every player who has hit 500 home runs or every player since 1900 who had a batting average over .400 in a season. Learning about those statistics and how they were calculated helped me have a great early grasp on math. In those days, baseball stats were largely pretty simple and easy to understand. I could grasp that a player’s batting average was just the number of hits divided by at bats, or to calculate a pitcher’s Earned Run Average, you just needed to divide the earned runs given up by their innings pitched and multiply it by 9. Those stats were fairly simple, all you really needed to know was addition, subtraction, multiplication, and division. I thought I was just getting a better understanding of baseball, but I was also certainly teaching myself statistics at the same time and learning many statistical and machine learning concepts without realizing it.</p><p>I would also try and come up with my own statistics and metrics, tinkering around with calculations and spreadsheets. I’m quite certain that the first spreadsheets I ever worked on were baseball related. I was working on spreadsheets for fun!?! The first time I ever used SQL too, was on a baseball database. That should have been the first sign that something like data science was what I was destined for. I was never very good at making my own stats, but luckily around the same time, a lot of smarter people were doing the same sorts of things, developing new stats and new ways to try to predict the future.</p><p>As I got older, I remained obsessed with baseball stats. I started playing fantasy baseball, where you need to use the data you have from previous seasons and try to predict how a player will perform in the future. Even if it was only in my head, I was essentially developing predictive algorithms, plugging in the data I had into them and generating predictions. After every season, I would see how good my predictions were. I could then adjust how I made predictions in future seasons. Essentially, I made a model, tested it against new, real world data and then alter the model to try and make it better. Looking back on it now, it seems that I was using my brain to do something akin to machine learning (human learning?).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=993e4797138c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Product Management Immersive — Week 3]]></title>
            <link>https://medium.com/@leogarver/product-management-immersive-week-3-f40f4f89c11f?source=rss-f5f3e75af3b6------2</link>
            <guid isPermaLink="false">https://medium.com/p/f40f4f89c11f</guid>
            <category><![CDATA[design]]></category>
            <category><![CDATA[product-management]]></category>
            <category><![CDATA[ux]]></category>
            <dc:creator><![CDATA[Leo Garver]]></dc:creator>
            <pubDate>Mon, 28 Sep 2015 16:00:30 GMT</pubDate>
            <atom:updated>2015-09-28T16:00:30.181Z</atom:updated>
            <content:encoded><![CDATA[<p>This week we spent most of our time working and finishing Project 2. I was quite happy with how Symposio, our event discovery app, turned out. We received a lot of positive feedback from our presentation along with some good advice on things we could work on. Personally, I worked a lot on designing the wireframes and clickable prototype. Designing a product like this was a new experience for me, and I was pleasantly surprised with my design skills as well as what I was able to produce.</p><p>When looking at the programs that General Assembly offers, I didn’t give the UX Design classes a second thought, thinking that kind of design didn’t fit very well with my skillset. I also had some misconceptions about what UX design entailed. My initial thoughts (which seemed to be shared by much of our class) were that UX design was largely about designing the visual aesthetics of a product, but that is only a small part of the field.</p><p>My thinking that the aesthetics was such a big part of design was the primary reason I didn’t think it was for me. I’ve never been very confident in my ability to make things that are visually appealing. Every medium of visual arts, from drawing to painting to sculpting, was hard for me and everything I would produce clearly lacked any kind of artistic talent. In getting familiar with the UX design tools however, I was able to quickly and easily create wireframes that were visually attractive.</p><p>The aesthetics however, are a very small part of what this kind of design entails. The much more important aspects of UX have to do with designing something that is functional and has high usability. Here as well, I was very happy with what I was able to produce.</p><p>I did a lot of iteration around my design. Making wireframes, then checking them via usability tests with potential users, and using what I learned to think about what changes I could make to the design to make the product easier to learn and more efficient. We then kept iterating that cycle to improve the app, and only stopped because we needed to present our final product to class.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f40f4f89c11f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>