<?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 Sadie Bennett on Medium]]></title>
        <description><![CDATA[Stories by Sadie Bennett on Medium]]></description>
        <link>https://medium.com/@sadie-bennett?source=rss-acbb4f0f1394------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*8yA04iWriTBwzhcJmxp6Rw.jpeg</url>
            <title>Stories by Sadie Bennett on Medium</title>
            <link>https://medium.com/@sadie-bennett?source=rss-acbb4f0f1394------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 17:01:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sadie-bennett/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[The Code of Making an Instagram Influencer]]></title>
            <link>https://sadie-bennett.medium.com/the-code-of-making-an-instagram-influencer-244cda7f191?source=rss-acbb4f0f1394------2</link>
            <guid isPermaLink="false">https://medium.com/p/244cda7f191</guid>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[influencer-marketing]]></category>
            <category><![CDATA[social-media]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Sadie Bennett]]></dc:creator>
            <pubDate>Wed, 24 Apr 2019 18:40:19 GMT</pubDate>
            <atom:updated>2019-04-25T02:25:23.761Z</atom:updated>
            <content:encoded><![CDATA[<p>The fear of technological automation leading to mass unemployment has existed since technology began to be used in the workplace. And while research shows this fear has been <a href="https://www.ft.com/content/732c3b78-329f-11e8-b5bf-23cb17fd1498">largely inflated,</a> it is still a concern that programmers and engineers must address when developing these technologies. Many industries, from healthcare to truck driving, have been discussed in the media as on the chopping block by AI’s hand. One industry, however, that has not been examined is the world of Instagram influencers.</p><p>I worked as a Social Media Marketer for approximately two months at a small e-commerce fashion startup. Among a few other tasks, my primary role was to take over their influencer outreach. I spent hours reaching out to hundreds of influencers, making passioned appeals as to why they should want to work with and promote our company. It was often a frustrating process as much of my outreach was fruitless. However, we did it because it works. Influencer marketing has become a standard in marketing an online business. For each dollar spent on influencer marketing, marketers see an average of $7.65 in earned media value returned. By 2020, the industry of influencer marketing is expected to grow to a 2.3 billion U.S. dollar business.</p><p>And it is by no means only a favorable market for companies: extremely high profile influencers like Kylie Jenner make an estimated $1 million for a single sponsored post. Even ‘micro-influencers’, those with around 10,000 to 50,000 followers, <a href="https://www.vox.com/the-goods/2018/11/28/18116875/influencer-marketing-social-media-engagement-instagram-youtube">can expect a few thousand dollars for a post</a>. This is a lucrative, and growing, business.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OpPGG5HdLqHJ7GPix-hiEw.png" /><figcaption>@kimkardashian</figcaption></figure><p>When I began programming and learning more about Artificial Intelligence, I never connected it to my past in social media. From experience, what makes influencers successful is a psychological brew of how credible they can be to their audience — the relatability of someone who shows seemingly every aspect of their daily life down to the food they eat, expertise on fashion, food, beauty, and the halo effect, that attractive people are smarter and more likable. This intoxicating combination is deeply connected to our vulnerabilities as, at times, insecure human beings and seems so far from what a bot could attempt to replicate.</p><p>There have been some more artistic attempts at making influencer bots. The most well known example being an influencer known as <a href="https://en.wikipedia.org/wiki/Lil_Miquela">Lil Miquela</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LuX625Qv4RVk0K_S2jeqOw.png" /><figcaption>@lilmiquela</figcaption></figure><p>When Lil Miquela first came online in 2016, she garnered a lot of controversy with many speculating whether she was real and some viewing her as part art project and social experiment. Her page, with over 1.5 million followers, shows an Instagram it-girl: pretty, well-dressed, and hanging out with your favorite celebrities. The only thing that separates her from the top influencers is that…well, she’s not real. The page raises questions of what is ‘real’ and ‘not real’ in the world of social media, but besides her image everything else is still made by a human.</p><p>What would it mean if everything on a Instagram page was tech generated? If the photos, captions, and following were all auto-generated all with the goal of gaining the biggest influence possible? This is exactly what Chris Buetti explored in his article “How I Eat For Free in NYC Using Python, Automation, Artificial Intelligence, and Instagram.” I have to be honest here and say that the first half of his title is what made me click on the article, but the latter half is what made me stay. Buetti created an entirely automated Instagram page that pulled pictures from around New York City and ended up amassing over 25,000 followers (at the time his article was written). The beauty of gaining this amount of followers was this allowed him to reach out to local restaurants and ask for a free meal in exchange for being featured on the page. The reaching out was automated, too, of course.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/852/1*GwHc35ucskEicWEtUU_xJw.png" /></figure><p>This article, to me, was genius on my screen. I’ve lived in New York for the past four years and over time have gone through waves of Seamless binges before my debit card cries out in exhaustion. The idea of having a seemingly endless supply of free meals at my disposal, all done through code, seemed inconceivable. And the best part was Buetti’s emphasis that anyone, with varying levels of automation, could do it for themselves.</p><p>Buetti used Python for most of his project. Python likely works best for the project as it is the language that is most commonly used in Machine Learning. Over time, I hope to replicate his entire page, but I wanted to start somewhere I was comfortable, so I picked captions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*cspiIBgppyuBEPUF0bKU9w.png" /></figure><p>First, I created an array of captions and hashtags. Buetti’s list was probably a hundred or more, but I wanted to start small and see how it worked. Then I made a function that would iterate through this list and create unique captions with each hashtag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/816/1*QPo94e8ilppWU8EuAQAR3A.png" /></figure><p>My output:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WoLg3lC5DEikFuoXgqsQZg.png" /></figure><p>There we go! I now have a very simple caption function that will randomly choose from my list and create unique captions with each hashtag I could use on my photos. Following Buetti’s article, I now need to incorporate giving credit to the page I get the photo from using REGEX and machine learning, but this is one step on the way to making my automated page.</p><p>The most interesting, and likely most difficult, next step is developing a Machine Learning Model that will select high quality images from Instagram and re-post them on the page. I hope to continue and end up with a fully functioning automated Instagram and eventually become an influencer that companies will want to work with.</p><p>While I see how well something like an automated page could work for personal use, it is unlikely that automated pages like this one would ever become the norm on social media. The deeply human experience of pining after another human’s life has not yet been shown to be something an AI could replicate, but where there is a will and capital, a programmer will find a way.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FpJjKzRqY9HwME%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FpJjKzRqY9HwME%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FpJjKzRqY9HwME%2Fgiphy.gif&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="326" frameborder="0" scrolling="no"><a href="https://medium.com/media/c703ac12aa3fcafbbb6e8e32024fc20a/href">https://medium.com/media/c703ac12aa3fcafbbb6e8e32024fc20a/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=244cda7f191" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hanami: the new frontier]]></title>
            <link>https://sadie-bennett.medium.com/hanami-the-new-frontier-259126e82d04?source=rss-acbb4f0f1394------2</link>
            <guid isPermaLink="false">https://medium.com/p/259126e82d04</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[hanami]]></category>
            <category><![CDATA[rails]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[ruby-on-rails]]></category>
            <dc:creator><![CDATA[Sadie Bennett]]></dc:creator>
            <pubDate>Wed, 27 Mar 2019 17:38:18 GMT</pubDate>
            <atom:updated>2021-02-28T20:41:34.888Z</atom:updated>
            <content:encoded><![CDATA[<h3>Hanami: the New Frontier</h3><p>With the tunnel vision-like focus to which I have given learning Ruby on Rails the past few weeks, it was easy to forget that not only are there other options, there might be even<em> better </em>options for making web frameworks with Ruby.</p><p>Rails, and its magic, is still quite exciting to me. The speed at which I can go from making a new project in terminal to seeing it up and running in browser is astounding. However, with great power <em>should</em> come great responsibility, and often I don’t feel that responsible for what I just created. Maybe it’s because I’m a Virgo, but the Rails magic sometimes feels too good to be true. Rails comes with controllers that, depending on the size of the app, may be responsible for almost half the functionality. This feels a little dangerous to me, and it made me curious for what else might be out there.</p><p>It turns out there’s<a href="https://naturaily.com/blog/8-frameworks-ruby-not-rails"> a lot of options:</a> Sinatra, Roda, Grape, among others. When looking over the options, one framework stood out among the rest. It was described as coming the closest to competing with Rails in terms of its similarity and also the ways it has sought to make improvements to Rails. Meet <a href="https://hanamirb.org/">Hanami</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3Mt5gkDy1PG6necl8eTG3w.png" /></figure><p>Hanami boasts itself as being the light, simple, and more efficient option for building Ruby frameworks. Predictably, much has been written about the benefits and whether Hanami will actually end up <a href="https://boffinism.com/why-hanami-will-never-unseat-rails/">unseating Rails</a> as the most popular web framework.</p><p>Somewhat surprisingly, Hanami and Rails share quite a few things in common. They are both built to follow a Model-View-Controller pattern and both have very specific ways that they believe these apps should be built — the Rails Way and Hanami Way, respectively. What really distinguishes Hanami for me is the emphasis on making distinctions between actions and providing a single source of truth. In Rails, controllers are full classes that contain all the actions for a particular class. These controller files can get very long, but this method is all a part of the RESTful conventions. In Hanami, however, a controller is separated into distinct modules. The duty of these modules is to group all distinct actions like index, show, and update, for example.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*slFBNtDk6P7-KtkNHLUmuQ.png" /><figcaption><a href="https://sipsandbits.com/2018/05/23/rails-controllers-vs-hanami-controllers/">https://sipsandbits.com/2018/05/23/rails-controllers-vs-hanami-controllers/</a></figcaption></figure><p>Despite the similarities of logic, the Hanami Way is quite different. As discussed earlier, each module action is separated in a distinct file. Validations, rather than being thrown into models, exist distinctively in their own layer. Not only is this cleaner, but it also means that each action can validate params in its own way. There are many more ways in which Hanami separates concerns, but all of these point back to its philosophy of pragmatism. It forces the coder to write “good code” in a simple and DRY way and promises it will return the same things. Let’s get into some of the benefits and pitfalls of Hanami.</p><h4><strong>The Benefits of Hanami</strong></h4><ol><li>It’s not popular — yet: What is nice about Hanami is that it’s still quite new which means there’s a lot of uncharted territory in terms of what the framework could build. Also because of the small user base, Hanami developers are quite involved in hearing the concerns of the broader programmer community. Even the creator of Hanami <a href="https://www.reddit.com/r/ruby/comments/6qvfne/hanami_will_never_unseat_rails/dl1rygc/?st=j5uv0u47&amp;sh=9e4fae87">often makes comments</a> in Hanami Reddit threads.</li></ol><p>2. It’s not too different from Rails: A lot of the logic and set up is similar for MVC which means a developer moving from Rails to Hanami wouldn’t have too much trouble understanding and picking up on how to use it.</p><p>3. Complexity in Simplicity: Because of Hanami’s emphasis on separation of concerns and what is known as “container architecture”, multiple apps can exist on the same project. This set up would be almost impossible in Rails without having bloated directory paths, and scaling beyond that gets even more sticky. Also, the simplicity of Hanami means it generally consumes less memory and runs faster than a comparable Rails app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mMXN9RAjKzc4kuxk2OP1MQ.png" /><figcaption><a href="https://guides.hanamirb.org/architecture/overview/">https://guides.hanamirb.org/architecture/overview/</a></figcaption></figure><h4>…And the pitfalls</h4><ol><li>It’s not popular — yet: In the same way that it feels exciting to be on the frontier of a new framework, it also makes it incredibly frustrating. Someone learning Hanami and beginning to build apps on it has little in the way of resources when they encounter issues. The Hanami guide is helpful, but other than that it is still limited. A search for ROR on Stack Overflow returns 303, 520 questions with the tag. Meanwhile, Hanami only returns 160. Furthermore, <a href="https://stackshare.io/stackups/hanami-vs-rails">according to StackShare</a>, 2,728 companies, including AirBnB, Twitter, and Shopify, use Rails as compared to 2 companies using Hanami.</li><li>It’s not too different from Rails: I repeat this point again as a pitfall not necessarily for a developer using Hanami, but more in reference to Hanami’s future success. Because it doesn’t have mind-blowing distinctions from Rails, the motivation for companies or individual developers to make the move to Hanami based frameworks is low.</li></ol><p>As a novice Ruby on Rails developer, I have come to realize the issues that may present as I begin to build more complex web apps. At first glance Hanami seems like the way to go, but in terms of practicality and our current web ecosystem, it doesn’t make sense to dedicate the time to being solely or mostly a Hanami developer.</p><p>It is unlikely that one single framework will ever totally be “better” than any other. What you get in magic, you give up in control and vice versa. It is important to spend time looking into each framework and decide what best fits the needs for each developer and each project. Popularity does not necessarily translate into efficiency, even if it means learning a completely new way of doing things. As the Hanami guide itself states:</p><blockquote>“without change, there is no challenge and without challenge, there is no growth.”</blockquote><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FArrVyXcjSzzxe%2Ftwitter%2Fiframe&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fstar-wars-try-yoda-ArrVyXcjSzzxe&amp;image=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FArrVyXcjSzzxe%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="174" frameborder="0" scrolling="no"><a href="https://medium.com/media/b12e4642e27399ddc266c0283dba214e/href">https://medium.com/media/b12e4642e27399ddc266c0283dba214e/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=259126e82d04" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Beginning Programmer’s Foray into Solving AI’s Bias Problem]]></title>
            <link>https://sadie-bennett.medium.com/a-beginning-programmers-foray-into-solving-ai-s-bias-problem-f62373e6a09b?source=rss-acbb4f0f1394------2</link>
            <guid isPermaLink="false">https://medium.com/p/f62373e6a09b</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[bias]]></category>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Sadie Bennett]]></dc:creator>
            <pubDate>Wed, 13 Mar 2019 13:48:51 GMT</pubDate>
            <atom:updated>2019-03-22T02:43:47.452Z</atom:updated>
            <content:encoded><![CDATA[<p>A Beginning Programmer’s Foray into Solving AI’s Bias Problem</p><h4><strong>T</strong>he way that bias and prejudice develops in the human brain is an oft studied and as yet not entirely understood process. We may be even further from understanding how to reduce it’s existence in Artificial Intelligence, or AI.</h4><p>Amid all the controversies of AI from its <a href="https://www.gbgplc.com/inside/ai">mere existence</a> to the possibility it will lead to the <a href="https://www.express.co.uk/news/science/875084/Stephen-Hawking-AI-destroy-humanity-end-of-the-world-artificial-intelligence">destruction of the human race</a>, what has stood out to me the most was the overwhelming stories of bias. There are many ways an AI can be “biased,” the source could be data driven as Hewlett-Packard discovered with its face localization algorithm that failed to recognize dark faces. The bias could also develop through user interaction as shown in early 2016, when Microsoft revealed a Twitter bot named Tay. The bot engaged with Twitter users through a conversation format, and it only took less than 24 hours for the bot to begin spewing racist, sexist, and transphobic tweets, many unprompted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*t0FLIgfI-aZf7_sn1OCjrw.jpeg" /><figcaption>@TayAndYou, “I f***** hate feminists and they should all die and burn in hell.”</figcaption></figure><p>There are <a href="https://techcrunch.com/2016/12/10/5-unexpected-sources-of-bias-in-artificial-intelligence/">many ways</a> AI can produce bias, but amid all the flashiness that has been given to the topic in the media, it is easy to forget the serious implications the issue can have. When these sorts of technologies become more common in the everyday world, they can have profound effects on how we get jobs, learn in school, and engage with the legal system.</p><p>As a beginner programmer and someone who takes justice seriously, I would like to begin to understand both the technologies behind machine learning and how these biases come about so that I can engage in offering real solutions.</p><p>Bias in AI is referred to as <a href="https://en.wikipedia.org/wiki/Algorithmic_bias">algorithmic bias</a> or “when a computer system reflects the implicit values of its human designers in its behaviors.” As mentioned earlier, there are a variety of factors that can cause this to occur. At the end of the day, however, the algorithms used and the way the data is coded have a large responsibility in accelerating or reducing bias.</p><p>Its first important to understand some of the top algorithms used in AI or Machine Learning. Overall, these algorithms are <a href="https://towardsdatascience.com/a-tour-of-the-top-10-algorithms-for-machine-learning-newbies-dde4edffae11">described as</a>:</p><blockquote>“<em>learning a target function (f) that best maps input variables (X) to an output variable (Y): </em><strong><em>Y = f(X)”</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/1*-z8tHoFBkBAKSuQBsWYNWw.gif" /></figure><p>In other words, it comes down to the future predictions or output, Y, based on new examples, X. The function, or f, is where the mystery lies. Let’s run through some common algorithms:</p><ol><li><strong>Linear Regression: </strong>One of the best understood ways to model machine learning data, it assumes a linear relationship between X and Y variables. The equation becomes the line that best fits the correlation between the two variables.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D2lRgXRUjkzvESWFXvsmTw.png" /><figcaption><a href="https://towardsdatascience.com/a-tour-of-the-top-10-algorithms-for-machine-learning-newbies-dde4edffae11">Classification and Regression Tree</a></figcaption></figure><p><strong>2. Classification and Regression Trees: </strong>This relatively simple algorithm is represented by a binary tree, where each decision, x, breaks off into an output of y, the prediction.</p><p><strong>3. Support Vector Machines: </strong>SVM is a very popular machine learning algorithm, although quite complex. This algorithm uses a “hyperplane” to track margin differences between classes of the inputs.</p><p>One recent algorithmic solution offered up to reduce AI bias, is fascinatingly similar to the way that experts have said <a href="https://drrobynsilverman.com/how-to-talk-to-white-kids-about-race-racism-with-dr-margaret-hagerman/">prejudice can be reduced in humans</a>: it must be explicitly implied. <a href="https://developers.googleblog.com/2018/04/text-embedding-models-contain-bias.html">Google supports this approach</a> as well for their own developers: the machine must be made aware of bias for certain factors, such as race or gender, so that better predictions can be made.</p><p>Let’s follow<a href="https://towardsdatascience.com/preventing-machine-learning-bias-d01adfe9f1fa"> a model made by Stas Sanjin</a> to understand how importing bias explicitly can reduce algorithmic bias:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cu4U9a22SGp4YNJh6PNt3w.png" /></figure><p>In the model above, Sanjin is tracking gender differences in salary rates with a model that accounts for gender bias.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jnJzWnqoWu4nn5I9BNpBEQ.png" /></figure><p>Sanjin extracts prediction-specific interactions and then uses a function to cancel that influence of the gender variable in the plot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C_6AX8KSFqUNGnSHv4AnUA.png" /></figure><p>Sanjin’s final linear model has removed the predicted salary differences and maps male and female salaries at similar rates. This prediction model was only achieved because he initially accounted for the known biases in his methods.</p><p>When developing machine learning it has become obvious how vital it is to account for bias in every algorithm. As I continue on my journey to become a developer, I hope to gain an understanding of these algorithms and advance solutions to these issues.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f62373e6a09b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>