<?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 Rajath Bharadwaj on Medium]]></title>
        <description><![CDATA[Stories by Rajath Bharadwaj on Medium]]></description>
        <link>https://medium.com/@rajathbharadwaj?source=rss-9c844b70c739------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Sva78AOChAFgjIhZaiEPyg.jpeg</url>
            <title>Stories by Rajath Bharadwaj on Medium</title>
            <link>https://medium.com/@rajathbharadwaj?source=rss-9c844b70c739------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 13:33:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rajathbharadwaj/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[What is tf.data.experimental.service and how to use it?]]></title>
            <link>https://medium.com/@rajathbharadwaj/what-is-tf-data-experimental-service-and-how-to-use-it-cab2520af61?source=rss-9c844b70c739------2</link>
            <guid isPermaLink="false">https://medium.com/p/cab2520af61</guid>
            <dc:creator><![CDATA[Rajath Bharadwaj]]></dc:creator>
            <pubDate>Fri, 04 Sep 2020 16:09:55 GMT</pubDate>
            <atom:updated>2020-09-04T16:25:11.432Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*TzR2LtmSlL6DmSSjLp1rOg.jpeg" /></figure><h3>tf.data.experimental.service</h3><p>It is an experimental API that can be used for utilizing the <a href="https://www.tensorflow.org/api_docs/python/tf/data/Dataset">tf.data</a> service.</p><p>Now comes the question, what’s <a href="https://www.tensorflow.org/api_docs/python/tf/data/Dataset">tf.data</a>?</p><p>Hmm, here goes the brief explanation of <a href="https://www.tensorflow.org/api_docs/python/tf/data/Dataset">tf.data</a>service;</p><p>This is really a four step process, so do bear with me till the end.</p><p><a href="https://www.tensorflow.org/api_docs/python/tf/data/Dataset">1.tf.data</a> service is an API which handles input pipelines for all the machine learning dataset. It uses <a href="https://www.tensorflow.org/api_docs/python/tf/data/Dataset">tf.data.</a>Dataset class to represent large set of element types. It also supports specific data like <a href="https://www.tensorflow.org/api_docs/python/tf/data/Dataset">T</a>FRecord to process records written in <a href="https://www.tensorflow.org/api_docs/python/tf/data/Dataset">T</a>FRecord type, <a href="https://www.tensorflow.org/api_docs/python/tf/data/Dataset"><em>click here to see the different type supported</em></a></p><p>Let’s see the different ways to make the dataset using <a href="https://www.tensorflow.org/api_docs/python/tf/data/Dataset">tf.data</a></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/176edfe2fd55fad23ac53c825d4978a6/href">https://medium.com/media/176edfe2fd55fad23ac53c825d4978a6/href</a></iframe><p>The aforementioned are just few ways you can make the dataset using tf.data, click on the link above to see more different ways of achieving this.</p><p>2.Now once after making or gathering the dataset, next you can start processing and perform some operations on the dataset using the tf.data.Dataset’s object in a very general scope. Here’s some example for you to wrap this around much better.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b0d52172f457f1821013b1829be5b03d/href">https://medium.com/media/b0d52172f457f1821013b1829be5b03d/href</a></iframe><p>I’m going to stop it here since this is a little beyond the scope of this blog, but you can check out the different operations that you can perform <a href="https://www.tensorflow.org/api_docs/python/tf/data/Dataset#transformations_2">here</a>. Okay, so far I hope we’re on the same page as I know it’s a little tricky to understand, but really take your time and let the API docs be your best friend here. Now since we have a rather vague understanding of what tf.data is, we want to go about understanding the <a href="https://www.tensorflow.org/api_docs/python/tf/data/experimental/service">tf.data.experimental.service</a>.</p><p>Now that we’ve completed 2/4th of this 4 step process, let’s see what <a href="https://www.tensorflow.org/api_docs/python/tf/data/experimental">tf.data.experimental</a> is, which we’ve to know just before knowing about <a href="https://www.tensorflow.org/api_docs/python/tf/data/experimental/service">tf.data.experimental.service</a></p><h3>tf.data.experimental</h3><p>3.It is an <a href="https://www.tensorflow.org/api_docs/python/tf/data/experimental"><em>experimental </em></a>API for building input pipelines, but be watchful about the “experimental” here, that’s essentially all there’s to it, broadly speaking however, the caveat is, this API doesn’t have backwards compatibility as tf.data.</p><p>Phew, finally we’re at the end of this blog, now let’s understand what is <a href="https://www.tensorflow.org/api_docs/python/tf/data/experimental/service">tf.data.experimental.service</a> (<em>the reason why we’re really here for</em>)</p><h3>tf.data.experimental.service</h3><p>4.As I have already mentioned, it’s an Experimental API for using the <a href="https://www.tensorflow.org/api_docs/python/tf/data/Dataset">tf.data</a><strong> </strong>service (<em>now we know what that means</em>)</p><p>This module has two classes,</p><p><a href="https://www.tensorflow.org/api_docs/python/tf/data/experimental/service/DispatchServer">DispatchServer</a> : It is used to gRPC with the WorkerServer</p><p><a href="https://www.tensorflow.org/api_docs/python/tf/data/experimental/service/WorkerServer">WorkerServer</a> : It is used to perform <a href="https://www.tensorflow.org/api_docs/python/tf/data/Dataset">tf.data.Dataset</a> processing and returns the resulting elements over an RPC.</p><p>In a nutshell, the DispatchServer communicates with the WorkerServer and when the workers start listening over a port, they register themselves with the dispatcher.</p><p><a href="https://www.tensorflow.org/api_docs/python/tf/data/experimental/service/WorkerServer">WorkerServer</a> on the other hand, performs <a href="https://www.tensorflow.org/api_docs/python/tf/data/Dataset">tf.data.Dataset</a> processing for user-defined datasets <em>(which we went through in the 1st step)</em>, and provides the resulting elements over RPC. Every<a href="https://www.tensorflow.org/api_docs/python/tf/data/experimental/service/WorkerServer">WorkerServer</a> is associated with a single <a href="https://www.tensorflow.org/api_docs/python/tf/data/experimental/service/DispatchServer">DispatchServer</a>.</p><p>Let’s see the working example</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7db7457d81200eb9eadef912154a7c3e/href">https://medium.com/media/7db7457d81200eb9eadef912154a7c3e/href</a></iframe><p>For more, check out the docs, the back-links has been provided.</p><p>Now, if you’ve made it this far, awesome, consider clapping if you liked it, comment if you have any questions. I hope you get some value and understand what I am trying explain in this article.<br>Thank you, keep coding~ and stay safe.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cab2520af61" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is Vectorization?]]></title>
            <link>https://medium.com/@rajathbharadwaj/what-is-vectorization-19bf4f531ef8?source=rss-9c844b70c739------2</link>
            <guid isPermaLink="false">https://medium.com/p/19bf4f531ef8</guid>
            <category><![CDATA[towards-data-science]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[vectorization]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[deep-learning]]></category>
            <dc:creator><![CDATA[Rajath Bharadwaj]]></dc:creator>
            <pubDate>Thu, 25 Jun 2020 20:21:58 GMT</pubDate>
            <atom:updated>2020-06-25T20:21:58.454Z</atom:updated>
            <content:encoded><![CDATA[<p>Vectorization is basically the art of getting rid of explicit for loops in your code. In the deep learning era, with safety deep learning in practice, you often find yourself training on relatively large data sets, because that’s when deep learning algorithms tend to shine. Also, it’s important that your code runs very quickly, otherwise, if it’s running on a big data set, your code might take a long time to run then you just find yourself waiting a very long time to get the result (<em>which is kinda sorta a bummer</em>). So in the deep learning era, I think the ability to perform <strong>vectorization </strong>has become a key skill.</p><p>Let’s start with an example.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aJ9dzm1s9Pqw9GafKXer9w.png" /><figcaption>Vectorization from Andrew NG’s course</figcaption></figure><p>In logistic regression you need to compute Z equals W transpose X plus B, where W was this column vector and X is also a vector. Maybe they are very large vectors if you have a lot of features. So, W and X were both, RNX dimensional vectors.</p><p>So, to compute W transpose X, if you had a <strong>non-vectorized</strong> implementation <strong><em>(On the left side of the line)</em></strong>, you would do something like Z equals zero, and then</p><p><strong><em>for i in range of (n_x): Z += W [i] * X[i]</em></strong></p><p><strong><em>Z+=B</em></strong></p><p>So, that’s a <strong>non-vectorized</strong> implementation which you find that it’s going to be really slow.</p><p>In contrast, a vectorized implementation <strong><em>(On the right side of the line), </em></strong><em>you </em>would just compute W transpose X directly.</p><p>In Python’s <strong>numpy </strong>(<strong>popularly known as np</strong>) package, the command you use for that is</p><p><strong><em>Z = np.dot(w, x ) + B</em></strong>,</p><p>so this computes W transpose X, and you can also just add <strong><em>B</em></strong> to that directly. Doing vectorization, you find that the code runs much faster than just using for loops.</p><p>So this is a very brief explanation of Vectorization in Deep learning and why it is very important and how to it can save a bunch of time for you. So that’s it from me, if you’ve made it this far, consider clapping 😁.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=19bf4f531ef8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is a Neural Network?]]></title>
            <link>https://medium.com/@rajathbharadwaj/what-is-a-neural-network-3d8b109dccf1?source=rss-9c844b70c739------2</link>
            <guid isPermaLink="false">https://medium.com/p/3d8b109dccf1</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[nn]]></category>
            <category><![CDATA[neural-networks]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Rajath Bharadwaj]]></dc:creator>
            <pubDate>Mon, 13 Jan 2020 09:02:30 GMT</pubDate>
            <atom:updated>2020-01-13T09:07:26.500Z</atom:updated>
            <content:encoded><![CDATA[<p>The term, <strong>Deep Learning</strong>, refers to training Neural Networks, sometimes very large Neural Networks. So what exactly is a <strong><em>Neural Network</em></strong>? In this blog, let’s try to give you some of the basic intuitions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/939/1*qWPUCTyMR4U6owd7OgSq3Q.png" /><figcaption>Image — 1 Housing Price Prediction from Andrew NG’s Course</figcaption></figure><p>Let’s start to the Housing Price Prediction example. Let’s say you have a data set with six houses, so you know the size of the houses in square feet or square meters and you know the price of the house and you want to fit a function to predict the price of the houses <em>(as shown in the image -1)</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*E7TWdjSsQwsx6PJlQSREuA.png" /><figcaption>Image — 2 Housing Price Prediction from Andrew NG’s Course</figcaption></figure><p>So if you are familiar with linear regression you might say, well let’s put a straight line to these data so and we get a straight line like that. But when you think about it, you might say well we know that prices can never be negative right, so instead of the straight line fit which eventually will become negative, let’s bend the curve here. So it just ends up zero here <em>(down arrow in image — 2)</em>.</p><p>So this thick blue line ends up being your function for predicting the price of the house as a function of this size. Whereas zero here and then there’s a straight line fit to the right.</p><p>So you can think of this function that you’ve just fit the housing prices as a very simple neural network. It’s almost as simple as possible neural network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/942/1*osKBvzDWA8zwJ8ynr3vXnw.png" /><figcaption>Image — 3 Housing Price Prediction from Andrew NG’s Course</figcaption></figure><p>We have as the input to the neural network the size of a house which one we call “<strong><em>x</em></strong>”. It goes into this node, this little circle and then it outputs the price which we call “<strong><em>y”.</em></strong></p><p>So this little circle, is called as a ‘<strong><em>neuron’</em></strong> in a <strong><em>neural network</em></strong>, which essentially implements this function that we drew on the left and all the neuron does is, it takes the inputs size of the house <em>(in our housing example)</em>, computes this linear function, takes a max of zero, and then outputs the estimated price which is what we are wanting to predict.</p><p>And by the way in the neural network literature, you see this function a lot. This function which goes to zero sometimes and then it’ll take of as a straight line. This function is called a <strong>‘<em>ReLU’</em></strong> function which stands for <strong><em>rectified linear units,</em></strong> so R-E-L-U and rectify just means taking a max of 0 which is why you get a function shape like this</p><p>So, that’s a basic neural network. In turns out that as you build out your own neural networks, you probably find them to be most useful, most powerful in <a href="https://medium.com/@rajathbharadwaj/what-is-supervised-learning-1c4c42cac167"><strong><em>supervised learning</em></strong></a> incentives, meaning that you’re trying to take an input ‘<strong><em>x’ </em></strong>and map it to some output <strong>‘<em>y</em>’</strong>, like we just saw in the housing price prediction example.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3d8b109dccf1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is Supervised Learning?]]></title>
            <link>https://medium.com/@rajathbharadwaj/what-is-supervised-learning-1c4c42cac167?source=rss-9c844b70c739------2</link>
            <guid isPermaLink="false">https://medium.com/p/1c4c42cac167</guid>
            <category><![CDATA[towards-data-science]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[supervised-learning]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Rajath Bharadwaj]]></dc:creator>
            <pubDate>Mon, 28 Jan 2019 10:19:17 GMT</pubDate>
            <atom:updated>2019-01-28T10:40:24.251Z</atom:updated>
            <content:encoded><![CDATA[<p>I’m going to define what is probably the most common type of Machine Learning problem, which is called as <strong><em>Supervised Learning.</em></strong></p><p>It’s probably best to explain or start with an example of what supervised learning is, and we’ll do the formal definition later.</p><p>Let’s say we want to predict housing prices and typically a while back we had to collect data sets from the housing City of Portland, Oregon, Beaverton etc, and let’s say we plot the data set and it looks like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x0FHyLoVxkonqr-6z8HC1A.png" /><figcaption><a href="https://www.coursera.org/learn/machine-learning/home/welcome">Source</a></figcaption></figure><p>From the above image, the horizontal axis (X-axis) is the size of different houses in <strong><em>square feet</em></strong>, and on the vertical axis(Y-axis) is the <strong><em>price</em></strong> of different houses in thousands of dollars.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u0VB6rhTevHsAqXh0haflw.png" /><figcaption><a href="https://www.coursera.org/learn/machine-learning/home/welcome">Source</a></figcaption></figure><p>So, given this data, let’s say you have a friend who owns a house that is say 750 square feet as shown above in the picture, and he wants to sell the house, and wants to know how much he can get for the house.</p><p>So, how can the learning algorithm help you?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ae920oVmrWNvslW2dmyIDw.png" /><figcaption><a href="https://www.coursera.org/learn/machine-learning/home/welcome">Source</a></figcaption></figure><p>One thing a learning algorithm might want to do is put a straight line(show by the pink line) through the data, also fit a straight line to the data. Based on that, it looks like maybe your friends’ house can be sold for about $150,000. But this isn’t the only learning algorithm you can use, as there might be a better one depending upon the use-case.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H8R-ttSExyanRQ2WlfuDIQ.png" /><figcaption><a href="https://www.coursera.org/learn/machine-learning/home/welcome">Source</a></figcaption></figure><p>For example, instead of fitting a straight line(in the pink) to the data, we might decide that it’s better to fit a quadratic function, or a second-order polynomial to this data(shown in the blue line). If you do that and make a prediction, then it looks like, well, maybe your friend can sell the house for closer to around $200,000.</p><p>So, this is an example of a <strong><em>Supervised Learning</em></strong> algorithm.</p><blockquote>Definition:</blockquote><blockquote>- The term Supervised Learning refers to the fact that we gave the algorithm a data set in which the actual answers called, “right answers” were given.</blockquote><p>That is we gave it a data set of houses in which for every example in this data set, we told it what is the right price and the task of the algorithm was to just produce more of these right answers such as for the example, in which your friend was wanting to sell his house.</p><p>To define it in a bit more terminological way, this is also called a <strong><em>regression </em></strong>problem. By regression problem, I mean we’re trying to predict a continuous valued output. Namely the price, so technically, prices can be sort of rounded off to the nearest cent. So, maybe prices are actually discrete value, but usually, we think of the price of a house as a real number, as a scalar value, as a continuous value number, and the term regression refers to the fact that we’re trying to predict the some sort of continuous valued attributes.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1c4c42cac167" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How does Orthogonalization relate to Machine Learning?]]></title>
            <link>https://medium.com/@rajathbharadwaj/how-does-orthogonalization-relate-to-machine-learning-a61a8aedf0e6?source=rss-9c844b70c739------2</link>
            <guid isPermaLink="false">https://medium.com/p/a61a8aedf0e6</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[coursera]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[orthogonalization]]></category>
            <dc:creator><![CDATA[Rajath Bharadwaj]]></dc:creator>
            <pubDate>Mon, 21 Jan 2019 09:43:31 GMT</pubDate>
            <atom:updated>2019-01-21T09:43:31.399Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*D5LndAjfHxym_AA5SUq4vw.png" /><figcaption>Image from Coursera — Andrew Ng</figcaption></figure><p>For a supervised learning system to do well, you usually need to tune the knobs of your system to make sure that four things hold true.</p><p>First, is that you usually have to make sure that you’re doing well on the training set. So performance on the training set needs to pass some threshold. For some applications, this might mean doing comparably to human level performance. But this will depend on your application and the dataset you’re using.</p><p>Secondly after doing well on the training sets, you then hope that this leads to also doing well on the <strong><em>dev</em></strong> set or development set. And you then hope that this also does well on the test set. And finally, you hope that doing well on the test set and the cost function results in your system performing in the real world. So you hope that your model predicts accurately the dog picture in the app given by the users. So to relate back to the <a href="https://medium.com/@rajathbharadwaj/what-is-orthogonalization-in-machine-learning-49ea27b696f1"><em>radio </em></a>tuning example, if the sound of your radio was too noisy, you wanted one knob to tune in order to adjust that to the desired frequency of the radio channel. You don’t want to have to carefully adjust five different knobs, which also affect different things. You just want one knob to affect the frequency of your the channel. So in a similar way, if your algorithm is not fitting the training set well on the cost function, you want one specific set of knobs that you can use, to make sure you can tune your algorithm to make it fit well on the training set.</p><p>So the knobs you use to tune this are,</p><blockquote>1. Fit training set well in cost function</blockquote><blockquote>-If it doesn’t fit well, the use of a bigger neural network or switching to a better optimization algorithm might help.</blockquote><blockquote>2. Fit development set well on cost function</blockquote><blockquote>-If it doesn’t fit well, regularization or using bigger training set might help.</blockquote><blockquote>3.Fit test set well on cost function</blockquote><blockquote>-If it doesn’t fit well,the use of a bigger development set might help</blockquote><blockquote>4. Performs well in real world</blockquote><blockquote>-If it doesn’t perform well, the development test set is not set correctly or the cost function is not evaluating the right thing.</blockquote><p>In contrast, if you find that your algorithm is not fitting the dev set well, then there are separate set of knobs that can be used to fine tune. So for example, if your algorithm is not doing well on the dev set and it’s doing well on the training set, then you have a set of knobs around <strong><em>regularization </em></strong>that you can use to try to make it satisfy the second criteria.</p><p>So the analogy is, now that you’ve tuned the frequency of your radio set, if the volume of the radio isn’t quite right, then you want a different knob in order to tune the volume of the radio. And you want to do this hopefully without affecting the frequency of your radio station.</p><p>Getting a bigger training set would be another knob you could use, that helps your learning algorithm generalize better to the dev set. Now, having adjusted the frequency and volume of your radio, well, what if it doesn’t meet the third criteria? What if you do well on the dev set but not on the test set? If that happens, then the knob to tune is to probably to get a bigger dev set, Because if it does well on the dev set but not the test set, it probably means you’ve over-tuned to your dev set, and you need to go back and find a bigger dev set.</p><p>And finally, if it does well on the test set, but it isn’t delivering to you a happy dog picture app user, then what that means is that you want to go back and change either the dev set or the cost function.</p><p>That’s all guys — if you’ve made it this far, comment below.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a61a8aedf0e6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is Orthogonalization In Machine Learning]]></title>
            <link>https://medium.com/@rajathbharadwaj/what-is-orthogonalization-in-machine-learning-49ea27b696f1?source=rss-9c844b70c739------2</link>
            <guid isPermaLink="false">https://medium.com/p/49ea27b696f1</guid>
            <category><![CDATA[dataset]]></category>
            <category><![CDATA[orthogonalization]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Rajath Bharadwaj]]></dc:creator>
            <pubDate>Mon, 21 Jan 2019 08:06:06 GMT</pubDate>
            <atom:updated>2019-01-21T08:06:06.725Z</atom:updated>
            <content:encoded><![CDATA[<p>One of the challenges with building machine learning systems is that there’s so many things you could try, so many things you could change. Including, for example, so many <strong><em>hyper-parameters</em></strong> you could tune so that one can achieve that level of performance that is required.</p><p>One of the things I’ve noticed is about the most effective machine learning people is they’re very clear-eyed about what to tune in order to try to achieve one effect. This is a process we call <strong><em>Orthogonalization</em></strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KRCaXcKxDbCk2CAq9tt_0Q.jpeg" /><figcaption>Old Radio with Buttons &amp; Knobs</figcaption></figure><p>Here’s a picture of an old school radio, with a lot of knobs and buttons you could tune to adjust and fine tune into the radio station in various ways.</p><p>So for these old radio sets, maybe there was one knob to adjust the frequency of the station another knob to adjust the volume. Maybe another knob to fine tune the station, another knob to adjust different levels of equalizer, another one to adjust change the source, and so on.</p><p>And what these radio designers had spent a lot of time doing was to build the circuitry, really often analog circuitry back then, to make sure each of the knobs had a relatively interpretable function. Such as one knob to tune frequency, one knob to fine tune the channel, one knob to increase or decrease the volume,and so on.</p><p>In contrast, imagine if you had a knob that tunes 0.1 x frequency,+ 0.3 x fine tune the channel, - 1.7 x volume,+ 0.8 x the equalizer, and so on. If you tune this knob, then the frequency, the fine tune, volume, equalizer etc, it all changes all at the same time. If you have a knob like that, it’d be almost impossible to tune the radio so that the radio gets tuned to the perfect noise-less radio channel to listen to good piece of music.</p><p>So in this context, <strong><em>Orthogonalization </em></strong>refers to that the radio designers had designed the knobs so that each knob kind of does only one thing. And this makes it much easier to tune the radio, so that the radio gets tuned to the perfect noise-less radio channel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*l74-kLqlxv4hn8LyonVtpg.jpeg" /><figcaption>Amazing Car</figcaption></figure><p>Here’s another example of O<strong><em>rthogonalization</em></strong>.</p><p>If you think about learning to drive a car, a car has three main controls, which are steering, the steering wheel decides how much you go left or right, acceleration, and braking. So these three controls, or really one control for steering and another two controls for your speed. It makes it relatively interpretable, what your different actions through different controls will do to your car.</p><p>But now imagine if someone were to build a car so that there was a joystick, where one axis of the joystick controls 0.3 x your steering-angle, - 0.8 x your speed. And you had a different control that controls 2x the steering angle, + 0.9 x the speed of your car. In theory, by tuning these two knobs, you could get your car to steer at the angle and at the speed you want. But it’s much harder than if you had just one single control for controlling the steering angle, and a separate, distinct set of controls for controlling the speed. So the concept of orthogonalization refers to that, if you think of one dimension of what you want to do as controlling a steering angle, and another dimension as controlling your speed. Then you want one knob to just affect the steering angle as much as possible, and another knobs, in the case of the car, is acceleration and braking, that controls your speed.</p><p>But if you had a control that mixes the two actions together, like a control like this one that affects both your steering angle and your speed, something that changes both at the same time,then it becomes much harder to set the car to the speed and angle you want. By having orthogonal (<strong><em>orthogonal means at 90 degrees to each other</em></strong>) controls that are ideally aligned with the things you actually want to control, it makes it much easier to tune the knobs you have to tune. To tune the steering wheel angle, and your accelerator, your braking, to get the car to do what you want.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=49ea27b696f1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>