<?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 Aayush Raju Bade on Medium]]></title>
        <description><![CDATA[Stories by Aayush Raju Bade on Medium]]></description>
        <link>https://medium.com/@aayushrajubade?source=rss-aa7d29418d52------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*H6EtPpyvvA-wa4S1tbUbIg.jpeg</url>
            <title>Stories by Aayush Raju Bade on Medium</title>
            <link>https://medium.com/@aayushrajubade?source=rss-aa7d29418d52------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 01:54:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@aayushrajubade/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[OGL Quick Start Series #1 : Create Your First Window]]></title>
            <link>https://medium.com/@aayushrajubade/ogl-quick-start-series-1-create-your-first-window-cdc8cee824e7?source=rss-aa7d29418d52------2</link>
            <guid isPermaLink="false">https://medium.com/p/cdc8cee824e7</guid>
            <category><![CDATA[computer-graphics]]></category>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[game-engine]]></category>
            <category><![CDATA[opengl]]></category>
            <category><![CDATA[cpp]]></category>
            <dc:creator><![CDATA[Aayush Raju Bade]]></dc:creator>
            <pubDate>Thu, 15 May 2025 20:14:28 GMT</pubDate>
            <atom:updated>2025-05-15T20:14:28.836Z</atom:updated>
            <content:encoded><![CDATA[<h3>OGL Quick Start Series #1 : Create Your First Window</h3><p>Hi there! I’m Aayush an aspiring graphics programmer and indie game developer. I’m currently building my own game engine called <strong>Crochet Engine</strong>, to understand exactly how these powerful engines like <strong>Unreal</strong> and <strong>Unity</strong> actually work under the hood and explore how I can design something even more intuitive and user-friendly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s3gfQe4AmxdjPXFljjkTHg.png" /><figcaption>Crochet Game Engine</figcaption></figure><p>This is a quick start OpenGL series, I’ll get you up and running with all the cool and advanced topics fast, skipping all the unnecessary theory. We’ll only look at some theory when we apply it in code, so it’ll be more of a hands on learning. I’ll try to make all the concepts easier so you don’t have to go through the trouble I’ve experienced. Note that, I’ll be using:</p><ul><li><strong>OpenGL 4.6</strong> specifications</li><li><strong>GLAD</strong> as the function loader</li><li><strong>GLFW</strong> for window management</li></ul><p>I am assuming that you’ve already setup all the requirements in your favourite IDE or code editor and you are familiar with C++. You can easily find the setup tutorials on youtube.</p><p>Before we start with rendering, it is important to know the motivation for learning OpenGL.</p><p><strong>[+] MOTIVATION:</strong></p><p>Have you ever felt that this xyz game lacks something and you could make it even more better or engaging ? Or have you ever wished that you could make your own game ?</p><p>You can do just that with OpenGL, I might be a bit biased about game development as I am a gamedev. But, It can be used wherever rendering or graphics are involved. OpenGL is a toolkit, you can use to design more better tools like game engines.</p><p>Now, why would you be interested in creating a custom game engine ?</p><p>Any game engine that exists keeps a specific target game genre for it’s development and it might be better to use that game engine to make games related to that genre. But if you want to make a game that belongs to a completely different genre, then you’ve no choice but to create your own game engine.</p><p>One great example is Notch, the creator of Minecraft. He made Minecraft using Java and OpenGL.</p><p>“ I believe that people who use pre-made game engines are just rearranging assets, the real thrill of game development is to build everything from the ground up. “</p><p>Maybe you could after learning OpenGl be the creator of such titles :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*c6gEKMrK13IewxCx" /><figcaption>Minecraft</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*92Oo0rEMmMWM9gKr" /><figcaption>GTA V</figcaption></figure><p>By the end of this series, you’ll be able to:</p><ul><li>Write modern OpenGL code</li><li>Load and render 3D models</li><li>Understand shaders, lighting and materials</li><li>Build the foundation of your own rendering pipeline</li></ul><p><strong>[+] What is OpenGL ?</strong></p><ul><li>OpenGL is a specification that defines a cross-platform graphics API.</li><li>The specification defines how the API should behave.</li><li>The implementation of the API is done by the GPU manufacturers.</li></ul><p>Let’s begin with the first step (The hardest part always !) — Creating a window.</p><p>You can access all the code from my github repo:</p><p><a href="https://github.com/AayushBade14/OGL-Quick-Start">GitHub - AayushBade14/OGL-Quick-Start</a></p><ol><li>We first start with including the necessary libraries</li></ol><ul><li><strong>GLFW</strong> — for windowing related tasks</li><li><strong>iostream</strong> — for getting access to <strong>std::cout </strong>and <strong>std::cerr</strong> for logging purposes.</li></ul><pre>#include &lt;GLFW/glfw3.h&gt;<br>#include &lt;iostream&gt;</pre><p>2. We create macro constants for window properties like<strong> width, height, and title</strong> (which appears on top of a window).</p><pre>#define WIDTH 1280<br>#define HEIGHT 720<br>#define TITLE &quot;YourTitle&quot;</pre><p>Feel free to play around with these values</p><p>3. Now, inside our main loop we initialize GLFW with proper logging.</p><pre>if(glfwInit()&lt;0){<br>  std::cerr&lt;&lt;&quot;ERROR: Failed to initialize glfw&quot;&lt;&lt;std::endl;<br>  return -1;<br>}<br>else<br>  std::cout&lt;&lt;&quot;INFO: Successfully initialized glfw&quot;&lt;&lt;std::endl;</pre><p>4. Now we set GLFW window hints.</p><ul><li>Window hints are nothing but window properties or settings I would say.</li></ul><pre>glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR,4);<br>glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR,6);<br>glfwWindowHint(GLFW_OPENGL_PROFILE,GLFW_OPENGL_CORE_PROFILE);</pre><ul><li>Here, the first two hints help us to set the OpenGL version we are using. We are using 4.6 -&gt; 4(Major) and 6(Minor).</li><li>If you were to use 3.3 -&gt; 3(Major) and 3(Minor)</li><li>Next we set the OpenGL profile to Core, which is modern OpenGL.</li><li>There are other window hints you can experiment with, take that as an exercise and experiment with different window hints. Refer <a href="https://www.glfw.org/documentation"><strong>GLFW docs</strong></a> for help.</li></ul><p>5. Now we create a glfwWindow object, with proper logging.</p><pre>// creating window<br>GLFWwindow *window = glfwCreateWindow(WIDTH,HEIGHT,TITLE,NULL,NULL);<br><br>// logging<br>if(!window){<br>  std::cerr&lt;&lt;&quot;ERROR: Failed to create a window&quot;&lt;&lt;std::endl;<br>  glfwTerminate();<br>  return -1;<br>}<br>else<br>  std::cout&lt;&lt;&quot;INFO: Successfully created a window&quot;&lt;&lt;std::endl;</pre><ul><li>The <strong>glfwCreateWindow</strong> function, takes in width, height and the title as the first three arguments, we set the last two as <strong>NULL</strong> for now.</li><li>The 4th argument (<strong>monitor</strong>) — used for fullscreen</li><li>The 5th argument (<strong>share</strong>) — used for sharing OpenGL resources between contexts. We’ll look into them later.</li><li>Then in the if-statement if the window is null that means there was some issue creating a window. Then we immediately log and terminate glfw using <strong>glfwTerminate</strong> function, which cleans up all the resources.</li></ul><p>6. Then we make the context current, it is nothing but telling OpenGL “Hey OpenGL! From now on, any OpenGL commands I write should affect this window.”</p><ul><li>Context is nothing but a state, as <strong>OpenGL is a state machine.</strong></li></ul><pre>glfwMakeContextCurrent(window);</pre><p>7. Now we create a main render loop which will make the window stay till the window is closed. Which is handled by a function <strong>glfwWindowShouldClose</strong>, which returns a boolean and expects a pointer to window as an argument.</p><pre>while(!glfwWindowShouldClose(window)){<br><br>  // game logic + rendering<br><br>  glfwPollEvents();<br>  glfwSwapBuffers(window);<br>}</pre><ul><li><strong>glfwPollEvents</strong> — is responsible to check for events like key presses, mouse movement or window resizing. We’ll play around with it later.</li><li><strong>glfwSwapBuffers</strong> — it swap buffers.</li></ul><p>Now you might ask what are buffers and why do we need to swap them ?</p><p>Buffer is like a canvas where you draw things, like your game graphics. GLFW sets up double buffered window by default and OpenGL draws onto the back buffer.</p><ul><li>Whatever graphics you see on the screen is the front buffer.</li><li>While you enjoy the content rendered on the front buffer, the next frame’s content is rendered on the back buffer, which is hidden from you so that you don’t see certain artefacts while it’s rendering.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BlEZBKg8-U6lzi1lHo9xMQ.jpeg" /><figcaption>Dual Buffers</figcaption></figure><p>8. Then we manually clean up the resources for glfw</p><pre>glfwDestroyWindow(window);<br>glfwTerminate();</pre><p>Now compile your program using any build system of your choice, after running your program you should see something like this:</p><pre>g++ main.cpp -o firstwindow -lglfw</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YxIKA4VIEfWzRwVqS63Jkg.png" /><figcaption>Output Window</figcaption></figure><p>Nothing too interesting, but this very window is where we’ll create wonders.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cdc8cee824e7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[1. “What Is Cryptography? A Newbie’s Guide”]]></title>
            <link>https://medium.com/@aayushrajubade/1-what-is-cryptography-a-newbies-guide-662a7da391a0?source=rss-aa7d29418d52------2</link>
            <guid isPermaLink="false">https://medium.com/p/662a7da391a0</guid>
            <category><![CDATA[encryption]]></category>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[cryptography]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Aayush Raju Bade]]></dc:creator>
            <pubDate>Sat, 05 Oct 2024 19:30:53 GMT</pubDate>
            <atom:updated>2024-10-05T19:30:53.469Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*eosc2SAYSTu4J7yu" /><figcaption>Photo by <a href="https://unsplash.com/@dchris?utm_source=medium&amp;utm_medium=referral">Christian Lendl</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>1.1 Introduction</h3><p>Hey peeps! I’ve decided to write an article series on cryptography, which I’m creating keeping beginners in mind. I’ve encountered difficulty myself learning this vast topic, I’m creating this article series so that you don’t have to face problems that I faced while learning. Trust me on this, by the end of this series you’ll be good to go and explore this field in even more depth by yourself.</p><p>Take a deep breath in…. and let’s dive into the large ocean of cryptography.</p><p>You see the image of a machine above? It is a remarkable cipher device developed by the Germans during <strong>WWII </strong>to secretly communicate. And a gentleman named Alan Turing helped to crack the <strong>Enigma</strong>. Don’t stress out much we’ll learn more about it later. See, human beings always had a fascination with keeping information away from others, this fascination has developed this field of cryptography and it plays an important role in keeping your ‘Secret chats’ private on the web. Don’t worry, I won’t tell about your secret chats to your parents !!</p><p>Joke’s apart, first let me give you a formal definition. The techniques needed to protect data belong to the field of cryptography. Actually, the subject has three names, <strong>Cryptography</strong>, <strong>Cryptology</strong> and <strong>Cryptanalysis</strong>. Which are often used interchangeably. Let’s understand them one by one:</p><ol><li>Cryptology is the all-inclusive term for the study of communication over nonsecure channels, and related problems.</li><li>The process of designing systems to do this is called Cryptography.</li><li>Cryptanalysis deals with breaking of such systems.</li></ol><p>Of course, it is impossible to do either cryptography or cryptanalysis without having a good understanding of the methods of both areas.</p><h3>1.2 “Are my communications really private ?”</h3><figure><img alt="Communication between Alice and Bob eavesdropped by Eve." src="https://cdn-images-1.medium.com/max/1024/1*F5BEpzmC4CCjPpcxmjT1uA.jpeg" /><figcaption>Secure Communications[FIG-I]</figcaption></figure><p>Let’s assume a basic communication scenario, depicted in FIG-I; there are two friends, say <strong>Alice</strong> and <strong>Bob</strong>, who want to communicate with each other. And some jealous friends of theirs want to listen to their conversation, say <strong>Eve</strong>. When Alice wants to send a message to Bob (A <strong>plaintext</strong>) she <strong>encrypts</strong> that message with a method prearranged with Bob. But unfortunately that method is known to Eve. What keeps the message secret is a <strong>key</strong>, when bob receives the encrypted message (ciphertext), he then converts it to a readable plain text using the <strong>decryption key</strong>. Eve might have the following intentions:</p><ol><li>Read the message.</li><li>Find the key and thus read all the messages in future as well, if Alice doesn’t change the key.</li><li>Corrupt Alice’s message in such a way that it creates a misunderstanding between Alice and Bob.</li><li>Chat as Alice with Bob and spoil everything. Bob believes that he’s talking with Alice.</li></ol><p>Basically Eve here is the <strong>“Man In The Middle(MITM)”</strong>.</p><blockquote><strong>[+] There are four types of attacks which Eve could use:</strong></blockquote><p>(i) <strong>Ciphertext only</strong>: Eve has only a copy of the ciphertext.</p><p>(ii) <strong>Known Plaintext</strong>: Eve has a copy of the ciphertext and the corresponding plaintext, now Eve can try to figure out the pattern and find the key, and if Alice doesn’t change the key then Eve can listen to all the future communications.</p><p>(iii) <strong>Chosen Plaintext</strong>: Eve gains temporary access to the encryption machine, now she can generate a bunch of ciphertext and the corresponding plain text using the machine and try to figure out the pattern to find the key.</p><p>(iv) <strong>Chosen Ciphertext</strong>: Eve obtains temporary access to the decryption machine, uses it to decrypt a bunch of ciphertexts and deduce the key.</p><p><strong>EXAMPLE:</strong> You want to identify an airplane as friend or foe. Send a random message to the plane, which encrypts the message and sends it back. Only the friendly plane is assumed to have the right encryption key. Now, compare the message from plane to the encrypted message, if they match then the plane is friendly, if not then it’s an enemy. Maybe you could use this technique to find out who are your true friends… hahaha</p><figure><img alt="How cryptography can be used to identify friendly aircrafts." src="https://cdn-images-1.medium.com/max/1024/1*7WeI_PsVk8LlyZ5_nXwmAA.jpeg" /><figcaption>Identifying friendlies [FIG-II]</figcaption></figure><p>One of the most important principle in Cryptography is Kerckhoff’s Principle which states that:</p><p>“In assessing the security of a cryptosystem, one should always assume the enemy knows the method being used. ”</p><p>The security of the system should therefore be based on the key and not on the obscurity of the algorithm used (basically, how complex the algorithm is).</p><h3>1.3 Symmetric &amp; Public Key Algorithms</h3><p>Encryption and decryption method falls into two categories:</p><ol><li><strong>Symmetric key</strong>: In this scenario Alice and Bob both have the encryption and decryption key, In some cases encryption key is shared and decryption key is easily calculated from it. And in some cases the encryption key and the decryption key both are the same. Eg: (i) Data Encryption Standard(DES), (ii) Advanced Encryption Standard(AES).</li><li><strong>Public key(Asymmetric)</strong>: In this Algorithm, the encryption key (public key) is made public, but it is computationally infeasible to find the decryption key without information only know to Bob. It is a powerful encryption method but it is also computation intensive, that’s why it’s only used for encrypting small messages like digital signatures and sending keys to be used in symmetric key algorithms. Eg: (i) RSA — which is based on the difficulty of factoring large integers, (ii) ElGamal System, which is based on the discrete log problem, (iii) NTRU, based on lattice problems, (iv) McEliece system, based on error correcting codes.</li></ol><p>Let’s understand these concepts in a much simpler fashion using an analogy of chocolate which I created.</p><ol><li><strong>Symmetric Key:</strong> Say you and your friend has a special kind of chocolate wrapper that only you both know of how to open without breaking the chocolate, as the wrapper is the same for both of you, you can easily share chocolates and thus send and receive messages securely. But you’ll have to take one precaution that while giving the wrapper to your friend, it must not be stolen by someone else, otherwise that person would also learn how to open the wrapper and can enjoy eating the chocolate that was meant for your friend to be enjoyed. Remember here the chocolate is the data and the wrapper is the key</li><li><strong>Public Key</strong>: Say your friend gives you a wrapper that only they know how to open. They give this wrapper to anyone who wants to send them chocolate, this is the public key. Now when you want to send the chocolate to the friend, you wrap it into the special wrapper (the one which your friend gave to you, the public key). And now only your friend knows how to open that wrapper (using the private key).</li></ol><p>Also, within the symmetric key cryptography, there are two types of ciphers:</p><p>(i) <strong>stream ciphers</strong>: The data is fed into the algorithm in small pieces (bits or bytes), it’s like breaking your chocolate bar into little candies and then wrapping them. This method is faster, but can be less secure if the same key-stream is used. It might seem that it’s slower in case of the chocolate example but trust me computers can do it much faster.</p><p>(ii) <strong>block ciphers</strong>: The data is fed into the algorithm in blocks (say chunks of 128 bits), it’s like breaking your chocolate bar into slightly bigger pieces and then wrapping them. This process makes it more secure but obviously takes more time.</p><figure><img alt="Chocolate analogy for symmetric and public key" src="https://cdn-images-1.medium.com/max/1024/1*50RqWhAfpCZIsKN_BxMLuA.jpeg" /><figcaption>Chocolate analogy for symmetric and public key</figcaption></figure><figure><img alt="Chocolate analogy for stream and block ciphers" src="https://cdn-images-1.medium.com/max/1024/1*7xAjSDWf3B5lx9RN-aRvzw.jpeg" /><figcaption>Chocolate analogy for stream and block ciphers</figcaption></figure><h3>1.4 Key Length</h3><p>The most obvious approach any hacker or adversary might use to determine the key is “Brute Force” approach, it’s like trying keys of all length and all possible combinations but it becomes much difficult when the key length is a little longer. But don’t worry it’s not easy to perform a brute force attack as it’s computationally intensive. The DES algorithm has has a 56 bit long key and thus has 2⁵⁶ = 7.2 x 10¹⁶ possible keys, which is a lot. For you to understand let me give an example: Assume there are 10³⁰ possible keys and your computer can do 10⁹ such calculations in one second. There are 3 x 10⁷ seconds in a year, so it would take a little more than 3 x 10¹³ years to complete the task. Now you can imagine how hard is it to brute force for long key lengths.</p><p>“But does having a long key length ensure unbreakable algorithm ?”</p><p>“The answer is NO”. Because poor implementation of the algorithm can leave vulnerabilities, which can be exploited by a hacker and break the algorithm even if it uses a long key length.</p><h3>1.5 Applications</h3><p>Let’s conclude this with a few applications of cryptography:</p><ol><li><strong>Confidentiality</strong>: Eve shouldn’t be able to read Alice’s message to Bob. The main tools are encryption and decryption algorithms.</li><li><strong>Data Integrity</strong>: Bob wants to make sure that Alice’s message isn’t altered. It can be solved by using some hash functions(We’ll learn about them later)</li><li><strong>Authentication</strong>: Bob wants to make sure that only Alice could’ve sent the message. This involves various data-origin authentication.</li><li><strong>Non-Repudiation</strong>: Alice after sending a message cannot claim that she didn’t send it.</li><li><strong>Digital-Signatures</strong>: If a person sends a certain message, there is his digital signature (identity of that person) tied to the message.</li><li><strong>Security-Protocols</strong>: Help to carry out secure online transactions.</li></ol><p>Just to name a few. There are even more applications of cryptography.</p><h3># References:</h3><ol><li>Introduction to cryptography with coding theory, By: Wade Trappe and Lawrence C. Washington.</li><li><a href="https://www.ibm.com/topics/cryptography">IBM ARTICLE</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=662a7da391a0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Machine Learning For Everyone]]></title>
            <link>https://medium.com/@aayushrajubade/machine-learning-for-everyone-5596b8b7f6c8?source=rss-aa7d29418d52------2</link>
            <guid isPermaLink="false">https://medium.com/p/5596b8b7f6c8</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[linear-regression]]></category>
            <category><![CDATA[gradient-descent]]></category>
            <dc:creator><![CDATA[Aayush Raju Bade]]></dc:creator>
            <pubDate>Tue, 09 Jul 2024 19:04:07 GMT</pubDate>
            <atom:updated>2024-07-09T19:04:07.734Z</atom:updated>
            <content:encoded><![CDATA[<p>“Automation is not about replacing human labor but enhancing human potential.” This quote tells the essence of AI’s role in our lives today. While AI (Artificial Intelligence) and AGI (Artificial General Intelligence) are terms often used interchangeably, AGI aims to bridge the gap between humans and machines, whereas AI currently assists in various day-to-day tasks. For now, let’s focus on understanding Machine Learning (ML).</p><p><strong>[+] Understanding Machine Learning</strong></p><p>Machine Learning is simply about teaching machines to learn tasks without explicitly programming them. Imagine teaching a child how to draw. You provide examples and guidance to help them learn. Similarly, in Machine Learning, we provide examples to computers or machines to teach them tasks. There are primarily two methods:</p><ol><li><strong>Supervised Machine Learning:</strong> Here, the machine learns with guidance. You provide it with examples consisting of input features (x) and corresponding target outputs (y). The algorithm learns patterns from these examples to make predictions on new data. This method is used for tasks like image recognition or predicting house prices based on various factors.</li><li><strong>Unsupervised Machine Learning: </strong>Unlike supervised machine learning, the machine learns independently. It analyzes input data without predefined target outputs, finding patterns such as grouping similar data points together (clustering).</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/536/1*-ifNKNSxdJHUGAfZC7wr-w.png" /><figcaption>Machine Learning Illustrations</figcaption></figure><p><strong>[+] Delving into Supervised Learning with Linear Regression</strong></p><p>Let’s explore supervised learning further with a practical example using linear regression. Linear regression fits a straight line to data points (x, y) to minimize the sum of squared distances from the points to the line. This line represents the best fit for the data.</p><p><strong>[] Understanding Linear Regression</strong></p><p>Linear regression predicts an output (y) given an input (x) using the equation:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*oR8QNbvIfI89p-BHiq3ukg.png" /></figure><p><strong>● w (weight):</strong> Determines the slope of the line or the inclination of the line. <strong>● b (bias): </strong>Specifies where the line intersects the y-axis.</p><p>The goal is to minimize a cost function J(w,b), which measures the difference between predicted and actual values (squared error loss):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/613/1*SFusM_zi3PVsbky4HzeXXQ.png" /></figure><p><strong>● m:</strong> Number of training examples</p><p>It’s divided by 2 for convenience while calculating the gradient of J with respect to w and b.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oB3CF_8Ni2UDLqV1dzH6UA.png" /></figure><p><strong>[+] Optimizing with Gradient Descent</strong></p><p>Minimizing the cost function involves optimizing parameters (w and b) using Gradient Descent, a key optimization algorithm in Machine Learning.</p><p><strong>[] How Gradient Descent Works</strong></p><p>Gradient Descent adjusts parameters iteratively to reach the minimum of the cost function:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rcy-xhy5zUjTvdiYQH4aYQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/835/1*K8D1CRCdHM0kaui9w7P0Zg.png" /></figure><p><strong>● Gradient (derivative of J):</strong> Indicates the slope of the cost function. If positive, parameters are adjusted to move towards the minimum.</p><p>Gradient Descent continues adjusting parameters until the algorithm converges to a minimum.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/567/1*6OEBhuNSscbOS0PdUkvsPQ.png" /></figure><p>[<strong>+] Conclusion</strong></p><p>In conclusion, Machine Learning empowers machines to learn from data and make decisions or predictions. Understanding its basic concepts like supervised and unsupervised learning, linear regression, and Gradient Descent forms the foundation for diving deeper into this field.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5596b8b7f6c8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>