<?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 Yash Pawar on Medium]]></title>
        <description><![CDATA[Stories by Yash Pawar on Medium]]></description>
        <link>https://medium.com/@yashppawar?source=rss-5ba73d669d91------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*f_Qau0n39Ayrwl1i6GMtHw.jpeg</url>
            <title>Stories by Yash Pawar on Medium</title>
            <link>https://medium.com/@yashppawar?source=rss-5ba73d669d91------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 03 Aug 2026 13:48:05 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@yashppawar/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[Understanding the different Number Systems]]></title>
            <link>https://yashppawar.medium.com/understanding-the-different-number-systems-de2143512642?source=rss-5ba73d669d91------2</link>
            <guid isPermaLink="false">https://medium.com/p/de2143512642</guid>
            <category><![CDATA[math]]></category>
            <category><![CDATA[number-system]]></category>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[tutorial]]></category>
            <dc:creator><![CDATA[Yash Pawar]]></dc:creator>
            <pubDate>Mon, 25 Oct 2021 14:01:12 GMT</pubDate>
            <atom:updated>2021-10-25T14:01:12.781Z</atom:updated>
            <content:encoded><![CDATA[<h3>Understanding The Different Number Systems</h3><p>There are 4 main types of number systems, Binary, Octal, Decimal and Hexadecimal. In this blog, we will have a look at those different number systems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*N4QwN9mm5w8le0Ev" /><figcaption>Photo by <a href="https://unsplash.com/@nhillier?utm_source=medium&amp;utm_medium=referral">Nick Hillier</a> on <a href="https://unsplash.com?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Before learning about the other number systems, let&#39;s first try to represent numbers in a different way, using what we all have learnt.</p><p>let&#39;s consider a number 3561 (randomly chosen), its expanded form will be</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/562/1*p7At6cn0jtoI5eaRIjHd6w.png" /></figure><p>this can also be written as</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/1*DCVNW698_widdE6A8WpGxA.png" /></figure><p><strong>or</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/899/1*HhlTpKiSSwYW0wIv13apBg.png" /></figure><p>did you observe the same thing which I did? while going from right to left (←) the power of 10 is increasing, interesting. Also, the number which is raised to different powers (10⁰, 10¹, 10², 10³… in this case) is the base.</p><h3>The Decimal Number System</h3><p>This is the system with which we all are familiar. The Decimal Number system has a range of 10 digits (0, 1, 2, 3, 4, 5, 6, 7, 8, 9) using those digits any number can be formed, the base for the Decimal number system is 10.</p><h3>The Binary Number system</h3><p>The Binary Number system has a range of 2 digits (0, 1), this is the system that computer uses as it can be represented digitally, 0 as a low signal and 1 as a high signal, let&#39;s have a look at an example, decimal 13</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/1*dHEY5hrhsyfun86W8tfb5Q.png" /></figure><p>The RHS is equal to 1 × 8 + 1 × 4 + 0 × 2 + 1 × 1, which is 8 + 4 + 1 = 13.</p><h3>The Octal Number System</h3><p>The Octal Number system has a range of 8 digits (0, 1, 2, 3, 4, 5, 6, 7), this system has a base of 8. For example decimal number 89</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/663/1*bEXsEESv9cVd6-1t17EoAw.png" /></figure><p>The RHS is equal to 1 × 64 + 3 × 8 + 1 × 1, which is 64 + 24 + 1 = 89.</p><h3>The Hexadecimal Number System</h3><p>The hexadecimal number system has a range of 16 digits (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F), you will find yourself using this system when working with colours, white in hex (hexadecimal) is FFFFFF (first 2 places for the value of red which is 255, next 2 for blue which is 255, and the last 2 values for green which is also 255). Let’s try to convert decimal 209 to Hexadecimal, we can write 209 as (13 × 16 + 1 × 1), rewriting this will give us (D = 13, in hex):-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*kcld2nOP3CicagdLyE5J2w.png" /></figure><p>here is a table that has values from 0–15 written in all 4 Number systems discussed in this blog, as an exercise try to understand it and convert the value from one system to another.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/642/1*Ypecfd_8MWnsonBcZ3YCDQ.png" /><figcaption>Decimal — Binary — Octal — Hexadecimal</figcaption></figure><p>That’s all for This blog, Have a great day Ahead!</p><p>Yash</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=de2143512642" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Properties of logarithms]]></title>
            <link>https://yashppawar.medium.com/properties-of-logarithms-50286b182f7?source=rss-5ba73d669d91------2</link>
            <guid isPermaLink="false">https://medium.com/p/50286b182f7</guid>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[logarithm]]></category>
            <category><![CDATA[mathematics]]></category>
            <dc:creator><![CDATA[Yash Pawar]]></dc:creator>
            <pubDate>Sun, 17 Oct 2021 14:22:16 GMT</pubDate>
            <atom:updated>2022-04-07T16:10:06.123Z</atom:updated>
            <content:encoded><![CDATA[<p>In my last blog, we got introduced to logarithms, in this blog we will have a look at the properties of logarithms.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Jq0Csmzb29SA7KPd" /><figcaption>Photo by <a href="https://unsplash.com/@anniespratt?utm_source=medium&amp;utm_medium=referral">Annie Spratt</a> on <a href="https://unsplash.com?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Hello!,</p><p>Yash here, and this is the place where I share my learnings with you all.</p><p>If you have not read my <a href="https://medium.com/@yashpawarp/logarithms-1b20bd7cc3ff">previous blog</a> make sure to check that blog out to get a basic understanding of logarithms.</p><p>we will be covering the following properties of logarithms:-</p><ul><li>The Product Rule</li><li>The Quotient Rule</li><li>The Power Rule</li><li>The Change of the Base Rule</li></ul><p><em>let’s get started!</em></p><h3>The Product Rule</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/429/1*LkLEInrh9uBVOEqA_C6-KA.png" /></figure><p>This is a different way of representing the product rule of exponents</p><p>product rule of exponents: <strong>aᵐ * aⁿ = aᵐ⁺ⁿ</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/691/1*BnbM_sJRBEHUYsigfsdSlg.png" /></figure><p>if you are adding two logs of the same base, the result will be the log (with the same base) and the argument as the product of arguments of given logs…</p><h3>The Quotient Rule</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/413/1*2riz98Hj5IzNlkxKDPnHlg.png" /></figure><p>This is also just a different way of writing the quotient rule of exponents</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/603/1*QqolGNSwCdrEKyQVhAf7zQ.png" /></figure><p>[ quotient rule of exponent:</p><p>aᵐ / aⁿ = aᵐ⁻ⁿ ]</p><p>If you are subtracting 2 logs with the same base the resulting log will be the log (of the same base) with the argument as the quotient of the arguments of the original logs…</p><h3>The Power Rule</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/304/1*u1crIZEu4A_a9U2_5RlQqQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*3n_0Ve55T0Beeco8Mi1J-Q.png" /></figure><p>By multiplying a constant <strong>a</strong> with log with base <strong>b</strong> and argument <strong>c</strong> is equal to log with base <strong>b</strong> and argument as <strong>c</strong> to the power <strong>a</strong>.</p><h3>The Change of the Base Rule</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/537/1*CAERaHbeFqVJ2K8Nask8jQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/767/1*tJsy_60ZoHEwyONba_DaQQ.png" /></figure><p>The change of the base rule allows, you to calculate any log… many calculators do not allow you to have a different base, so by using this formula calculating the log of any base is made easy.</p><p>That’s all for this blog.</p><p>Until next time, Have a great day ahead!</p><p>Yash</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=50286b182f7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Logarithms?]]></title>
            <link>https://yashppawar.medium.com/logarithms-1b20bd7cc3ff?source=rss-5ba73d669d91------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b20bd7cc3ff</guid>
            <category><![CDATA[logarithm]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[mathematics]]></category>
            <dc:creator><![CDATA[Yash Pawar]]></dc:creator>
            <pubDate>Fri, 15 Oct 2021 02:37:41 GMT</pubDate>
            <atom:updated>2021-10-17T14:36:44.892Z</atom:updated>
            <content:encoded><![CDATA[<p>Learning what are <strong>Logarithms.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3OSVFFM_xX7VkWjk" /><figcaption>Photo by <a href="https://unsplash.com/@claytonrobbins?utm_source=medium&amp;utm_medium=referral">Clayton Robbins</a> on <a href="https://unsplash.com?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>I recently learnt about logarithms, they seem fun, so I decided to share what I have learnt with you all.</p><p>before having a look at what they are, lets first have a look at some of their real-life applications:-</p><ul><li>The <strong>pH</strong> scale in chemistry is <em>logarithmic</em>.</li><li>The <strong>Richter Scale </strong>used to measure earthquake is <em>logarithmic</em>.</li><li>The economy is also measured on a <em>logarithmic</em> scale.</li><li>The spacing between the guitar frets.</li></ul><p>if you want to understand the scale make sure to check out <a href="https://www.khanacademy.org/math/algebra-home/alg-exp-and-log/alg-logarithmic-scale/v/vi-and-sal-explore-how-we-think-about-scale">this</a> video by <a href="https://www.khanacademy.org/math/algebra-home/alg-exp-and-log/alg-logarithmic-scale/v/vi-and-sal-explore-how-we-think-about-scale">Khan Academy</a> after you complete reading this blog.</p><h3>So What are Logarithms?</h3><p>after googling the first answer I got is:-</p><blockquote>A logarithm is a mathematical operation that determines how many times a certain number, called the base, is multiplied by itself to reach another number. Because logarithms relate geometric progressions to arithmetic progressions.</blockquote><p>let&#39;s try to break it down, “how many times a certain number, called the base is multiplied by itself”, this sounds familiar, it is exponents (baseᵉˣᵖ<em>),</em></p><figure><img alt="$$\log_{base}(number) = exponent \iff base^{exponent} = number$$" src="https://cdn-images-1.medium.com/max/1024/1*8o8xR6dDVM18Kg0tUg2u3Q.png" /><figcaption>the logarithm equation to exponential equation</figcaption></figure><p>if we compare the expression of the logarithm with that of exponents, we see that it&#39;s just a new way to write the same thing. Let me give you an example of a log using numbers instead of variables.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*BphHs6-Y8kbtRRH07mDtHA.png" /><figcaption>example</figcaption></figure><p>There are some restrictions on the number (argument to the log function) and the base, those are:-</p><ul><li>The <strong>number</strong> cannot be negative, if the number (argument) is negative the answer cannot be in real numbers.</li><li>The <strong>base</strong> should be greater than 0, as, in an exponential function, the base is always defined to be positive.</li><li>The <strong>base</strong> should not be 1, if the base is 1, we will not always get a definite answer, as 1ˣ for any value of x is 1.</li></ul><p>we have some bases that are very common, writing the base always when writing the log function does not make sense, so we have defined some special logs, namely log base 10, and natural log (log base e).</p><figure><img alt="log base 10" src="https://cdn-images-1.medium.com/max/396/1*8pc3Nhl4cFsJWWhnj0UHWA.png" /><figcaption>log base 10</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/293/1*TVfyIdGIKpdymeRWMk7D3g.png" /><figcaption>natural log, (n is a variable)</figcaption></figure><p>In my <a href="https://medium.com/@yashpawarp/properties-of-logarithms-50286b182f7">next blog</a>, we will have a look at some properties of logarithms.</p><p>Until next time, Have a great day ahead!</p><p>Yash</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b20bd7cc3ff" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Solve your python errors using these steps]]></title>
            <link>https://yashppawar.medium.com/solve-your-python-errors-using-these-steps-48f4c58056f8?source=rss-5ba73d669d91------2</link>
            <guid isPermaLink="false">https://medium.com/p/48f4c58056f8</guid>
            <category><![CDATA[tutorial]]></category>
            <dc:creator><![CDATA[Yash Pawar]]></dc:creator>
            <pubDate>Thu, 19 Aug 2021 09:28:26 GMT</pubDate>
            <atom:updated>2021-08-19T09:28:26.144Z</atom:updated>
            <content:encoded><![CDATA[<p>While writing code you will probably run into errors, which is very common, and solving those errors needs you to do a few steps. This blog is beginners guide to solve those errors.</p><figure><img alt="person sitting in front of computer, which has code open in an editor" src="https://cdn-images-1.medium.com/max/1024/0*a8G16Z6IjovQ1v-I" /><figcaption>Photo by <a href="https://unsplash.com/@nublson?utm_source=medium&amp;utm_medium=referral">Nubelson Fernandes</a> on <a href="https://unsplash.com?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Let us have a look at what we will be covering:-</p><pre>[<br>    Reading the errors,<br>    Trying to search for the error on the internet,<br>    Using forums and communities<br>]</pre><p>ok, so first we need some code, the things we are covering, looks like a python list to me, let me create a file and add this list to that file, this is how my file looks like</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*idxGCZiAY3YwLIaxEP2O7g.png" /><figcaption>list of what we are covering in a python file</figcaption></figure><p>when I try to run this, I get an error, let’s have a look at it</p><pre>$ python error.py<br> <br>File &quot;/home/yashp/code/error.py&quot;, line 2<br>    Reading the errors,<br>            ^<br>SyntaxError: invalid syntax</pre><p>let’s try to read what this error has to say. The last line which starts with the kind of error we have, here we have a SyntaxError which is followed by a message, which for us is invalid syntax meaning that we have some problem with our syntax, File &quot;/home/yashp/code/error.py&quot;, line 2 means that in file error.py which is located in the folder /home/yashp/code contains the error on line number 2, we also see that it has printed line 2 for us, which is Reading the errors .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z-7-QNeaxqNAyxjlxgFoIg.png" /><figcaption>list of what we are covering in a python file without errors</figcaption></figure><p>After inspecting line 2 of model.py I found out that I did not add quotes around the sentences to make them strings, which is to be stored in the list, so now I have added quotes around them, and it works as expected without any errors.</p><h3>Let’s now take an example of another error</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4db6b9f27b13d18f202b9c316c7b918f/href">https://medium.com/media/4db6b9f27b13d18f202b9c316c7b918f/href</a></iframe><p>This is the code for the next example, the first cell downloads the following code as a model.py file.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bcd0cc2f60ce20fc84eb2e9deae00800/href">https://medium.com/media/bcd0cc2f60ce20fc84eb2e9deae00800/href</a></iframe><p>after you run that notebook’s second cell you will receive a NotImplementedError. the complete error is as follows:-</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e3cacbdf0b83650ffaa1e1ebeae162c4/href">https://medium.com/media/e3cacbdf0b83650ffaa1e1ebeae162c4/href</a></iframe><p>let’s break this down, we see that the error is NotImplementedError, what does this mean? <a href="https://stackoverflow.com/questions/60392220/what-is-notimplementederror">here is a link</a> to an answer which defines NotImplementedError. and the error takes place at &lt;ipython-input-2-8d64230b72fb&gt; in &lt;module&gt;() which is nothing but the second cell of the notebook, and the error we have is on line 10 of the second cell, i.e. model(sample_data) .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/275/1*LX9kyPXJzyI5fva7sAy9bg.png" /><figcaption>search on stack overflow button on colab.</figcaption></figure><p>on google colab after running that cell, and getting that error we can see that it has a button that says <strong>Search </strong><a href="https://stackoverflow.com/"><strong>StackOverflow</strong></a><strong>, </strong>after clicking on that you will be redirected to <a href="https://google.com">google</a> which has results that look like this:</p><figure><img alt="result from google.com about the same error" src="https://cdn-images-1.medium.com/max/625/1*J_Ma0wTA0ydrm9WfwcGiaA.png" /><figcaption>results after clicking the ‘search stack overflow’ button</figcaption></figure><p>these results are from <a href="https://stackoverflow.com/">StackOverflow</a> which is the first place you would like to visit for your error and also the main thing in the second point we are covering in this blog. instead of clicking that button, you can alternatively use search queries like “NotImplementedError StackOverflow” or “NotImplementedError PyTorch StackOverflow”, the 2nd result defines NotImplementedError for us, and the 4th result looks something similar to what we have if you check model.py you will see that this is similar but not what we want.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*KQCEhBSJSBdpgNXhtQSLWA.png" /><figcaption>results after searching ‘NotImplementedError PyTorch’ on google</figcaption></figure><p>now we will try to search on the internet with the search query which is relevant to the error let’s try <a href="https://www.google.com/search?q=notimplementederror+pytorch&amp;rlz=1C1VDKB_enIN952IN952&amp;sxsrf=ALeKk02b5uz_JycWZJbKFq9XqpP-5MlTgg%3A1629285614959&amp;ei=7uwcYbuFOrTI4-EPx46rgAc&amp;oq=notimplementederror+pytorch&amp;gs_lcp=Cgdnd3Mtd2l6EAMyBAgjECcyBAgjECc6BwgAEEcQsAM6BggAEBYQHkoECEEYAFC70DxYidI8YNLUPGgCcAJ4AIABhgGIAfsCkgEDMC4zmAEAoAEByAEIwAEB&amp;sclient=gws-wiz&amp;ved=0ahUKEwi7tMTyubryAhU05DgGHUfHCnAQ4dUDCA4&amp;uact=5">‘NotImplementedError PyTorch’</a>, we see that the 1ˢᵗ result is from StackOverflow, but the next ones are from <a href="https://discuss.pytorch.org/">PyTorch Forums</a>, and the 2ⁿᵈ result says [SOLVED] so let’s have a look at that, after reading a few replies, we find that <a href="https://discuss.pytorch.org/t/solved-resolving-notimplementederror/26444/7">this</a> reply by <a href="https://discuss.pytorch.org/u/ptrblck"><strong>ptrblck</strong></a><strong> </strong>says that it can be because of a typo or incorrect indentation, and we also find that in <a href="https://gist.github.com/yashppawar/18fa4b21cfd766348ca67d0f4c075995">model.py</a> forward is spelt incorrectly, we can just open this file and correct the spelling and run the cell again after restarting the kernel the error is no more there. (note: restarting the kernel is necessary, else python won’t load the changes else use the cached file, so we need to restart).</p><p>If with all these steps the error you are getting didn’t get solved you have Forums and communities to ask about your error, there are forums from the specific technologies themselves, like <a href="https://discuss.tensorflow.org/">TensorFlow Forum</a>, <a href="https://discuss.pytorch.org/">PyTorch Forum</a>, <a href="https://forums.fast.ai/">fast.ai Forum</a> and others. If it does not have a forum of itself you can ask on a more general forum/community like <a href="https://stackoverflow.com/">StackOverflow</a> or others which you can find on discord/slack etc…</p><h3><strong>Summary:</strong></h3><ul><li>The error Traceback gives us the information about where the error is and what the error is.</li><li>After identifying the error we should try to search about it on StackOverflow.</li><li>If we didn’t find anything on StackOverflow we should just try googling about the error. Try to look for answers on forums.</li><li>If the error is still not solved, ask on Forums (if possible official ones) and general communities.</li></ul><p>Until next time, Have a great day ahead!.</p><p>Yash</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=48f4c58056f8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>