<?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 Matt McInnis on Medium]]></title>
        <description><![CDATA[Stories by Matt McInnis on Medium]]></description>
        <link>https://medium.com/@mattmcinnis?source=rss-3aa78661fd47------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*FSIeGT4Hu7Wn8XJN.</url>
            <title>Stories by Matt McInnis on Medium</title>
            <link>https://medium.com/@mattmcinnis?source=rss-3aa78661fd47------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 08:10:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mattmcinnis/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[Building a Successful AI Practice in Enterprise — Part 1: The Team]]></title>
            <link>https://medium.com/@mattmcinnis/building-a-successful-ai-practice-in-enterprise-part-1-the-team-a42cb3b9ba85?source=rss-3aa78661fd47------2</link>
            <guid isPermaLink="false">https://medium.com/p/a42cb3b9ba85</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Matt McInnis]]></dc:creator>
            <pubDate>Sat, 08 Dec 2018 18:28:51 GMT</pubDate>
            <atom:updated>2018-12-08T18:45:57.389Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building a Successful AI Practice in Enterprise — Part 1: The Team</h3><blockquote>This is the first part of a series of upcoming posts:<br><strong>Part 1: The Team</strong><br>Part 2: The First 3 Months<br>Part 3: Interviewing Data Scientists<br>Part 4: Important Technology<br>Part 5: Delivering Value</blockquote><p>Toronto has inarguably become an epicentre for artificial intelligence research and practice. Home to AI thought leaders such as <a href="http://www.cs.toronto.edu/~hinton/">Geoffrey Hinton</a>, academic research initiatives such as <a href="https://vectorinstitute.ai/">The Vector Institute</a>, and AI research facilities of top global companies such as <a href="https://www.cbc.ca/news/thenational/uber-invests-in-canada-amid-push-for-driverless-cars-1.4823346">Uber</a>, <a href="https://www.cbc.ca/news/canada/toronto/construction-begins-on-gm-leslieville-dealership-complex-1.4869512">GM</a>, <a href="https://blogs.nvidia.com/blog/2018/06/13/nvidia-ai-research-lab-toronto/">NVidia</a> and <a href="https://www.samsung.com/ca/news/local/samsung-launches-ai-centre-in-toronto/">Samsung</a>, the excitement in the community is palpable.</p><p>Through my roles in AI at IBM and at Microsoft I’ve had the opportunity to work directly with analytics leaders at our country’s largest organizations. I’ve answered the question, “what is AI?” more times than I can count, advised numerous companies on hiring (including writing job postings and running technical interviews), conducted hands-on workshops on topics such as deep learning and distributed machine learning with Spark, and of course, supported the storage, security and governance requirements of leveraging AI in the cloud.</p><p>During this time I’ve learned much about building AI teams in large enterprises. I’ve seen companies experience amazing success, and many others stumble. In this series of articles, I’ll share my thoughts on actionable topics such as team composition, hiring, culture and selecting use cases, in addition to tips on navigating the complexities of enterprise that are unique to building a successful AI practice.</p><p><strong>Finally, in the spirit of </strong><a href="https://paulbuchheit.blogspot.com/2014/07/the-technology.html"><strong>Paul Buchheit</strong></a><strong>:</strong></p><blockquote>First, I don’t know anything. That’s a warning. If you take this all on my authority, then you’re missing the point. You must own your own programming.</blockquote><h3>Key Members of a Data Science Team</h3><p>Data scientist need at minimum two things to do their work: data and compute resources. Gaining access to these two things in enterprise is often much harder than it sounds. So before you hire expensive data scientists to play in your analytics sandbox, be sure to have a sandbox built. Here’s who you’ll need, their profile, and the role they’ll play:</p><h4><strong>#1 — Executive Sponsor</strong></h4><p>This is usually a CEO or Chief Information/Data Officer; yes, even at &gt;$10B corporations.</p><ul><li>They won’t be directly involved with the day-to-day.</li><li>Responsible for unblocking when necessary. It will often be necessary.</li><li>Can help make connections with relevant line-of-business leads.</li></ul><h4><strong>#2 — Chief Data Scientist (Optional: +Project Manager)</strong></h4><p>By far your most difficult hire: The leader of your new data science (AI) team. They have a strong technical skillset, experience delivering models into production, and the capability to drive business value. Here’s the wishlist:</p><ul><li>Hands-on-keyboard building and deploying models in enterprise using open source software (i.e. SAS doesn’t count).</li><li>Understanding and technical opinions of the broader field of AI. For example, they may have spent 80% of their time in image recognition, but they should also have a technical perspective on other topics such as <a href="https://en.wikipedia.org/wiki/Natural_language_processing">NLP</a> <a href="https://en.wikipedia.org/wiki/Reinforcement_learning">RL</a>.</li><li>A clear communicator. There’s much misunderstanding on what AI, machine learning and deep learning are and can do. This person will need to drive awareness and education internally, while clearly connecting data science work to core business objectives.</li><li>A consensus builder. Implementing AI touches many existing areas of an organization, such as IT, line-of-business owners, existing analytics teams, etc. This person must be able to generate trust, find the “win-win”, and bring stakeholders together in a productive way.</li></ul><p>If you can find all the above in a single person you’re in great shape. It’s worth noting that many organizations I’ve worked with split the role above into two:</p><ol><li>A Chief Data Scientist, responsible for the technical data science components (i.e. the first two bullet points above).</li><li>A project manager who works directly with the CDS along with the executive sponsor, responsible for defining business case behind AI activities and bringing key stakeholders to the table (i.e. the last two bullet points above).</li></ol><h4>#3 — Data Engineer(s)</h4><p>An expert in storing, moving and managing large volumes of data, data engineers are critical in setting up an environment for data scientists to work. Ideally, they’re also working to ensure the data is of reasonable quality. For enterprise, a relevant skillset is:</p><ul><li>Experience working with common storage technology, such as Hadoop and SQL-based databases such as Hive.</li><li>Familiarity with building data pipelines and orchestrating ETL (Extract Transform and Load) workloads.</li><li>Expertise with cloud-based storage systems, such as blob storage.</li><li>+1 for hiring an internal candidate! Having someone with institutional knowledge and relationships will be a huge help.</li></ul><h4>#4 — Data Scientist(s)</h4><p>Alas, the data scientist. These folks are responsible for the statistics, algorithms and model training components of the team. A basic data science skillset consists of:</p><ul><li>Strong background in statistical concepts, and programming capabilities with Python and SQL.</li><li>Experience working with data and modelling using open source frameworks such as scikit-learn, Keras, PyTorch, CNTK or TensorFlow.</li></ul><h4>#5 — Software/DevOps Engineer</h4><p>Engineering data pipelines and data science models is an entirely different process than pushing code into production applications. Having a DevOps engineer working on or closely with a data science team can help streamline the deployment of machine learning models. They’re a critical and often overlooked member of the team. They will care about things such as:</p><ul><li>Version control of models and the data/code that produced the models.</li><li>Model deployment, versioning, monitoring and logging.</li><li>Integrating models into different environments, such as web applications, mobile applications, or within a cloud/on-prem data lake.</li><li>+1 for hiring a strong, internal candidate!</li><li>+1 for experience with Docker containers or container orchestration tools such as Kubernetes.</li></ul><h4>Summary TL;DR</h4><ul><li>An executive sponsor is needed to cut red tape and remove blockers. They should have influence over both IT and business units. Ideally, the CEO.</li><li>A chief data scientist will build the team, define scope-of-work, build consensus with internal stakeholders and responsible to deliver business value. They’re technically deep with strong business skills.</li><li>Data engineers will move and shape data, while maintaining the environment used by data scientists.</li><li>Data scientists will begin exploring data and developing models.</li><li>A DevOps or software engineer will take the hand-off from the data scientists and move work into production systems.</li></ul><p>Awesome. Now that we have some clearly defined roles, we’ll discuss how to ramp up in the first few months.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a42cb3b9ba85" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Secure, Automated Deployment of Azure Resources Using Azure KeyChain, PowerShell, Automation]]></title>
            <link>https://medium.com/@mattmcinnis/secure-automated-deployment-of-azure-resources-using-azure-keychain-powershell-automation-e2b810ffd43?source=rss-3aa78661fd47------2</link>
            <guid isPermaLink="false">https://medium.com/p/e2b810ffd43</guid>
            <category><![CDATA[azure]]></category>
            <dc:creator><![CDATA[Matt McInnis]]></dc:creator>
            <pubDate>Wed, 28 Mar 2018 20:02:12 GMT</pubDate>
            <atom:updated>2018-04-16T15:20:14.641Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>This post is a tutorial on how to automatically spin-up Azure resources, such as virtual machines or HDInsights (Spark). If you’re just looking for the code, you can find it on my Github </strong><a href="https://github.com/MattyMc/powershell-hdi-automated-deployment/blob/master/automation-script.ps1"><strong>here</strong></a><strong>.</strong></p><h3>Use Case</h3><p>There are lots of articles on how to deploy Azure Resources <a href="https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-group-template-deploy#deploy-a-template-from-your-local-machine">from your local machine</a>, <a href="https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-group-template-deploy#deploy-a-template-from-an-external-source">from an external source</a>, or from <a href="https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-group-template-deploy#deploy-template-from-cloud-shell">Azure’s Cloud Shell</a>. However, there are not many resources for automating the deployment of these resources automatically with the cloud-based Automation tool using PowerShell, proper security, and resource templates. This tutorial demonstrates how to take any resource template from Azure and setup automated deployment.</p><h4>The Data Science Use Case</h4><p>There are some very powerful cloud-based resources for data science, such as <a href="https://azure.microsoft.com/en-us/services/virtual-machines/data-science-virtual-machines/">Data Science Virtual Machines (DSVMs)</a>, Deep Learning Virtual Machines, or tools for performing distributed computing with tools like Apache Spark on HDInsights (or, Azure Databricks; now generally available!).</p><p>Many of these resources are billed by the hour and tools like Azure Data Factory can be helpful to spin-up these resources to perform a specific task, and spin them back down when complete. But if you’re a data scientist who spends your day hacking in Spark, for example, you might not want to manually spin-up HDInsights each morning and have to wait for the cluster to fully provision. Ideally it spins up and is ready to use before you start your day.</p><blockquote>Objective: <strong>Automatically provision HDInsights each morning at a given time</strong>.</blockquote><h3>Prerequisites</h3><p>A few things you’ll need:</p><ul><li>An <a href="http://portal.azure.com/">Azure</a> Account.</li></ul><h3>Process</h3><p>In order to automate the deployment of HDInsights, we will follow the following steps:</p><ol><li>Download the template file for a Spark-enabled HDInsights cluster that we wish to auto-deploy. <em>This step should be transferrable to any other resource you with to automate the deployment of... VMs, etc.</em></li><li>Provision an Automation Account. Upgrade and add the modules needed to connect to our Template File and provision resources.</li><li>Create a Key Vault service to securely store our credentials for the cluster. Add credentials for cluster. Give access permission for our Automation account to access KeyChain.</li><li>Provision a PowerShell account. Upload the Template File to the associated storage File Share.</li><li>Create Runbook within Automation utilizing a PowerShell script (script included below).</li><li>Test the Runbook. Publish the Runbook. Use Automation’s scheduler to automate deployment of cluster.</li></ol><p><em>Note: If you already have the services provisioned, feel free to skip that step. Just be sure to read through quickly to ensure you haven’t missed any configuration steps.</em></p><h4>Step 1: Download the template file for a Spark-enabled HDInsights cluster</h4><p>Login to <a href="http://portal.azure.com/">Azure</a>, click <em>Create a resource</em>, search for HDInsights and click <em>create</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dSRrqhKjxw9EMbWGxdfjZQ.gif" /></figure><p>We’ll go through the process of filling out the form. Be sure to take note of the following form items as we will use these again within Key Chain:</p><ul><li>Cluster name.</li><li>Cluster login username.</li><li>Cluster login password.</li><li>SSH username.</li></ul><p>Complete the forms until you reach the Step 3 Summary. From here, do not click create but rather click <em>Download template and parameters</em>, located beside the <em>Create</em> button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yXXtB4sNyBidErkWUM96ZA.png" /><figcaption>Download template and parameters (bottom of the image above).</figcaption></figure><p>Please note that if you provision resources on Azure, your account will be charged! Finally, unzip the template.zip file you you just downloaded. You’ll see a template.json file within that we will be making use of shortly.</p><h4>Step 2: Provision an Automation Account</h4><p>Once again, click <em>Create a resource </em>within the Azure Portal, search for <strong>Automation</strong>, and click <em>Create</em>. Give Azure a few moments to create this service for you.</p><p>Next, select the Automation service by clicking <em>All resources</em> from the left menu and selecting Automation. Here, we will update our modules to the latest versions and add a module needed to connect to the Key Chain:</p><p><strong>Update Modules</strong></p><p>Within <em>Automation</em> under <em>Shared Resources</em> select <em>Modules</em>. Click <em>Update Azure Modules</em> and let this process complete.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KpAZazjkm1VbjA0QxL5aag.png" /></figure><p><strong>Install Missing Modules</strong></p><p>Next, we need to add the AzureRM.KeyVault and ensure the AzureRM.Profile modules are installed in Automation. If you don’t have both of these, click <em>Browse gallery </em>(see image above) and install the appropriate module. Thank you to <a href="http://www.rahulpnath.com/blog/accessing-azure-key-vault-from-azure-runbook/">this guide</a> for the tip!</p><p><strong>Grab your Automation service ID</strong></p><p>Click <em>Access control (IAM)</em>, select the first entry under <em>Contributor</em>, and copy your Automation Account ID. You’ll want to stash this in a text editor for later, where we will give permission to this service to access the secrets within our Key Vault. <em>Hint</em>: It will look something like automation_fskl3389u....</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ut-7G3NL4-cTSyZYhnyG1A.gif" /><figcaption>Finding your automation account id</figcaption></figure><h4>Step 3: Create a Key Vault service</h4><p>Once again, create a <em>Key Vault</em> service from the marketplace. This is where we’re going to securely store our credentials from Step 1.</p><p>From within your Key Vault service, select your new key vault and take note of its name (mine is called mykeyvault112233). Add the respective variables from Step 1 as <em>Secrets</em> in your key vault:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aw6GyzRL0XwXgvoqrwwunQ.png" /></figure><p>You should now have a clusterLoginPassword, clusterName, and sshPassword securely stored here. We will be accessing these from our Automation Runbook in Step 5.</p><p><strong>Give your Automation account permission to access the credentials we just created in Key Vault.</strong></p><p>In your key vault click <em>Access control (IAM)</em>, select <em>+ Add</em>, and we will assign read rights to our Automation account using the Automation Account ID from the previous step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*--CoZ6N0sYmMe0JBKkTN6g.png" /><figcaption>This provides our future Runbook permission to access the secrets we created.</figcaption></figure><h4>Step 4: Provision a PowerShell account and upload our Template File</h4><p>An easy was to provision PowerShell is to click on the cloud PowerShell prompt in Azure (see below).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/440/1*gMTMEn17DJz1yjoWug24Fw.png" /><figcaption>PowerShell Prompt — 2nd from left</figcaption></figure><p>This will create a resource group with a naming convention similar to cloud-shell-storage-eastus. Click into this resource group, select the storage account (likely named a long string of characters), click File Share, use the existing File Share or create a new one (be sure to note its name! I named my file share myfileshare). Upload your template.json file.</p><p>Lastly, from your storage account scroll down to <em>Access keys </em>(under <em>Settings</em>). Make a note of the storage account name (we’ll just this in our script), and grab the key. Following the same procedure in Step 3 above, add a new secret to Key Vault called storageAccountKey with this value.</p><h4>Step 5: Create an Automation Runbook utilizing a PowerShell script</h4><p>Access your Automation account, select <em>Runbooks</em>, and create a new Powershell runbook:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cKOrPOf31HXyAd8sDi2gzQ.png" /></figure><p>On the edit screen, grab the script from my <a href="https://github.com/MattyMc/powershell-hdi-automated-deployment/blob/master/automation-script.ps1">Github repo</a> and be sure to modify the indicated variables with the values you created in previous steps. Click on the <em>Test pane </em>and give the code a test run. It may take up to 15 minutes to complete — we are provisioning a cluster after all :)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t2PuWFSLA-a8_FWDHNhWug.png" /></figure><p>From here, this runbook can be set to a schedule or called on demand!</p><h3>Conclusion</h3><p>This procedure should work with any Azure template. To generalize for templates beyond HDInsights, keep in mind that you will need to create secrets within Key Vault for all the required parameters. These can be viewed easily in your template.json file as they will have no defaultValue.</p><p>Once the runbook is tested an working, it can easily be attached to a the scheduler within Automation. Hope this makes provisioning these resources a little faster!</p><p>Happy Hacking :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e2b810ffd43" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Implementing Single Layer Neural Networks from Scratch (The Algebra)]]></title>
            <link>https://medium.com/@mattmcinnis/implementing-single-layer-neural-networks-from-scratch-the-algebra-40bf20d4a5a5?source=rss-3aa78661fd47------2</link>
            <guid isPermaLink="false">https://medium.com/p/40bf20d4a5a5</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Matt McInnis]]></dc:creator>
            <pubDate>Sat, 14 Oct 2017 17:11:52 GMT</pubDate>
            <atom:updated>2017-10-14T17:11:52.379Z</atom:updated>
            <content:encoded><![CDATA[<p>A data scientist is often described as the intersection between a mathematician and a computer programmer. Nowhere is that more clear than when trying to implement a single hidden layer, 4 node neural network from scratch.</p><p>To accomplish this, you first need to deal with a bunch of math problems:</p><ul><li>Which activation functions will I use? <em>Sigmoid, TanH, ReLU, Leaky ReLUs, etc.</em></li><li>How will I define my cost function, and my loss function? <em>Log-loss, MSE, etc.</em></li><li>How will I vectorize my input data, differential equations (PDEs), weights for each neuron, etc? Vectorizing input allows a processor to apply low-level SIMD (pronounced SIM-D, Single Input Multiple Data) operations to the dataset.</li></ul><p>This last challenge is the focus for this post: How to compose the linear algebra required to implement a forward pass in a NN. In my opinion the best way to understand the linear algebra involved with NN is to build them from scratch with gradually complex networks and data. Or more simply:</p><ul><li>Single layer, single node, single data vector.</li><li>Single layer, multiple nodes, single data vector.</li><li>Single layer, multiple nodes, multiple data.</li></ul><p><em>Note: Multiple layers follows naturally from the last example, so I will not include this in my post.</em></p><h3>Single Layer, Single Node, Single Data Vector</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JrdySwYaYTSECVhwgzvrzg.jpeg" /><figcaption>Single Layer, Single Neuron</figcaption></figure><h3>Single Layer, Multiple Node, Single Data Vector</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T04-qPuV_qZ8qxfa0MSBSw.jpeg" /></figure><h3>Single Layer, Multiple Node, Multiple Data Vector</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Eahf25Mz-t3ylc9130kZCQ.jpeg" /></figure><h3>Big takeaways</h3><ul><li>We stack our data vertically (X), along with our weights (W) in the single example. However, when we compose the matrix W, each weight vector is transposed.</li><li>Now that we’ve defined the algebra for multiple nodes, implementing the computer instructions should be straightforward with a tool like numpy.</li><li>Notation: Exponents in square brackets represent the layer number, exponents in circle brackets represent the training example number, and subscripts represent the node number within that layer.</li><li>Keeping track of matrix/vector dimensions is <em>super helpful</em>.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=40bf20d4a5a5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Differentiating the Sigmoid Function]]></title>
            <link>https://medium.com/@mattmcinnis/differentiating-the-sigmoid-function-77cf334d5596?source=rss-3aa78661fd47------2</link>
            <guid isPermaLink="false">https://medium.com/p/77cf334d5596</guid>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Matt McInnis]]></dc:creator>
            <pubDate>Sat, 07 Oct 2017 16:49:07 GMT</pubDate>
            <atom:updated>2017-10-07T16:49:07.853Z</atom:updated>
            <content:encoded><![CDATA[<p>Every data scientist is learning, and in some cases specializing. In the last year I’ve developed some expertise in distributed computing with Apache Spark, and now I’m pushing into Deep Learning through Andrew Ng’s <a href="http://deeplearning.io/">Deep Learning Course</a>.</p><p>Today we were drawing out some simple computation graphs while defining a cost function for logistic regression.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4Y760bbD6tdacx_WePxPpA.png" /><figcaption>Andrew Ng | deeplearning.io @ Coursera</figcaption></figure><p>Where our loss function is defined as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/864/1*4QUZF8SyC-szzN_2lQqTWg.png" /></figure><p>And the sigmoid function is of course:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/862/1*8IOv9u_VB_nNpkiWM19Rtg.png" /></figure><p>So how do we show that da/dz = a*(1-a), where a is the sigmoid function defined above?</p><p><strong>Note: Medium has no support for latex or math expressions at the time of writing, so I’m using my hand notes below. Sorry for potato quality!</strong></p><p>This is quite simple to do with a few tricks. Here are the steps I’ll use:</p><ul><li>Re-write sigmoid as a composite function, expressing the denominator as f(x).</li><li>I’ll then use the chain rule to differentiate, expressing the derivative in terms of f(x).</li><li>Lastly, I’ll differentiate f(x), and re-write the result as in terms of f(x) itself. When we substitute this into the equation above, we’ll get the the result we’re after.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kh0vnAYACZ5AMFhg7C3ckQ.jpeg" /></figure><p>My last step was to express the sigmoid function in terms of a/z, like Andrew Ng had done. Fun Saturday stuff :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=77cf334d5596" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>