<?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 Darien Mitchell-Tontar on Medium]]></title>
        <description><![CDATA[Stories by Darien Mitchell-Tontar on Medium]]></description>
        <link>https://medium.com/@darien.pmt?source=rss-e523889b0e9b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*IOU95Ncy2n76gLrCong55g.jpeg</url>
            <title>Stories by Darien Mitchell-Tontar on Medium</title>
            <link>https://medium.com/@darien.pmt?source=rss-e523889b0e9b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 05:16:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@darien.pmt/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[Metis Final Project]]></title>
            <link>https://medium.com/@darien.pmt/metis-final-project-d894330f1dec?source=rss-e523889b0e9b------2</link>
            <guid isPermaLink="false">https://medium.com/p/d894330f1dec</guid>
            <dc:creator><![CDATA[Darien Mitchell-Tontar]]></dc:creator>
            <pubDate>Fri, 19 Jun 2020 17:01:01 GMT</pubDate>
            <atom:updated>2020-06-19T17:01:01.331Z</atom:updated>
            <content:encoded><![CDATA[<h4>Selfie Popularity Predictor</h4><h4>Can we predict whether an Instagram selfie will be popular or not? If so, can we improve the probability that it will be popular?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SXKyH8fXKsIMvlgCA1u9lQ.png" /></figure><h4>Introduction</h4><p>Our final project at Metis was supposed to be our <em>passion project</em>. If anyone who knows me is reading this, then they will be confused. I don’t use <a href="https://www.espn.com/blog/new-england-patriots/post/_/id/4799901/bill-belichick-im-not-on-snapface-not-worried-about-instantchat">Snapface or Instachat</a> and am not interested in receiving attention online. Basically, posting photos on the internet is not a passion of mine, so why the topic?</p><p>Passions come in many different shapes and sizes. One of the reasons why I wanted to attend Metis, and retire from teaching, was to step out of my comfort zone and take a risk. I chose this project because the idea of working with image data was appealing to me, using neural nets seems like a great learning opportunity and I felt this project leant itself to a flask app; these are all things I had not done before in any of my previous projects. Additionally, my original idea for this project was hilarious, but was also an epic fail.</p><h4>Haircut classifier</h4><p>Yes, that was my initial idea: build a classifier to tell someone whether or not they are in need of a haircut. The first challenge I faced was obtaining photos. I downloaded 46,000 selfies used by a <a href="https://www.crcv.ucf.edu/data/Selfie/">study conducted</a> at the the University of Central Florida. My second big challenge was finding a way to efficiently label all my photos. The photos had many useful labels assigned to them, but needing a haircut was not one of them.</p><p>I filtered the dataset down to around 6,500 (basically young men), made some phone calls and set up a meeting at a local salon to have two kind employees label the data for me. Experts would no doubt provide better data for the ML algorithm to learn from than me; I would have just been guessing. Unfortunately, the app (if you can call it that) that I built for them to label the data was buggy, causing them to have to restart their efforts several times. After about 4 hours, I abandoned my original idea and decided to go for plan B: <em>Can we</em> <em>predict whether a selfie would be popular on Instagram?</em></p><h4>The Data</h4><p>Fortunately, for plan B I was still able to use the selfies from UCF. All the images were the same size, 306 by 306 pixels with 3 color channels (RGB), but I knew that was unnecessarily large for my model. The first, and really only, data cleaning I did was resize all my images to 128 by 128, still RGB, and then converted them into pixel arrays.</p><p>Although there was not a label for whether or not each photo would be popular in the dataset, there was a popularity score associated with each photo. The score was log2 normalized value based on the number of views each photo received. The reason it was important to normalize this value (done by UCF, not me) was to to account for the fact that different Instagram users will have each have a different number of followers. This puts all the photos on a more level playing field.</p><p>I chose to label a photo as popular if its score was in the top 50% of all scores in the dataset.</p><h4>Facial Expression Recognition</h4><p>I knew that I wanted to extract some meaning from each of the photos; it seemed more interesting to me than the model simply returning the probability of an image being popular. For a while it looked like I was going to have to train an entirely separate model to do this, but in my research I stumbled upon this <a href="https://pypi.org/project/fer/">gem</a>.</p><p>Facial Expression Recognition, or FER, is a relatively new python package which allows users to create a detection object, then pass in a photo. It returns a dictionary of the emotions conveyed in the photo.</p><pre><br>     &#39;emotions&#39; {&#39;angry&#39;: 0.85,<br>                &#39;disgust&#39;: 0.06,<br>                &#39;fear&#39;: 0.06,<br>                &#39;happy&#39;: 0.01,<br>                &#39;sad&#39;: 0.01,<br>                &#39;surprise&#39;: 0.01,<br>                &#39;neutral&#39;: 0.0}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*WfCDxDoNO-_2IHoky1mZjw.png" /></figure><p>Perfect! Looks pretty accurate too. It wasn’t able to detect expression in all 46,000 of my photos, which was actually great because it reduced my dataset down to about 19,000 photos.</p><h4>Convolutional Neural Network</h4><p>Convolutional Neural Networks (CNN) are a type of deep learning neural net which are especially useful for image processing. This is the type of model I used to build my classifier. They do a good job of reducing the number of features without sacrificing the quality of the model. This works well for image processing because images have <em>a lot</em> of features. In fact, each individual pixel is considered to be a feature. So even a small, 128 by 128 photo, will have over 16,000 features.</p><p>A very high level example of what’s going on can be seen in the first two images below. In the first step of the model, although strange looking, you can probably tell that there’s a human in there. To us, the last image is just a bunch of pixel garble, but the neural net is able to learn from observed patterns and can discern what makes a selfie popular or not, so long as each photo is labeled of course. The original image fed into the model is shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/990/1*EW2pkaB1X91VUMeEHNw6DQ.png" /><figcaption>The first step of the neural net sequence</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*Jq9SgUmvFYEabfp1IG1S_g.png" /><figcaption>Just before the final step</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/233/1*4iXnW5xiwL94cVQ8NWI-yw.png" /><figcaption>Only known good photo of me ever.</figcaption></figure><p>I started by fitting the model on a subset of my photos; only 1,500 of them. Once I started getting good results (72% accuracy), I fit my model to the entire dataset. In order to make things run smoothly, I got my code up and running on the <a href="https://cloud.google.com/">cloud</a>. Although my new computer probably could have handled the hefty computations, it was nice to give it a rest.</p><h4>Visualizing the Results</h4><p>I wanted to build a flask app for this project which would allow a hypothetical user to upload a photo and get the probability of their selfie being popular on Instagram. I did not have much experience with flask, so thankfully there were a lot of tutorials online on how to build image classifiers! <a href="https://stackschool.io/quick-image-classifier-web-application-with-flask-keras-and-bokeh/">This one</a> was especially helpful. I was able to modify it pretty easily to fit my vision for how the model would work.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*vWb4e_lGoh8Tz26Hgy_czw.gif" /><figcaption>Flask App for predicting popularity</figcaption></figure><p>As you can see, or maybe not see, the app returns the results from the model, a probability of the image being popular, as well as the expressions conveyed in the photo uploaded. My idea here was to give “users” something to play around with in each of their photos, aside from the lighting, background, clothes etc. They can get a solid estimate of their emotions in the photo and see if tweaking them could increase their potential popularity.</p><h4>Is it possible to change expression while increasing popularity?</h4><p>I demonstrated in my presentation that this is indeed possible at a basic level. My first upload, shown in the GIF above, yielded a probability of about 40%. With a slightly more neutral appearance the probability goes up a little, but with a nice smile and more favorable angle, the probability increases significantly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7iKWryAKIlj4RqCAZrduhw.png" /><figcaption>Increasing popularity with a nice smile</figcaption></figure><h4>Conclusion</h4><p>This does not necessarily prove, however, that just looking happier in your selfie will translate to more views/likes. There is a lot going on in an image that the neural net is picking up on which is hard for us to interpret (think about the images above, showing what the NN sees at the first and last layers in the sequence).</p><p>It would be fun to play around with different outfits, hairstyles, backgrounds etc and see how the selfie’s predicted popularity changes. In order for this to be an actual viable application however, the model would need to be trained on hundreds of thousands, if not millions of photos with a much more rigorous standard for popularity.</p><p>For me, this was a rewarding learning experience in which I had to deal with numerous road blocks while learning a lot along the way. Although I highly doubt Instagram will be calling me anytime soon, I still had a lot of fun with this silly idea and look forward to the possibility of working with more image data in the future.</p><h4>Special Thanks</h4><p>I want to end this post with an emphatic thank you to the employees at <a href="https://studiobesalon.com/">Studio Be Salon</a> in Fort Collins, Colorado. Their enthusiasm and support for my crazy idea of a “haircut predictor app” energized me and helped get the ball rolling on this project. Although my initial idea didn’t work out because of some questionable programming on my part, they were happy to come back to the project whenever I was ready. Thank you again!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d894330f1dec" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Metis: Weeks 6–8]]></title>
            <link>https://medium.com/@darien.pmt/metis-weeks-6-8-569f9aa752e2?source=rss-e523889b0e9b------2</link>
            <guid isPermaLink="false">https://medium.com/p/569f9aa752e2</guid>
            <dc:creator><![CDATA[Darien Mitchell-Tontar]]></dc:creator>
            <pubDate>Mon, 25 May 2020 06:01:00 GMT</pubDate>
            <atom:updated>2020-06-16T14:52:56.508Z</atom:updated>
            <content:encoded><![CDATA[<h3>Metis Weeks 6–8</h3><h4>NLP &amp; my Grandfather’s Letters During WWII</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sSFmI_H8Iuadk6XHy-ixdw.jpeg" /><figcaption>My grandfather, Silvio Tontar, while serving in the U.S. Army as a medical officer</figcaption></figure><p>The fourth project at Metis was an exciting one because it was the first time we learned how to deal with text data in raw form. Previously, we only worked with categorical data, turned it into dummy variables and fit our models. Now we sought to get actual meaning from large collections of text (a corpus).</p><p>It was a struggle for me to come up with an idea for this project, then I remembered that years ago my aunt had typed up 300+ letters my grandfather, Silvio Tontar, wrote to my grandmother, Annette, during WWII. I was initially unsure whether or not this would be an acceptable topic, but after some encouragement from instructors and TAs, I felt confident moving forward with it.</p><h4>The Problem</h4><p>I have to admit, I dove into this project without a super clear purpose. From my perspective, this was an opportunity to get to know my grandfather better, who passed away when I was five. This is not exactly a research question, but I suppose I wanted to know how he <em>felt</em> during his time overseas. I wanted to see if I could use the text data to <em>empathize</em> with his situation, even a just little bit. When was he happy, if at all? When was he upset? How did his language change throughout time? My goal was to use data science to answer these questions more easily, as opposed to re-reading the letters over and over again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VeGi9wX2oC3aXeOsiPKTEQ.jpeg" /><figcaption>My grandparents. This photo was taken right before my grandfather was sent overseas.</figcaption></figure><h4>The Data</h4><p>Perhaps this is obvious, but my data was the 310 letters my grandpa wrote from May 13, 1942 to November 10, 1945 during his time serving in the United States Army as a medical officer; my grandparents married in February of 1942. He spent three and a half years in the Southwest Pacific, mostly in Australia, New Guinea, the Philippines and ending his time in Japan after they surrendered.</p><p>During this time my grandfather never lost sight of what was most important to him: my grandmother. I admire how consistently he wrote her, and how positive he was the entire time (more on that later).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*1O3WgRE2mJxxU4H9p-wdzg.png" /><figcaption>The vast majority of letters were written with very little time between them and the previous one.</figcaption></figure><p>As you can see he managed to write letters fairly consistently throughout his time at war. One could imagine that the writing was therapeutic for him in addition to being the only way he could connect with his wife and the rest of his family. For troops in general during that time, letters were a huge motivating factor, and they loved sending/receiving mail.</p><h4>Sentiment Analysis</h4><p>Before cleaning the text data, I wanted to get as much information as I could out of the raw text. A sentiment analysis leant itself well to this goal. I wanted to see if I could use his words to understand how he was feeling during the war. I used vader sentiment analysis for this, which takes in a small block of text and returns four score metrics. Positive, neutral and negative polarity all represent proportions of positive, neutral and negative sentiment in the text respectively. Lastly, the compound score is a normalized, weighted single metric for measuring the sentiment of the text:</p><ol><li>positive sentiment: compound score &gt;= 0.05</li><li>neutral sentiment: (compound score &gt; -0.05) and (compound score &lt; 0.05)</li><li>negative sentiment: compound score &lt;= -0.05</li></ol><p>I decided that a good place to start was plotting positive and negative sentiment over time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/972/1*GBwf6d6-u3IPIylTWz97Hg.png" /><figcaption>Percentage of positive and negative words used in each letter</figcaption></figure><p>It’s amazing how level headed my grandpa was during the war. He was consistently more positive than negative in his language, although the gap between the sentiment scores starts to diminish closer to the end of the war; he had probably had enough and wanted to come home.</p><p>I was most interested in the huge spikes after looking at this chart. I sorted the letters by positive polarity and found the most positive letters were short postcards like this one:</p><blockquote>New Guinea, May 5, 1944</blockquote><blockquote>Darling,</blockquote><blockquote>All is well. I am feeling tops. I enjoyed a good swim and sunbath.</blockquote><blockquote>Love,</blockquote><blockquote>Silvio</blockquote><p>This little letter warms my heart, and it’s no surprise that it has a high positive polarity score.</p><p>I decided to order by compound score instead to see if it would return longer letters. Here is an excerpt from his most positively scored letter. which was written September 6, 1942 in Australia:</p><blockquote>…I have a feeling that things will change. For one thing, I do not feel as pessimistic as I felt when I left the country. How are you, darling? The heat will be over by the time you receive this letter and you will enjoy the fall. I am moving toward the spring and the hot weather. darling, do not worry about me. I am feeling fine, have a good appetite, and eat good food. If I had you here with me, I would be perfectly happy…</blockquote><p>This letter is quite optimistic, and early on in his time overseas. Starting with a sentiment analysis allowed me to improve my subject area knowledge by reading more letters and get a sense of common themes seen in them.</p><p>Even when my grandfather was feeling down, he still found positivity in the situation. Here is a piece from his most negatively scored letter, written much later on July 7, 1944 in the South Pacific (during the battle of Biak):</p><blockquote>…I do not exaggerate in saying that more than a dozen artillery shells burst within a radius of ten yards from me, some came so near that I had dirt fall upon me. The machine gun and rifle bullets continued their sinister whistling only a few feet from me, sometimes only a few inches above me. That day they were after my scalp and in a big way. I was under fire all day, but twice within two hours, they kept dropping their projectiles so near me that I came out untouched, unscratched, and unhurt only by a miracle. Sure I am lucky…</blockquote><p>That excerpt is not even the worst of the letter. At other points he talks about how he is losing hope, losing faith in war and questioning its purpose. He does manage to end on a more positive note however. From the same letter as above:</p><blockquote>…I am well fed now. I have all the water to drink. I can take a bath daily. I went for weeks without washing and shaving! I smelled like a skunk! It’s a sad story. But that’s life. I am feeling well and love you very, very much. I have some time now to dream, to daydream, long, and yearn for the time I’ll be able to come home to you. meanwhile, I love you.</blockquote><blockquote>I am yours,</blockquote><blockquote>Silvio</blockquote><p>After learning more about the letters, I felt ready to move on to a more in depth analysis</p><h4>Exploratory Data Analysis</h4><p>A common starting point in Natural Language Processing is to remove the most common words from your corpus. This is because they do not give you valuable information about each document. I wanted to know what makes each letter, or collection of letters, special so that I can eventually extract meaning from them.</p><p>After removing the most common words, and some other mundane ones, I produced this sequence of world clouds below, tracking the language he used in his letters and matching it with their positive polarity:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OU0cF3uAA8T1eufCbNxYkg.png" /><figcaption>Most common words in the letter collected by quarter (every three months)</figcaption></figure><p>What I love about this visual is that is tells a story by itself. It shows common themes throughout his service. You can see his seasons greetings, you can see that he was perhaps a bit more relaxed at the beginning of the war, you can make associations between how he was feeling and the words he used and finally, at the end, it seems like he <em>expected</em> the war to end soon.</p><p>One interesting historical fact is that the aforementioned Battle of Biak was from May 27, 1944 to June 22, 1944 and my grandfather’s division got hit very hard during that battle. You can see that his positive polarity decreased starting in June 1944.</p><p>This is a very cool visual and tells us <em>a lot</em> about the letters, next I wanted to dig deeper and try to extract some of the main reoccurring themes seen in his writing.</p><h4>Topic Modeling</h4><p>Topic modeling is an unsupervised machine learning algorithm that allows us to reduce a feature space from thousands (in this case thousands of words), down to fewer than ten. One can then look at the most prominent words in each of those “topics” and interpret them, hence the name topic modeling. This is an unsupervised algorithm because the text documents do not have a predetermined topic label assigned to them at the beginning. This is in contrast to my last project, where each U.S. county was labeled to be “at risk” or “not at risk,” and I trained the model having those labels. Here, we are basically inferring our own labels based on what we find from our analysis.</p><p>One thing that’s true about almost all text data is that it’s very messy. Some steps I took to clean up the data were:</p><ol><li>Preprocessing: removing punctuation, making all words lower case, removing non-important words (in my case, names of locations and my grandparents’ names since these were mentioned in almost every letter).</li><li>Lemmatization: grouped together inflected forms of words so they can be analyzed as a single item (for example, “walk” and “walking” are basically the same for our purposes).</li><li>Filter letters so they are only comprised of nouns and adjectives. This allowed me to extract more meaning after I ran my initial models.</li></ol><p>After the text had been cleaned up I was almost ready to fit a model, but the main problem here is that computers tend to prefer numbers.</p><p>Using a term frequency–inverse document frequency, or TF-IDF, we can turn a corpus of text into a data frame where each row is a document (letter in this case) and each column is a word. The entries are TF-IDF values, and we can think of them as weights for how important a word is in a letter. What’s nice about TF-IDF is that it also considers the number of times a word appears in <em>all the letters</em>, by doing this it reduces the importance of those words since they do not add much value for determining any unique, abstract, themes seen in the text.</p><p>Finally on to the exciting part. I used Nonnegative Matrix Factorization (NMF) to cluster the letters and below are the results:</p><pre>Topic  1<br>war, hospital, expect, medical, overseas, end, news, duty, officer, change<br><br>Topic  2<br>christmas, picture, morning, went, dinner, cold, golf, played, people, warm<br><br>Topic  3<br>union telegram, western union, western union telegram, western, union, tontar, telegram, francisco, san francisco, san<br><br>Topic  4<br>jap, island, native, philippine, rain, philippine island, enemy, campaign, wet, landed<br><br>Topic  5<br>ship, sea, land, typhoon, calm, tonight, kure, morning, bay, island<br><br>Topic  6<br>birthday, wife, beloved, send, happy, beloved wife, kiss, remember, feeling, able</pre><p>I encourage you to ponder over these topics on your own to see if you agree with my interpretation of them below:</p><p>Topic 1. Duty<br>Topic 2. Comfort/Normalization<br>Topic 3. Money (he sent money home frequently)<br>Topic 4. Inner Conflict/Struggle <br>Topic 5. Traveling at Sea<br>Topic 6. Romance</p><p>A nice way to study these topics further is to see how their appearance in the letters changed over time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*GJkDE8OuCvKCTxoAIl91ug.gif" /><figcaption>Topic prevalence in each letter over time. The letters are group together quarter</figcaption></figure><p>As you can see, the topic of travel is more prevalent in letters at the beginning and end of his service. Topics like “Duty” and “Romance” are much more common towards the beginning of his service, while “Inner Conflict/Struggle” and “Duty” spike near the end.</p><p>Let’s again look at some snippets of text, this time from the letter which features each topic above most prevalently (I am leaving out “Money” and “Travel at Sea”).</p><p><strong>Topic 1: Duty from July 31, 1945</strong></p><blockquote>…I have been overseas so long and have done my duty with distinction and honor. I want to go home to come home with honor and with my conscience clear and unsoiled. The other way is to wait and hope as you know. I’m healthy, I have not lost one day since I came into the army I can only get out by playing the part of a “psycho” or “nut .” I disdain it…</blockquote><p><strong>Topic 2: Comfort/Normalization from October 19, 1942</strong></p><blockquote>…I played golf and was I bad. Can you imagine me playing with an old champion? I met him at the golf course. He invited me to join his group. Paul could not come, he was busy. Not only did I play golf with him, he invited me to his house to dinner and then to sleep…</blockquote><p><strong>Topic 4: Inner Struggle/Conflict from April 9, 1945</strong></p><blockquote>…I sailed in a small boat that kept rolling pitching and rocking all the time I vomited so many times that even my bile the yellow fluid that the liver excretes found a way out through my mouth. I was miserable and wretched…</blockquote><blockquote>…I heard some bullets whistling in the air, but none landed near me…</blockquote><blockquote>…The terrain was another trouble. It’s rugged up and down mountains. Some places I had to crawl up and down steep mountains. I had to wade belt deep in rivers and creeks. I got wet and slept more than one night in the rain wet from the belt down…</blockquote><blockquote>…I have met many Filipinos and heard their gruesome experiences under Jap rule, the people are ragged…</blockquote><p>This particular letter is interesting because it addresses several of the different types of struggle he dealt with. Sickness, danger, the elements and the enemy treatment of the native people, something at which he spoke of quite regularly in his letters.</p><p><strong>Topic 6 Romance from April 18, 1943</strong></p><blockquote>…Do you remember I waved to you from the moving car? You were standing by the window and I could see tears in your eyes. A whole year has gone by and look where I am now, in the jungle so far away from you. I am asking myself “how long will they keep me away from my beloved wife ,” a year is a long time too long…</blockquote><p>I recognize that I am cherry picking from each article yes, but the topics are making it much easier for me to cherry pick, and I think they did a good job parsing out the letters by “topic.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QSqcE7XGbVl5tvKdyZgOYw.jpeg" /><figcaption>My grandfather and me</figcaption></figure><h4>Conclusion</h4><p>I knew before starting this project that my grandfather was a great man, but now I understand why. My grandfather risked his life and endured suffering for three and half years to keep millions of people he did not know safe. This is what our health care workers are doing for all of us as I write this blog entry. These are people that are special beyond what I am capable of describing, and for that, I think it is appropriate to conclude with my grandfather’s words instead of my own, for he was a hero but didn’t consider himself such. There’s a lot we can learn from him and others like him.</p><p><strong>From April 18, 1943 (the same letter as above)</strong></p><blockquote>…It’s a great feeling to know that when I save a man from certain death I’ll make somebody in the states that I never saw and never will see very happy. It’s a feeling that no money can buy. It partially compensates for the hardship and discomfort a doctor goes through. I am glad and willing to do my part. I hope they will consider it and give me a break so that I can go home soon and be with the best lady in the whole world, my beloved wife…</blockquote><h4>Special Thank You</h4><p>I’m extremely grateful to have had this rare opportunity, and it would not have been possible if it weren’t for my Aunt, Silvia Tontar, who worked hard to type all these letters in order to preserve them. Just reading through them is a treasure, but having the opportunity to analyze them had been a truly exceptional experience. Thank you Silvia!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=569f9aa752e2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Metis Weeks 4–6]]></title>
            <link>https://medium.com/@darien.pmt/metis-weeks-4-6-8bcf6c95ef3b?source=rss-e523889b0e9b------2</link>
            <guid isPermaLink="false">https://medium.com/p/8bcf6c95ef3b</guid>
            <category><![CDATA[science]]></category>
            <category><![CDATA[health]]></category>
            <category><![CDATA[covid19]]></category>
            <category><![CDATA[coronavirus]]></category>
            <category><![CDATA[united-states]]></category>
            <dc:creator><![CDATA[Darien Mitchell-Tontar]]></dc:creator>
            <pubDate>Sat, 16 May 2020 19:16:29 GMT</pubDate>
            <atom:updated>2020-05-25T18:04:32.321Z</atom:updated>
            <content:encoded><![CDATA[<h4>Covid-19: Predicting at risk U.S. Counties</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c-mn9qHPpz4JwKk2z8z7pw.gif" /><figcaption>Spread of Covid-19 across the United States</figcaption></figure><h4>Introduction</h4><p>During weeks 2–3 at Metis, our focus was on Regression Models, meaning that our predictor was a continuous quantity (like predicting NFL yards per game, for example). For our third project, we had to solve a classification problem, meaning our target variable was categorical. To keep things simple for us, we were encouraged to solve a binary classification problem, meaning we were essentially predicting an outcome of 0 or 1 (no or yes, or whatever order you prefer). This time I chose to focus on the covid-19 pandemic.</p><p>Before we get started, this is a low key overview of my project. If you want to see my data sets, code etc, you can find them <a href="https://github.com/darienpmt/darienpmt_covid-19">here</a>.</p><h4>Problem</h4><p>When I started this project on April 20, we already knew where the United States had been hit hard: New York, L.A., Chicago, Detroit to name a few. I was interested in identifying U.S. counties which were most at risk in the <em>next two weeks. </em>Was it going to be areas immediately surrounding major metropolitan hotspots, or did more rural/suburban areas have to be more concerned?</p><h4>Data</h4><p>There are a variety of wonderful data sources available on covid-19, and I’m sure there are many more now since I haven’t touched this project in a week and a half. For covid-19 case and death counts, I used data from the CDC. For county demographic data, I used the U.S. census. For testing and hospitalization data, I used the John’s Hopkin’s GitHub repo. SQL made it easy to merge these datasets together in a meaningful way.</p><h4>The Target Variable</h4><p>The biggest challenge in this project was determining what I meant by <em>at risk</em>. Unlike predicting say, whether or not a person will default on a loan, the data I collected did not provide a target variable for me.</p><p>Since I planned on using covid-19 as part of my feature set, I needed to hold out two weeks of data to produce my target. At the time of competing this project that was April 22 to May 5. Just to be <em>super</em> clear, the covid-19 data as part of my features only went up to April 21 to avoid data leakage.</p><p>A U.S. county is defined to be at risk if it saw any one of the following happen from April 22-May5:</p><ol><li>At least 150 cases while observing at least one week of a 50% increase.</li><li>At least 100 cases while observing at least one week of a 75% increase.</li><li>At least 50 cases while observing at least one week of a 100% increase.</li></ol><p>You might be thinking: “these are some pretty weak thresholds.” Well, as it turns out, only about 4.5% of U.S. counties earned this at risk label, a number that I was quite comfortable with, despite the huge class imbalance (more on that soon).</p><p>My rationale for having the case count threshold is the following: I did not want to label a county at risk if they saw an increase in cases from 2 to 8. On the other hand, a 40% weekly increase in cases would be quite bad in NYC, but we already know the conditions are bad there, so we wouldn’t be learning anything new.</p><h4>Modeling</h4><p>Before doing any meaningful modeling, I had to handle my class imbalance issue so that my models would have better data to train on (class imbalance refers to the fact that only 4.5% of counties were labeled at risk). I over sampled the training data using SMOTE, which helped my scores on the validation data more than any other attempt to improve the model (feature engineering, parameter tuning etc).</p><p>After fitting all models we learned to my training data, Random Forest turned out to be the best. One simple way to see this is to observe how the pink curve below is closest to the point (0, 1), a way oversimplified way of explaining how an ROC curve works.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/609/0*QC7q0Sc9YsCN_L9m" /></figure><p>More importantly than the model, which features are the best predictors for labeling counties at risk and how well does the model perform?</p><p>Of my 40+ features fed into the model, some of the strongest predictors for labeling a county at risk were:</p><ol><li>Percentage increase in cases in the most recent week.</li><li>Total cases and deaths per capita</li><li>Days since first case</li><li>Population Density</li><li>Hospitalizations and testing rate</li><li>Percentage of population black/hispanic</li></ol><p>It was not surprising to me that the covid data overshadowed the demographic features. Some other interesting finding here were that testing rates were 10 times higher in counties which were <em>not</em> labeled at risk. This is probably due to the fact that my model did not label previous hotspots at risk (because there increase in cases was not high enough). Also, the percentage of black and hispanics was twice as high in counties labeled at risk.</p><h4>Results</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/442/1*bzEl1L-ANhQ7CuWgW3M_6Q.png" /><figcaption>Confusion Matrix on test set</figcaption></figure><p>The graphic above shows that my model performed much better on counties actually at risk, predicting 64% of them correctly. For this, I am sacrificing some precision. As you can see, my model is predicting 57 counties to be at risk, but only 14 of them actually are. It was more important to me to slightly favor recall in this case because I wanted to prioritize counties that were most in trouble.</p><p>We can also visualize the model’s output in the form of map, perhaps a more useful way of interpreting the results.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q8tii7oqtDbZ74Ri3wjD3g.png" /></figure><p>The darker counties are more likely to be labeled at risk. As you can see, areas surrounding previous metropolitan hotspots are now most likely to be labeled at risk. The map above is actually interactive, if you want to play around with you can view it <a href="https://public.tableau.com/profile/darien2928#!/vizhome/CountiesliketoseeincreaseinCovid-19Cases/Dashboard1">here</a>.</p><h4>Conclusion</h4><p>Based on the map above, it was clear to me that the virus was spreading in new areas while slowing down a bit in the areas hit hardest at first. I decided to go back to my original covid-19 data and separate it into different groups, what I observed was very interesting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/981/1*V_S3SkCW3woeUzUGthhdyA.png" /><figcaption>New cases each week</figcaption></figure><p>As you can see, although the number of new cases in the United States are decreasing, this is mostly due to the increase seen in <em>previous</em> hotspots. Case counts are still increasing outside of those areas, which means that this is no time to relax.</p><p>The general consensus is that the virus will inevitably spread to all parts of the United States. We should especially focus our attention on counties for which it would be devastating for them to have an outbreak. Many rural counties do not have the appropriate resources to handle an epidemic and their populations do not have a high percentage of people with health insurance. Taking action <em>before</em> things get bad is the key to staying ahead of this virus.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8bcf6c95ef3b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Metis Weeks 2–3]]></title>
            <link>https://medium.com/@darien.pmt/metis-weeks-2-3-f44d1e8305bd?source=rss-e523889b0e9b------2</link>
            <guid isPermaLink="false">https://medium.com/p/f44d1e8305bd</guid>
            <dc:creator><![CDATA[Darien Mitchell-Tontar]]></dc:creator>
            <pubDate>Mon, 20 Apr 2020 06:01:00 GMT</pubDate>
            <atom:updated>2020-05-25T18:06:34.378Z</atom:updated>
            <content:encoded><![CDATA[<h4>Project 2: NFL running back yard per game performance</h4><p>During the second week at Metis we continued to bolster our knowledge of Pandas, Matplotlib and Seaborn, while adding web scraping and linear regression to our skill set. It was nice to feel more confident during the data cleaning and analysis phase of the project.</p><p>This is only a general overview of my project. If you want to see my code, how I got my data etc, then you can go <a href="https://github.com/darienpmt/darienpmt_covid-19">here</a>.</p><h4>The Problem</h4><p>We had a bit more freedom this week in terms of how we structured our projects. The only requirements were that we had to scrape data from the web and we had to fit a <em>model</em> our data. My initial problem involved predicting marathon race times, but this didn’t seem exciting enough to me, so I tried to go the Nate Silver route and went to professional sports. My goal was to see if I could <em>predict a future NFL running back’s yards per game performance based on their college statistics</em>. An innocent sounding question that turned out to give me quite a bit of trouble.</p><h4>Web Scraping</h4><p>I was able to find some comprehensive , and relatively clean, data from from <a href="http://www.sports-refence.com/">www.sports-refence.com</a>. They keep track of their stats on a season by season basis, so using beautiful soup and Pandas’ read_table function I scraped every running back’s single season performance, college and professional, from 1965 to 2019. This allowed me to make NCAA and NFL data frames respectively. I feel lucky that my data was easy to collect, but I’m worried I missed out on a more rewarding learning experience. Wed scraping is something that I will have to work on in the future.</p><h4>Cleaning</h4><p>Despite its initial squeaky clean appearance, this data set did require a bit of work. There were some basic formatting inconsistencies, but I will spare you the details . The major problems I dealt with were:</p><ol><li>I had single season statistics, but wanted career statistics</li><li>There are quite a few players who share the same name</li></ol><p>I couldn’t take care of the first problem without taking care of the second one since I needed to group the data by player name to obtain career statistics. Of all the players which had duplicate names, I decided to keep only the “best version” of each of them. No disrespect, but we have to make sacrifices from time to time. I was then able to safely group the NFL players by name and obtain their career stats.</p><h4>Analysis</h4><p>As soon I looked at the distribution of my target variable (what we are trying to predict, in this case NFL yards per game), I knew I was in trouble.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/642/1*aAbxRvp-NsMLUFL4WVTCLw.png" /></figure><p>This distribution is skewed to the right, which makes fitting a linear model to the data more challenging. I tried putting the target on a log scale later on in my analysis. I did some other basic analysis to see what was in store for me when I would try to fit a model to this data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*5VCsySaXW544w2MJduEZtA.png" /></figure><p>The heat map above shows my features (the NCAA data) have very little correlation with my target. Once we dig a bit deeper we can see why.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ev4OdXINR-9JVF8La7qFTQ.png" /></figure><p>The plots above show that my data does not meet the assumptions for linear regression. This can be seen by the fact that the residuals (left) are not symmetric around y=0, normally distributed nor have constant variance. The Q-Q plot on the right confirms that my data is skewed to the right. That, in combination with the fact that many of my features are linearly correlated, means that a linear model is not necessarily suitable for this dataset. To help with this, I standardized all my features and tried putting some of them on a natural log scale.</p><h4>Modeling</h4><p>I split the data into training, validation and test sets and fit my first models to the training and validation sets. I started by fitting every linear model I knew, and was especially curious to see which features my LassoCV model would tell me to keep.</p><p>My first Linear and Ridge models turned out to be the “best” according to my R2 value, but this could have been misleading because of multicollinearity (linearly correlated features as discussed before). Since I knew which features I wanted to remove, I decided to find the optimal parameters for Lasso and Ridge to see if they agreed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/698/1*6_wEehizzO6iXWJCt-YjZA.png" /></figure><p>The visual above is hard to read, mostly due to the reuse of colors, but it tells us that yards per game is an important feature to keep because it survives the longest as we increase the penalty of our coefficient size in the LASSO model. Other features, like reception yards, drop off very quickly. This, in combination with removing correlated features (such as “Games” and “Yards per Game,” “Attempts” and “Yards per Attempt”) led me to the five most impactful features for predicting NFL Yards per Game performance:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/695/1*-xyf2Tgop-Unn_95WK0E0g.png" /></figure><p>Yards per Carry is the most impactful feature with Total Yards measuring to be about 90% as important. What is curious to me about this result is that Yards per Game is only about 30% as impactful as Yards per Carry. It would make more sense to me if Total Yards and Yards per game were swapped, but these are the results my LassoCV model consistently produced.</p><h4>Future Analysis</h4><p>Throughout my several attempts to model this data effectively, I consistently got inconsistent results; my R2 values often depended on how my data was split (turning off random_state was helpful for observing this). I thought by filtering the data on certain features may allow me to obtain more accurate results on each new filtered data frame. For instance, splitting the data up by Yards per Carry:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kUL2IP0AZSI8iAD0ZQbdkQ.png" /></figure><p>As you can see, each of these three target variables from different frames look similar to the target of my entire data frame. I didn’t spend too much time playing around with these datasets, but I’m certain I’d be plagued with the same problems as before. This shows it can be rather hard to predict success in the NFL based on college statistics. A player with low yards per carry in college is capable of having a solid NFL career, while conversely, collegiate superstars are capable of “flopping” in the NFL.</p><p>This was a fun investigation that was hard to put down. I learned to appreciate “small victories” achieved in data science by improving your model by a tenth of a margin, and to fail time after time before achieving a final product I’ happy with.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f44d1e8305bd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Metis Weeks 2–3]]></title>
            <link>https://medium.com/@darien.pmt/metis-weeks-2-3-cebb52396f5d?source=rss-e523889b0e9b------2</link>
            <guid isPermaLink="false">https://medium.com/p/cebb52396f5d</guid>
            <dc:creator><![CDATA[Darien Mitchell-Tontar]]></dc:creator>
            <pubDate>Mon, 20 Apr 2020 06:01:00 GMT</pubDate>
            <atom:updated>2020-04-20T06:01:00.904Z</atom:updated>
            <content:encoded><![CDATA[<h4>Reflection</h4><p>A lot has happened the last two weeks and my head currently hurts. I don’t know if it’s due to lack of sleep, bad eating habits during covid-19 or information overload. Perhaps all of the above.</p><p>This was my first experience working on a multivariate mathematical model, and it was like no other problem I have ever solved. Many find math appealing because of it’s simplicity. Often, even in the most complex of problems, there is a clear path to a single solution (the path is at least clear once the problem has been solved). This is not the case with multivariate linear regression.</p><p>I felt completely at the mercy of my data. Improving my model was an almost impossible task. After I ran my first tests, I thought about changing my question because the initial fit was so poor. This is not how data science works however. Good scientists ask questions and use their methods and data to come up with answers, and even more questions. This process is epically slow, requires a lot of patience and forces you to grapple with failure.</p><p>Although I failed many times over to improve my model, I was able to arrive at a final result which I was very happy with; a unique juxtaposition I’ve never experienced. Our second project was a pleasant reminder that a collection of consecutive small failures can somehow amount to a success.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cebb52396f5d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Metis Week 1]]></title>
            <link>https://medium.com/@darien.pmt/metis-week-1-27dc1ac322bf?source=rss-e523889b0e9b------2</link>
            <guid isPermaLink="false">https://medium.com/p/27dc1ac322bf</guid>
            <dc:creator><![CDATA[Darien Mitchell-Tontar]]></dc:creator>
            <pubDate>Sun, 05 Apr 2020 06:01:00 GMT</pubDate>
            <atom:updated>2020-04-05T06:01:00.868Z</atom:updated>
            <content:encoded><![CDATA[<h4>Reflection</h4><p>Completing the first project at Metis was as much about reflection for me as it was about learning and applying <em>basic</em> data science tools.</p><p>My approach to learning has drastically changed since I was in college and graduate school. I was a good student during my university years, but my focus was never on learning and instead on achieving results. Being a teacher for 8 years has taught me, among many other things, that learning is a privilege. It’s a challenge that should be relished because it is what allows us to grow. It also takes <em>time</em>. This shift in mindset makes me feel like I have already accomplished something during my transition out of teaching.</p><p>During the first week at Metis I learned that I do in fact have the ability to push through adversity and find a solution to a problem that is not perfect, but one that I am happy with. I seriously considered dropping out of the program many times during the first week as negative thoughts crept into my mind. It’s much easier to believe that you cannot do something because the path to giving up is much more straightforward, but far less rewarding. As a student, far too many times had I given in to those thoughts. Although the desire to quit or do nothing will still inevitably enter my mind from time to time, I am much more confident in my ability to acknowledge those thoughts, and move on from them.</p><p>At this point, I am much more optimistic and excited about the next 11 weeks than I was at the start of the programming. I know that I can trust my instructors, as they warned us about the challenges of the first week and immediately quelled our aspirations of pursuing “perfection” in the completion of our work.</p><p>Staying in line with that theme, I’m now going to end my first post. Of course I’ve already re-read it 10 times over, but I promise the next post I will limit to at most 5.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=27dc1ac322bf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Metis Week 1]]></title>
            <link>https://medium.com/@darien.pmt/metis-week-1-193a4a86ade0?source=rss-e523889b0e9b------2</link>
            <guid isPermaLink="false">https://medium.com/p/193a4a86ade0</guid>
            <dc:creator><![CDATA[Darien Mitchell-Tontar]]></dc:creator>
            <pubDate>Sun, 05 Apr 2020 06:01:00 GMT</pubDate>
            <atom:updated>2020-05-25T18:08:11.232Z</atom:updated>
            <content:encoded><![CDATA[<h4>Project 1 MTA turnstile EDA</h4><p>Following up on my reflection of week 1, Metis certainly provided the type of challenge that I was not equipped to handle in my earlier years as a student. We had several interesting lessons throughout the week, but most of the learning was accomplished by <em>applying</em> what we learned in each lesson, and in many cases, this application was not direct. I was always good at following directions and applying procedures as student, but rarely did I excel in transferring my learning to unfamiliar contexts.</p><p>Our learning objectives during week 1 were to become more fluid in our use of Pandas, Matplotlib and Seaborn for the purpose of Exploratory Data Analysis, or EDA. The vehicle for accomplishing this goal was short project using public data from the MTA (New York City’s Metropolitan Transit Authority).</p><h4>The Problem</h4><p>We were split up into groups of 3 to 4 working with a fictitious client, Women Teach Women Yes (WTWY), helping them promote their annual summer gala. WTWY was curious about where to canvass in order to collect emails so they could send out free invites for their event; they were specifically looking to send teams to various subway stations around New York City. It was our job to make a recommendation to them based on the data provided by the MTA.</p><h4>Data Collection and Cleaning</h4><p>Since this was our first project, the <a href="http://web.mta.info/developers/turnstile.html">data</a> was essentially given to us. My mom could spend 10 seconds surfing the web and find a sufficient data source for this project. Additionally, it was not necessary to write a web scraping algorithm to collect the data (although some groups chose to do this anyway). Our group chose to keep things relatively simple. Since the event was planned for early summer, we decided to use data from February 23 to June 29, 2019.</p><p>It was clear why this was our first project pretty quickly, because this data required a significant amount of cleaning. The data sets did not explicitly provide information about the subway stations themselves, but rather about the individual <em>subway turnstiles</em> at specific times. For example, consider the row:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/697/1*-FTFaEYIVPTtkqVpIr--0A.png" /></figure><p>This tells us the unique turnstile identified by the combination “C/A, UNIT, SCP” at the “59 ST” station with lines “NQR3456W” had 7,053,483 entries since its <em>count was initiated</em>. As you can imagine, this presented many problems for us.</p><ol><li>To get around the problem of cumulative entries, we decided to look at the absolute <em>differences</em> between subsequent rows. This gives us the number of people who entered/exited a turnstile in a particular time window. To avoid mixing together different turnstiles, different stations etc, we marked the first value of each new turnstile as `np.nan`.</li><li>Since the turnstile counts reset themselves after reaching a particular value, we used the interquartile range to determine the range of differences we should keep. We used a bit of intuition here to decide what made sense. Before removing potential outliers, our maximum differences were around 3 billion, afterwards, they were around 3,000. We were okay with this.</li><li>Lastly, we decided to combine entries and exits as a single value to simplify our analysis. Think of this as the total number of people exiting and entering a station.</li></ol><p>After the cleaning process, we felt ready to begin our analysis.</p><h4>Data Analysis</h4><p>Our Minimum Viable Product (MVP) was to provide the client with the top 10 busiest stations in NYC determined by daily average foot traffic (people entering + exiting). If we could manage to <em>only</em> do this, we’d be happy (it’s harder than it seems, okay).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cSI7jbWjF8TeQef9I4SZ4g.png" /></figure><p>We used this to focus our attention to focus on 4 stations only:</p><ol><li>Grand Central</li><li>34 St. Herald Sq.</li><li>34 St. Penn Station (ACE)</li><li>14 St. Union Sq.</li></ol><p>We did not include Port Authority because it is the major bus station hub in NYC and we figured there would be many travelers and long distance commuters coming through there. It’s also an awful place.</p><p>Next, we zoned in on which days of the week the WTWT street teams may want to canvass on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LVW3suyF5nCKRSsOaG-nKQ.png" /></figure><p>Unsurprisingly, the busiest days are Monday through Friday, with foot traffic peaking on Thursday. This makes sense anecdotally because many New Yorkers may choose to take a Friday off here and there. It is also interesting to note that Grand Central Station sees a more drastic drop off in foot traffic during the weekend. This may be because people working in the city return to their “country homes” via train on Friday, but we did not explore this further.</p><p>Lastly, we analyzed these stations by time of day, to see if we could pinpoint a time range for the street teams to visit the stations. These results are also no surprise.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wrVSXv16xHS-IU7NZMjbVQ.png" /></figure><p>As you can see, traffic picks up during the morning rush hour, and peaks during the evening rush hour. Still, entries and exits are quite high during midday, and this may be the ideal time to visit a station if you want to be dealing with more relaxed patrons of the subway.</p><h4>Recommendation</h4><p>Based on our results, we made the following recommendation to WTWY.</p><ol><li>Penn Station &amp; Herald Sq. from 4pm to 8pm or 8am to 12pm</li><li>Grand Central Station from 4pm to 8pm or 8am to 12pm</li><li>Union Sq. from 4pm to 8pm or 8am to 12pm</li></ol><p>We felt comfortable grouping Penn Station and Herald Sq. together because they are in such close proximity (only one block apart). Union Sq. is also an intriguing location because of the low drop off in foot traffic when comparing the weekday versus the weekend. This suggests that you may find more local New Yorkers who are more likely to attend the event.</p><p>In addition to the MTA data analysis, we looked at census data to confirm that New York Cities wealthiest professional women lived primarily in Manhattan. Although this turned out to be false (Brooklyn has slightly more women categorized by the census as “professional.”). The per capita income of women in Manhattan was more than twice that of Brooklyn, making them more likely to donate to WTWY.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=193a4a86ade0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>