<?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 Samuel Hepner on Medium]]></title>
        <description><![CDATA[Stories by Samuel Hepner on Medium]]></description>
        <link>https://medium.com/@samuelhepner03?source=rss-43b4191caa74------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*7jZWKQOIkoyn6efRZSBN-w.jpeg</url>
            <title>Stories by Samuel Hepner on Medium</title>
            <link>https://medium.com/@samuelhepner03?source=rss-43b4191caa74------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 13:04:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@samuelhepner03/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[2 Months Into Lambda School]]></title>
            <link>https://medium.com/@samuelhepner03/2-months-into-lambda-school-3cf1718cc69f?source=rss-43b4191caa74------2</link>
            <guid isPermaLink="false">https://medium.com/p/3cf1718cc69f</guid>
            <category><![CDATA[lambda-school]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Samuel Hepner]]></dc:creator>
            <pubDate>Tue, 03 Sep 2019 16:19:30 GMT</pubDate>
            <atom:updated>2019-09-03T16:19:30.770Z</atom:updated>
            <content:encoded><![CDATA[<p>My name is Samuel Hepner and I’ve been a Data Science student at Lambda School for a little over two months. At this point, I’ve learned how to write better python code, work on Anaconda prompt, and how to release an app using Heroku.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*QETRQQyZHKfq1rtWcnHrZw.png" /></figure><p>While learning how to work with Anaconda prompt and write better code was relatively pain-free, learning how to make an app wasn’t done as easily but working with my Team Lead* (TL) made things less frustrating.</p><p>*At Lambda School, we have an instructor for the big group and then we have small groups which are lead by TLs. TLs are previous Data Science students from Lambda School who were hired after completing their coursework.</p><p>The first, and most significant, moment that comes to mind is when I was first getting my app to display predictions. We had just spent half an hour writing the code for the sliders and the function that would predict depending on the value of the sliders. For some reason, the function wouldn’t work with the sliders but it would work if you hard coded values in the function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/458/1*7C5h5C2f84yhBuEuCSvclA.png" /></figure><p>I was stumped a while back, because everything was so new, but now my TL was confused. For a couple hours, we tried this and that and nothing seemed to be working until my TL started to look at the parameters of the function. He finally decided “why not, let’s try this” and he changed the order of the parameters to match the order of the sliders.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/765/1*nNITJfiMKd5BsRQfahQRzA.png" /></figure><p>And it worked!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/707/1*u-1gJy5xRVyy7_y2q91moQ.png" /></figure><p>(with many thanks to my TL)</p><p>Essentially what I’m trying to say is: Data Science, like many other fields, is very hard to learn and get into (especially if you haven’t been programming since you were 12) but Lambda School helps make it a thousand times easier (and cheaper) to become a data scientist.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3cf1718cc69f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fifth Week at Lambda]]></title>
            <link>https://medium.com/@samuelhepner03/fifth-week-at-lambda-473ce42de465?source=rss-43b4191caa74------2</link>
            <guid isPermaLink="false">https://medium.com/p/473ce42de465</guid>
            <category><![CDATA[lambda-school]]></category>
            <category><![CDATA[classification]]></category>
            <category><![CDATA[regression]]></category>
            <category><![CDATA[one-hot-encoding]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Samuel Hepner]]></dc:creator>
            <pubDate>Thu, 08 Aug 2019 15:59:48 GMT</pubDate>
            <atom:updated>2019-08-08T15:59:48.287Z</atom:updated>
            <content:encoded><![CDATA[<p>Since I wrote last week about my project and the week before that kept me busy with the project, I’ve finally decided to talk about my experience at Lambda school, again.</p><p>This week has been all about classification and regression. The first day was about cleaning data from outliers and using scikit-learn to build a linear regression. For the assignment we looked at a data set from renthop, which is a website used to find apartments in NYC. We were asked to predict the price of an apartment in Tribeca when given the number of bathrooms.</p><p>This is what I ended up with:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*UrYr-h4Zb6WewOkQo7e0FA.png" /><figcaption>A regression of # of bathrooms vs. the cost of the apartment in Tribeca</figcaption></figure><p>To get the graph was not as easy as snip, crtl-c, and crtl-v. There was a process.</p><p>The next day, we focused again on regression but this time we were looking at multiple regression instead of linear regression (day 1).</p><p>We looked at renthop.com again but instead of focusing on Tribeca, we looked at apartments in NYC. The data came with the bedrooms, bathrooms, longitude, latitude, all the amenities, and, of course, price.</p><p>Our job? Make multiple features to build a regression model against the price. Along with the assignment, we also had a challenge to get the best MAE (Mean Absolute Error).</p><p>“What’s the best you got?, you ask.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/505/1*VKTwI4Qte1kSl9Gmp1vUaw.png" /><figcaption>The other things besides MAE are other types of error.</figcaption></figure><p>Until yesterday, we were taking whatever data that worked and used it. Yesterday, we learned how to take columns that had a relatively low number of unique values (usually string values) and change the data to be represented by integers.</p><p>We practiced doing this with a data set from the NYC Department of Finance which has a record of every property sale. We looked at house sales in a certain range and we looked at the sales of “One Family Dwellings”. In looking at certain data values, it makes the data set a more manageable size.</p><p>For assignment, I made visualizations to see which features have an interesting relationship. After that, I took a look at the categorical variables and I found one feature that had only 2 unique values, so I changed it to binary(0/1). If you’re curious, I used something called One Hot Encoding to make the change from string to int.</p><p>After a lot of coding magic, I got to the point where I could run regression models and this is the best I got for MAE:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/473/1*AYG925DpfQ5sXE9PgHuwYA.png" /></figure><p>Not bad. Right?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/0*Xu_X9J86UT9IDPAR.jpg" /><figcaption>Please don’t sue me, Disney. Please hire me.</figcaption></figure><p>P.S. To whoever commented on the post about my project, I doubt you’ll see this. However, if you do, I want to correct myself. After looking back at the data set, I realized that I misinterpreted the total column as total permits. That is not true. The total column stands for the total number of background checks. I apologize and I will edit that when I find a moment.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=473ce42de465" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[First Project at Lambda]]></title>
            <link>https://medium.com/@samuelhepner03/first-project-at-lambda-8fa0a562c1aa?source=rss-43b4191caa74------2</link>
            <guid isPermaLink="false">https://medium.com/p/8fa0a562c1aa</guid>
            <category><![CDATA[guns]]></category>
            <category><![CDATA[lambda-school]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Samuel Hepner]]></dc:creator>
            <pubDate>Thu, 01 Aug 2019 02:18:53 GMT</pubDate>
            <atom:updated>2019-08-01T02:18:53.645Z</atom:updated>
            <content:encoded><![CDATA[<p>For my first project at Lambda school, I wanted to look at an issue that has been discussed a lot in America. The topic I will be jumping into is the age-old American question: Do guns make a place safer?</p><p>In my data exploration I used a data set from <a href="https://raw.githubusercontent.com/BuzzFeedNews/nics-firearm-background-checks/master/data/nics-firearm-background-checks.csv">Buzzfeed</a> and I looked at this <a href="https://wallethub.com/edu/safest-states-to-live-in/4566/">site</a>, where they did their own data exploration on what the safest states in America are.</p><p>In the site, they obtain data about each state’s history and give each state a safety rating. In the dataset from Buzzfeed, they have collected gun permit data for the United States (by state) from 1998–2019(up to June of 2019).</p><p>I decided to eliminate columns and add up all the totals to get a total of gun permits from 1998–2019, for each state .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/293/1*qTj97m7S0IUCcWVGBL0-EA.png" /><figcaption>Top 5 U.S. states that have the most gun permits</figcaption></figure><p>I, then, calculated a sum for the entire US so I could find percents of each state. Through the use of plotly, I ended up with a choropleth map of the U.S.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iglsgzSt6t7RQTu5EhXTNA.png" /></figure><p>If you were able to play around with the visualization you would find the ranking of the states with the highest percent is:</p><ol><li>Kentucky - 12 percent</li><li>Texas - 7 percent</li><li>California - 6.7 percent</li><li>Illinois - 6.5 percent</li><li>Pennsylvania - 4.7 percent</li></ol><p>Let’s take a look at the states at the bottom of the list:</p><p>46. Hawaii - .07 percent</p><p>47. Rhode Island - .1 percent</p><p>48. Vermont - .17 percent</p><p>49. Delaware - .18 percent</p><p>50. Wyoming - .31 percent</p><p>At first glance, you’ll notice that a lot of the states with a high percentage are also states with a lot of people in them. You’ll also notice that all of the states with the lowest percentage are the states with small populations.</p><p>Let’s continue and look at the safest states in America!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/699/1*CWXK3OytlTpiD3Xp5DO5Kg.png" /></figure><p>The Safest…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/212/1*Bnzbyb1NMgHjvrgFLAeLtA.png" /></figure><p>The least safest…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/216/1*ZGKVxBDYIY__7xDD2egBDg.png" /></figure><p>As we compare the two lists from the study and the two lists I printed out, you’ll notice a few similarities. A couple of states in the lowest percentages of gun permits list appear in the top 10 safest states. You also might notice that Texas appears in the list of safest states at #46 and also can be seen towards the top of my list of states with the most gun permits.</p><p>To conclude, it is possible that there is a negative correlation between percent of gun permits and their position on the list of safest states. However, I believe that there is more likely situation: more people in a state is negatively correlated with the position on the safest states list.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8fa0a562c1aa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Second Week at Lambda]]></title>
            <link>https://medium.com/@samuelhepner03/second-week-at-lambda-256c83d118e?source=rss-43b4191caa74------2</link>
            <guid isPermaLink="false">https://medium.com/p/256c83d118e</guid>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[lambda-school]]></category>
            <dc:creator><![CDATA[Samuel Hepner]]></dc:creator>
            <pubDate>Thu, 18 Jul 2019 15:51:51 GMT</pubDate>
            <atom:updated>2019-07-18T15:51:51.181Z</atom:updated>
            <content:encoded><![CDATA[<p>This week of classes felt a bit like review but it also felt like brand-new material as well!</p><p>We covered joining data, using concat, append, and merge from the pandas library, and reshaping data by choosing certain rows and columns to work with. This is both familiar and brand-new to me because before Lambda school, I was doing Data Analytics research with Tableau and Tableau Prep. With Tableau Prep, I was able to join and reshape data without having to do any coding. That’s why this week at Lambda school felt similar yet different.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/611/1*xGmaDzD-lq-UC-hQpdjG5Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/629/1*xaGXYUw8nIQEHILc-3jyOg.png" /></figure><p>Another thing we worked on was building our own personal website. Through the power of GitHub and a personal domain, I had a working website in under two hours. Isn’t that crazy? In the second week of this school, they were already helping us work on our professional development. I’d never bought a domain before and I’d never made a website, either. Yet, in two hours, I had done both!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DhXpctXvdabqdKrlvjMlQQ.png" /></figure><p>Towards the end of the week, we focused on continuing to make visualizations, from the first week, but concentrating on replicating a visualization from <a href="http://fivethirtyeight.com/">fivethirtyeight.com</a> which meant changing the graph in an aesthetic direction (adding title and subtitle, changing fonts, changing the colors of the bars, and change the opacity of the axes and the number line.).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/458/1*x5ugnn1ktulrndR8I9iEOw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/414/1*dhoj96S9r7mqfDATiTL2PQ.png" /></figure><p>For our last day of instruction, we’ll be focusing on using visualizations to help tell a story or answer a question.</p><p>See you, next time!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=256c83d118e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[First Week at Lambda school]]></title>
            <link>https://medium.com/@samuelhepner03/first-week-at-lambda-school-9de8de06a736?source=rss-43b4191caa74------2</link>
            <guid isPermaLink="false">https://medium.com/p/9de8de06a736</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[lambda-school]]></category>
            <dc:creator><![CDATA[Samuel Hepner]]></dc:creator>
            <pubDate>Thu, 11 Jul 2019 15:41:36 GMT</pubDate>
            <atom:updated>2019-07-11T15:41:36.807Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Lambda school logo" src="https://cdn-images-1.medium.com/max/180/0*2z7YkZ2RGUM_j9OB.png" /><figcaption>Lambda school logo</figcaption></figure><p>Before starting my first week at Lambda school for Data Science, I was really nervous. I didn’t what the schedule would be like, what kind of people I’d be interacting with, and what the course work for the first week would be.</p><p>The first day, as it turned out, wasn’t bad or good. It ended up being a lot of lecturing. They went over the schedule that they “handed” out, how to get assignments, and how to turn them in. At the very end of the day (after lunch), we got to do a little programming practice to help us bridge the gap from whenever we completed the pre-interview coursework.</p><p>The second day was a little better than the first day. There was a little bit more lecturing but we eventually got to learn some new things and got to practice the material on our own.</p><p>Yesterday, my favorite day so far, started with a coding challenge that I was scared of at first, probably because I overthought the questions. Afterwards, we learned about how to make data-based assumptions, which was not an entirely new concept for me, but doing so in python was new for me.</p><p>And yes, I’m tired.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9de8de06a736" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>