<?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 Megan O&#39;Rorke on Medium]]></title>
        <description><![CDATA[Stories by Megan O&#39;Rorke on Medium]]></description>
        <link>https://medium.com/@leggomymego?source=rss-5c9612ef8473------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*9McmxzDWeDYBkABI.jpeg</url>
            <title>Stories by Megan O&amp;#39;Rorke on Medium</title>
            <link>https://medium.com/@leggomymego?source=rss-5c9612ef8473------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 10:39:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@leggomymego/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[Lessons Learned Pushing a Deep Learning Model to Production]]></title>
            <link>https://medium.com/@leggomymego/lessons-learned-pushing-a-deep-learning-model-to-production-d6c6d198a7d8?source=rss-5c9612ef8473------2</link>
            <guid isPermaLink="false">https://medium.com/p/d6c6d198a7d8</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[production]]></category>
            <dc:creator><![CDATA[Megan O'Rorke]]></dc:creator>
            <pubDate>Fri, 10 Apr 2020 23:44:39 GMT</pubDate>
            <atom:updated>2020-04-16T22:53:24.564Z</atom:updated>
            <content:encoded><![CDATA[<h3>Lessons Learned Pushing My 1st Deep Learning Model to Production</h3><p>Here’s what worked (and didn’t) for putting a ML model on the web.</p><p>If you, like me, are currently studying or working with machine learning (whether deep learning or not), are using Jupyter notebooks, and are interested in simple rapid ways to share your work via the internet, then this post is for you. Hopefully it will save you some time and make your introduction to pushing your models to production a little bit easier.</p><p>There are several things this post will not cover. There are an increasing number of tools being built to rapidly enable pushing models to production, including Render, Binder &amp; Voila. Rather than covering all possible hosting solutions, this post will focus on an end-to-end walk through of one option: using Binder and Voila. This works best for small projects where your model .pkl file is under 50MB, and you want a free hosting service. If you need to host a larger model or get instantaneous results AWS, Google Cloud, and many other companies have hosting solutions available so check out their offerings.</p><p>Ok, let’s do this!</p><p>Step 1. Have a model ready that you want to put into production. What does “ready” mean? It means your model is in a jupyter notebook hosted on github, you have exported a .pkl file, and you have included code for simple UI elements such as a button to upload an image and a button to produce a classification. If you want to test out the pushing to production part with an existing model, you can fork the snowperson model at <a href="https://github.com/megano/snowpeopleApp">www.github.com/megano/snowpeopleApp</a>.</p><p>Step 2. Ensure your file structure and sizes will play nice with Binder.</p><ul><li>The model is in it’s own repository. In my case, the snowpeopleApp repo</li><li>The export.pkl file is *less than* 50MB. Originally I had a .pkl file about 80MB which I uploaded via github lfs and that didn’t work. Binder picked up the *reference* to the .pkl but not the actual model.</li></ul><p>Step 3. Sign up for an account at mybinder.org.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CvS6p1VjUF_0HHFlSbpJiA.png" /></figure><p>Step 4. Paste your repository URL. In my case, it’s “<a href="https://github.com/megano/snowpeopleApp">https://github.com/megano/snowpeopleApp</a>”.</p><p>Step 5. Click the “file” dropdown and change it to “URL”.</p><p>Step 6. Paste the path to the URL, inserting “/voila/render/” before your file name. My notebook is called “<a href="https://github.com/megano/snowpeopleApp/blob/master/snowpeople_voila.ipynb">snowpeople_voila.ipynb</a>”, so my URL path is “/voila/render/<a href="https://github.com/megano/snowpeopleApp/blob/master/snowpeople_voila.ipynb">snowpeople_voila.ipynb</a>”. You’ll use “/voila/render/<a href="https://github.com/megano/snowpeopleApp/blob/master/snowpeople_voila.ipynb">my-nb-name.ipynb</a>”, replacing “my-nb-name” with the name of your notebook. Troubleshooting tips, if you clicked “launch” and got a 404 message:</p><ul><li>Make sure your URL includes “/voila/render/”</li><li>Make sure your URL does *not* have the word “master” or “blob” in it. If you’re on github, click into your .pynb file and paste that link it’s not going to work. While your link may look like “<a href="https://github.com/megano/snowpeopleApp/blob/master/snowpeople_voila.ipynb">https://github.com/my-github-handle/my-repo-name/blob/master/my-notebook-name.ipyn”</a> on github, binder needs it in a different format without the “/blob/master” part.</li><li>Check that the path URL/File drop down still says “URL”, and hasn’t switched back to “File” before you click “launch”.</li></ul><p>Step 7. Time to launch! Click the “launch” button. Below is what your classifier will look like once it’s live.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/567/1*hHJUpdoB1HtltW7lEKqm1A.png" /></figure><p>Hurray! Now you can share your model with friends, family and the world. Note that, on the first run, binder can take 5 or so mins to build the app. Don’t be worried if it doesn’t work right away. When you share or open your link in a new tab, you might see something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xOI9sQbdWRKefwguTWQbAg.png" /></figure><p>Think of this as the loading screen. After a few seconds, you should see your app again, without all the underlying notebook info.</p><p>Huzzah! You have pushed your model into production. Go and celebrate.</p><p>Want to play with the snowpeopleApp? It’s <a href="https://notebooks.gesis.org/binder/jupyter/user/megano-snowpeopleapp-mmn1bfo8/voila/render/snowpeople_voila.ipynb?token=7APmsKTOQ1m60BicUHaIHg">live on binder</a>. Debugging your notebook or requirements files? Compare yours to the <a href="https://github.com/megano/snowpeopleApp">snowpeople repo here</a>. Curious about what kind of data the snowpeopleApp was trained on? Stay tuned for a future post.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d6c6d198a7d8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Your Limits Don’t Matter]]></title>
            <link>https://medium.com/@leggomymego/your-limits-dont-matter-989caf752228?source=rss-5c9612ef8473------2</link>
            <guid isPermaLink="false">https://medium.com/p/989caf752228</guid>
            <dc:creator><![CDATA[Megan O'Rorke]]></dc:creator>
            <pubDate>Mon, 26 Jan 2015 02:52:05 GMT</pubDate>
            <atom:updated>2015-01-26T02:52:05.639Z</atom:updated>
            <content:encoded><![CDATA[<p>One of the greatest lessons I’ve learned from living in San Francisco is your individual limitations don’t matter.</p><p>Really. What matters is what you’re committed to. When you’re really committed to creating something you will make it happen. Your limitations seem ridiculous in the face of what’s possible with the community you have around you. I have seen people make their dreams of love, health, wealth, family, conquering depression, education, and complete career change real. I have seen what I swore was impossible become real. I’ve seen it so many times I no longer believe in impossible.</p><p>Can anyone do that alone? Heck no. It may take your entire community to come together to create what you want to make. A few weeks ago I took on a <a href="https://medium.com/@leggomymego/my-million-dollar-side-project-45f1d517546">million dollar side project</a>. There’s no way I can do that alone. That project is much bigger than me. It’s going to take many different conversations and communities coming together to make it happen. I’ll need people I haven’t even met yet. But I do know it’s going to happen. I’m committed to it.</p><p>Ask yourself: what would you create if you weren’t stopped by what you alone could do?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=989caf752228" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using Crashlytics w/Swift and XCode 6]]></title>
            <link>https://medium.com/@leggomymego/using-crashlytics-w-swift-and-xcode-6-ee34db53525a?source=rss-5c9612ef8473------2</link>
            <guid isPermaLink="false">https://medium.com/p/ee34db53525a</guid>
            <dc:creator><![CDATA[Megan O'Rorke]]></dc:creator>
            <pubDate>Tue, 14 Oct 2014 18:08:52 GMT</pubDate>
            <atom:updated>2014-12-03T04:27:52.320Z</atom:updated>
            <content:encoded><![CDATA[<p>PM’s guide to using analytics w/Apple’s new programming language</p><p>Update: Since I wrote this article Twitter’s made a major update to their developer tool platform. It’s now called Fabric and has lots of goodies including Digits — a way to use phone number for login. Check it out at: <a href="https://fabric.io/">https://fabric.io</a>. If you don’t have access and want to use it let me know. If you’re stuck in a situation where you can’t use the new SDK then the instructions below for the old SDK should help out.</p><p>Crashlytics documentation isn’t fully updated for Swift yet. Here’s what you’ll do differently.</p><h4>Add a Run Script Build Phase</h4><p>Select your target application &gt; Build Phases &gt; click the plus sign in the upper left &gt; New Run Script Phase</p><p>Copy and paste in the script code</p><h4><strong>Initialize the SDK</strong></h4><p>In your project navigator in the AppDelegate.swift file</p><ol><li>after <em>import UIKit </em>put <em>import Crashlytics</em></li></ol><p>2. put “<em>Crashlytics.startWithAPIKey(“YourAPIKeyHere”)</em>” between the brackets in the function below</p><p><em>func application(application: UIApplication!, didFinishLaunchingWithOptions launchOptions: NSDictionary!) -&gt; Bool {</em></p><p><em>Crashlytics.startWithAPIKey(“YourAPIKeyHere&quot;)</em></p><p><em>return true</em></p><p><em>}</em></p><p>3. Press command-R to build and run the app</p><h4><strong>Turning on Debugging</strong></h4><p>1. Add this code above <em>Crashlytics.startWithAPIKey(“YourAPIKeyHere”)</em></p><p><em>Crashlytics.sharedInstance().debugMode = true</em></p><h4>Forcing a Crash</h4><p>Add <em>import Crashlytics </em>at the top</p><p>Then add <em>Crashlytics.sharedInstance().crash() </em>to a button, like this</p><p><em>@IBAction func detailButtonDidPress(sender: AnyObject) {</em></p><p><em>Crashlytics.sharedInstance().crash()</em></p><p><em>}</em></p><p>Hope you found this helpful and enjoy using Crashlytics! Happy coding.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee34db53525a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Lose Your Phone and Find Yourself Renewed]]></title>
            <link>https://medium.com/@leggomymego/lose-your-phone-and-find-yourself-renewed-15042206fbfb?source=rss-5c9612ef8473------2</link>
            <guid isPermaLink="false">https://medium.com/p/15042206fbfb</guid>
            <dc:creator><![CDATA[Megan O'Rorke]]></dc:creator>
            <pubDate>Wed, 11 Jun 2014 05:33:34 GMT</pubDate>
            <atom:updated>2017-06-23T23:19:17.608Z</atom:updated>
            <content:encoded><![CDATA[<h4>What the Redwoods and 300 Strangers taught me this weekend</h4><p>I just spend a weekend in the woods with about 300 strangers. And I’m at an absolute loss to explain how incredibly grateful I am. I came back feeling as if I’d been gone for 4 weeks instead of 4 days. I feel free. This wasn’t a festival, some hippie gathering or some rave. So what was it?</p><p>How did this happen? It started when a friend said, “We’re going in June. Come with us!”. I said yes. Yes to a completely sober weekend. No work, no cell phones, no wifi. Four days without devices — yikes, that was a bit scary. I’d been camping before but this… this was different.</p><p>We spend so much of our adult lives mapping how we can climb that career ladder by making just the right connections. What happens when that mental, social, digital map is completely unavailable? When you can’t talk about work or call each other by your real names? You make meaningful connections to people for who they are. I had no idea what I was getting myself into.</p><p>I hiked up to the top of a hill, I lay in a hammock and actually had a real conversation with that person I’d seen 20 times at various social events. I woke up early. I let the beauty of the stars, redwoods and sunset take my breath away. Every. Single. Time. My camp mates and I created an elaborate plot to pay back the pranksters in Squirrel camp for sabotaging our sleep at 3am with a hidden old-school alarm clock.</p><p>For me the hardest part of camp was handing over my phone. But it wasn’t Facebook, texts or calls I’d miss most. It was knowing there would be moments I would want to keep that had no way to capture. Without a way to preserve the way the candles lit his face, that night in the chapel, or the sweet joy of s’mores over the camp fire —without my digital crutch these moments would fade from my memory. Like sand through my fingertips. But then something magical happened. I was set free.</p><p>Instead of trying to capture every moment in selfies and snaps I looked up at the stars. I skipped toward the sprinkler. I was free to completely revel in the joy of everything happening around me.</p><p>A few close friends celebrated their engagement at camp. There were a few moments we captured in analog film. We took the photos and instinctively huddled around the back of the cameras to see the what the photo looked like only to realize there was no display. Was there enough light? Did we blink? The suspense! We’d have to wait a few weeks to find out. Such a change from our world of instant gratification and same-day delivery.</p><p>I am grateful for everyone who created this possibility. It was truly a village. From the people who sang to greet us, Marc who took this photo, my mischievous fellow campers, and all the people who helped make it happen. Thank you for the magic you make possible.</p><p>My wish for you, my reader is this: May you find some silence in the woods this season. May you lose your phone, and find yourself renewed.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=15042206fbfb" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>