<?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 Setu Kumar on Medium]]></title>
        <description><![CDATA[Stories by Setu Kumar on Medium]]></description>
        <link>https://medium.com/@setukms7?source=rss-cec511e969fd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*-QxijEbbVeElWeZC</url>
            <title>Stories by Setu Kumar on Medium</title>
            <link>https://medium.com/@setukms7?source=rss-cec511e969fd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 20:23:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@setukms7/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[The AI Layoff Domino Effect: Could It Eventually End the Traditional Software Company?]]></title>
            <link>https://medium.com/@setukms7/the-ai-layoff-domino-effect-could-it-eventually-end-the-traditional-software-company-d95ed00313cd?source=rss-cec511e969fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/d95ed00313cd</guid>
            <category><![CDATA[traditional-software]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Setu Kumar]]></dc:creator>
            <pubDate>Fri, 27 Nov 2026 03:50:32 GMT</pubDate>
            <atom:updated>2026-11-27T03:50:32.564Z</atom:updated>
            <content:encoded><![CDATA[<p><em>How artificial intelligence could trigger a chain reaction across the technology industry — from workforce reductions and cheaper software development to SaaS disruption and the rise of autonomous software factories.</em></p><h3>Introduction: A Transformation Bigger Than Job Losses</h3><p>The technology industry is entering a transformation that could fundamentally change how software is developed, sold and consumed.</p><p>For decades, the software business has followed a relatively simple model: companies hire developers, build software products, sell licenses or subscriptions, and generate recurring revenue from customers.</p><p>Businesses buy ready-made solutions such as CRM, ERP, HRMS, accounting platforms and inventory management systems because developing their own software is expensive, time-consuming and technically demanding.</p><p>But artificial intelligence is beginning to challenge this entire model.</p><p>AI is no longer just helping developers write code faster. It is increasingly capable of understanding requirements, designing applications, generating code, testing functionality, identifying errors and assisting with deployment.</p><p>This creates a much bigger question than whether AI will replace programmers:</p><p><strong>What happens when the cost of building software becomes so low that businesses no longer need to buy much of the software they use today?</strong></p><p>The consequences could extend far beyond employment. They could reshape the entire software industry.</p><h3>1. The First Domino: AI-Driven Workforce Reduction</h3><p>The first visible impact of AI is likely to be a transformation of the software workforce.</p><p>Traditionally, building a software product required several specialised teams:</p><ul><li>Business analysts to understand requirements.</li><li>UI/UX designers to design interfaces.</li><li>Frontend developers to build applications.</li><li>Backend developers to manage business logic.</li><li>Database engineers to manage information.</li><li>QA engineers to test applications.</li><li>DevOps engineers to deploy and maintain systems.</li></ul><p>AI agents are increasingly capable of assisting with many of these responsibilities.</p><p>A development team that once required 20 people might eventually accomplish a substantial portion of its work with a much smaller team supported by AI.</p><p>This does not necessarily mean that all 20 positions disappear. It means that the relationship between software output and the number of employees could change dramatically.</p><p>Companies will face pressure to produce more software with fewer resources.</p><p>The immediate consequences could include hiring freezes, reduced outsourcing, restructuring and layoffs.</p><p>However, the bigger impact may come from what happens next.</p><h3>2. The Second Domino: Software Development Becomes Cheaper</h3><p>For years, software development has been expensive because it requires specialised human expertise and significant development time.</p><p>A custom business application might require months of work and a substantial development budget.</p><p>AI changes this economic equation.</p><p>Imagine a small business that needs:</p><ul><li>An inventory management system.</li><li>Employee attendance software.</li><li>A sales dashboard.</li><li>Customer management.</li><li>Automated reporting.</li><li>Integration with its existing POS system.</li></ul><p>Previously, the business might have purchased several SaaS subscriptions or hired a development agency.</p><p>In the future, it may simply describe its requirements to an AI-powered development platform.</p><p>Specialised agents could work together to design, develop, test and deploy the required applications.</p><p>As the cost and time required to build software decrease, the barriers to entering the software market also become lower.</p><p>A small team could potentially compete with companies that previously required hundreds of employees.</p><p>This could create an entirely new competitive environment.</p><h3>3. The Third Domino: The SaaS Business Model Faces Pressure</h3><p>The traditional Software-as-a-Service model is built around selling access to predefined software.</p><p>Customers generally pay monthly or annually for applications developed to serve a broad range of businesses.</p><p>However, businesses are not identical.</p><p>A bakery, manufacturing company, hospital, restaurant and logistics business all have different operational requirements.</p><p>Traditional SaaS companies attempt to accommodate these differences through configurations, subscriptions, add-ons and customisation.</p><p>But what if AI could build software around the exact requirements of each business?</p><p>Instead of purchasing a generic inventory management system, a business could create its own inventory application.</p><p>Instead of paying for a standard reporting platform, it could generate dashboards tailored to its operations.</p><p>Instead of purchasing several disconnected applications, it could develop one integrated system.</p><p>This could challenge the pricing power of traditional SaaS companies.</p><p>The question is no longer simply whether a company can build good software.</p><p>It is whether customers will continue paying recurring subscriptions when creating an alternative becomes significantly cheaper.</p><p>Importantly, not every SaaS product is equally vulnerable. Security, integrations, proprietary data, compliance, reliability and customer trust can make established platforms difficult to replace.</p><h3>4. The Fourth Domino: Customers Become Software Creators</h3><p>Perhaps the most interesting transformation is that businesses could become creators of their own software.</p><p>Today, most companies outside the technology industry depend on external software providers.</p><p>They purchase applications, adapt their processes and pay recurring fees.</p><p>Tomorrow, they may have their own AI-powered software development infrastructure.</p><p>Consider a bakery operating 20 outlets.</p><p>It might need:</p><ul><li>Daily sales and inventory management.</li><li>Ingredient consumption tracking.</li><li>Production planning.</li><li>Kitchen preparation-time prediction.</li><li>Outlet-level performance dashboards.</li><li>Employee management.</li><li>Automated variance reporting.</li></ul><p>Instead of purchasing separate products for every requirement, the bakery could instruct an AI software factory to build an integrated operational platform.</p><p>The business would describe its requirements, approve the architecture, provide access to authorised data and allow AI agents to build and maintain the applications.</p><p>This could make software development an ordinary business capability rather than a specialised technology service.</p><p>In this future, businesses may not need to become software companies. They may simply need the ability to create software whenever a problem arises.</p><h3>5. The Fifth Domino: The Rise of AI Software Factories</h3><p>If the cost of developing software continues to decline, a new category of technology companies could emerge.</p><p>These companies may not primarily sell traditional software products.</p><p>Instead, they could operate AI software factories.</p><p>An AI software factory would consist of specialised agents working together:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/1*O0hQy1XbAjx3dXPJBmRupw.png" /></figure><p>A customer might simply say:</p><p>“I need software to manage my business operations, connect my POS system, monitor inventory and generate daily reports.”</p><p>The factory would analyse the requirements, design the application, build it, test it and deploy it.</p><p>Customers could subsequently request changes through natural language.</p><p>For example:</p><p>“Add a new dashboard for outlet managers.”</p><p>“Connect this system with our accounting software.”</p><p>“Send a daily inventory report to management.”</p><p>“Create a mobile application for employees.”</p><p>The software would continuously evolve according to the customer’s needs.</p><p>This represents a possible shift from selling software products to selling software-building capabilities.</p><h3>6. Could Traditional Software Companies Disappear?</h3><p>This is where the domino effect becomes particularly interesting.</p><p>Traditional software companies may face pressure from two directions simultaneously.</p><p><strong>First: Internal disruption.</strong></p><p>AI reduces the number of people required to develop, maintain and support software. Companies may become leaner, reducing their traditional employment structures.</p><p><strong>Second: External disruption.</strong></p><p>AI gives customers and smaller competitors the ability to create alternatives to existing software products.</p><p>Companies could find themselves in a difficult position:</p><p>They need fewer employees to build software, but they may also face customers who are less dependent on purchasing their products.</p><p>This could create several outcomes:</p><ul><li>Some software companies may transform into AI-native businesses.</li><li>Some may shift from subscriptions to usage-based or outcome-based pricing.</li><li>Some may become infrastructure and platform providers.</li><li>Some may be acquired by larger technology companies.</li><li>Some may lose their competitive advantage and eventually disappear.</li></ul><p>However, the end of every traditional software company is unlikely.</p><p>Enterprise platforms, financial infrastructure, cybersecurity, healthcare systems and complex industry-specific applications often involve responsibilities that go far beyond writing code.</p><p>Their future may be different, but their value will not necessarily disappear.</p><h3>7. The Biggest Irony: AI Could Disrupt the Companies Building It</h3><p>There is a fascinating contradiction emerging.</p><p>Software companies are investing heavily in AI to reduce development costs, increase productivity and improve profitability.</p><p>But the same technology could make it easier for customers to build competing applications.</p><p>A company might use AI to reduce its development workforce while simultaneously making its own product category easier to reproduce.</p><p>Imagine a business paying ₹50,000 annually for a collection of software subscriptions.</p><p>If an AI software factory can create a sufficiently reliable alternative for a fraction of that cost, the customer may reconsider those subscriptions.</p><p>The software provider may have successfully reduced its development costs but still lose revenue.</p><p>This is the potential paradox of AI-driven efficiency:</p><p><strong>The technology that makes software companies more efficient could also make their products less difficult to replace.</strong></p><h3>8. What Will Remain Valuable in the AI Software Economy?</h3><p>If writing code becomes increasingly automated, the competitive advantage of software companies will need to evolve.</p><p>The most valuable assets may become:</p><ol><li><strong>Proprietary data:</strong> Unique information that competitors cannot easily reproduce.</li><li><strong>Customer relationships:</strong> Trust, distribution and long-term business relationships.</li><li><strong>Infrastructure:</strong> Reliable databases, hosting, computing and communication systems.</li><li><strong>Security:</strong> Protecting sensitive business information and preventing unauthorised actions.</li><li><strong>Industry expertise:</strong> Understanding complex business processes and regulations.</li><li><strong>Integration capabilities:</strong> Connecting software with existing systems and physical operations.</li><li><strong>Accountability:</strong> Taking responsibility for reliability, security and business outcomes.</li></ol><p>The future software leader may not necessarily be the company with the largest development team.</p><p>It may be the company that can reliably understand a customer’s problem and deliver the best solution at the lowest total cost.</p><h3>9. The Next Five to Ten Years: A Possible Scenario</h3><p>The following is a projection, not a guaranteed timeline.</p><p><strong>2026–2028: AI-assisted development</strong></p><p>AI becomes a standard part of software development. Companies experiment with smaller teams, automated testing and AI coding agents.</p><p><strong>2028–2030: AI-powered software factories</strong></p><p>More companies adopt systems that coordinate multiple agents to build, test and deploy complete applications. Custom software becomes accessible to smaller businesses.</p><p><strong>2030–2033: SaaS business model disruption</strong></p><p>Customers increasingly evaluate whether they should purchase existing applications or build alternatives using AI. Some traditional SaaS providers adapt, while others face increasing competitive pressure.</p><p><strong>2033–2036: Software becomes an on-demand capability</strong></p><p>Businesses may increasingly treat software development as an ongoing operational service rather than a major technology project.</p><p>The distinction between a software buyer and a software creator could become less significant.</p><h3>Conclusion: The Future May Not Be About Selling Software</h3><p>The software industry has spent decades building products that businesses must purchase, configure and adapt to their needs.</p><p>Artificial intelligence could reverse this relationship.</p><p>Instead of businesses adapting themselves to software, software could increasingly adapt itself to businesses.</p><p>The first impact of AI may be visible through workforce reductions and organisational restructuring.</p><p>The next impact could be lower development costs and increased competition.</p><p>The final impact could be a fundamental transformation of the software business model itself.</p><p>Traditional software companies may not disappear entirely, but some of their existing advantages could become obsolete.</p><p>The winners will likely be those that recognise this transformation early and evolve from selling predefined applications to delivering intelligent, adaptable software infrastructure.</p><p>Perhaps the biggest question facing the software industry is no longer:</p><p><em>Who will build the next great software product?</em></p><p>It is:</p><p><strong>What happens when everyone has the ability to build their own software?</strong></p><p>And when that day arrives, will we still need traditional software companies in the way we know them today?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d95ed00313cd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Family Tree of Machine Learning: From Basic Algorithms to XGBoost, Random Forest and Deep…]]></title>
            <link>https://medium.com/@setukms7/the-family-tree-of-machine-learning-from-basic-algorithms-to-xgboost-random-forest-and-deep-8e9c9c8f8242?source=rss-cec511e969fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/8e9c9c8f8242</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Setu Kumar]]></dc:creator>
            <pubDate>Mon, 16 Nov 2026 12:19:29 GMT</pubDate>
            <atom:updated>2026-11-16T12:19:29.155Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Family Tree of Machine Learning: From Basic Algorithms to XGBoost, Random Forest and Deep Learning</h3><p><em>Understanding how modern machine learning algorithms are built, modified, optimized and combined.</em></p><p>Machine Learning has hundreds of algorithms. Every year, new models and techniques emerge, making the field seem increasingly complicated.</p><p>But here is something interesting:</p><p><strong>Many advanced machine learning algorithms are not entirely new inventions. They are extensions, combinations or mathematical improvements of existing algorithms.</strong></p><p>For example:</p><ul><li>Random Forest is built by combining multiple Decision Trees.</li><li>XGBoost is an advanced implementation of Gradient Boosting.</li><li>Ridge and Lasso are extensions of Linear Regression.</li><li>LSTM is an evolution of Recurrent Neural Networks.</li><li>Transformers use attention mechanisms to process sequential information.</li></ul><p>Instead of memorizing hundreds of algorithms individually, understanding their relationships can help us build a much stronger foundation.</p><p>In this article, we will explore the family tree of Machine Learning algorithms, starting with fundamental algorithms and gradually moving towards advanced techniques.</p><h3>1. How Are Machine Learning Algorithms Related?</h3><p>Most machine learning algorithms evolve through a few fundamental approaches.</p><h4>1.1. Combining existing algorithms</h4><p>Multiple models are combined to produce a stronger model.</p><p>Example:</p><p>Decision Tree → Random Forest</p><p>This approach is known as Ensemble Learning.</p><h4>1.2. Improving existing algorithms</h4><p>An existing algorithm is modified to improve accuracy, efficiency or generalization.</p><p>Example:</p><p>Gradient Boosting → XGBoost</p><h4>1.3. Modifying mathematical objectives</h4><p>The original loss function is modified to control model complexity or improve generalization.</p><p>Example:</p><p>Linear Regression → Ridge Regression</p><h4>1.4. Changing optimization techniques</h4><p>The model remains fundamentally the same, but the method used to learn its parameters changes.</p><p>Example:</p><p>Gradient Descent → Stochastic Gradient Descent → Adam</p><h4>1.5. Changing model architecture</h4><p>The underlying architecture is extended to solve more complex problems.</p><p>Example:</p><p>Perceptron → Multilayer Perceptron → Deep Neural Networks</p><p>Understanding these five approaches makes the relationships between algorithms much easier to follow.</p><h3>2. Classification of Machine Learning Algorithms</h3><p>Before exploring individual algorithms, let’s understand the major categories.</p><p>Machine Learning is generally divided into four learning paradigms.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/961/1*4VrqUMzPrNQ2OklqUILKUg.png" /></figure><p>Supervised Learning has two major problem types:</p><ul><li><strong>Regression:</strong> Predicts continuous values, such as revenue, sales or house prices.</li><li><strong>Classification:</strong> Predicts categories, such as fraud/not fraud or spam/not spam.</li></ul><p>Now let’s explore the foundational algorithms.</p><h3>2.1. Supervised Learning: Foundational Algorithms</h3><h4>2.1.1 Linear Regression</h4><p><strong>Purpose:</strong> Predict continuous numerical values.</p><p>Linear Regression is one of the simplest and most important machine learning algorithms.</p><p>It attempts to establish a mathematical relationship between independent variables (features) and a dependent variable (target).</p><p>Its basic equation is:</p><p>y = mx + c</p><p>Where:</p><ul><li>y = Predicted output</li><li>m = Slope</li><li>x = Input feature</li><li>c = Intercept</li></ul><p>For multiple features:</p><p>y = b₀ + b₁x₁ + b₂x₂ + … + bₙxₙ</p><p>The algorithm finds coefficients that minimize prediction error.</p><p>A commonly used loss function is Mean Squared Error:</p><p>MSE = (1/n) Σ(yᵢ — ŷᵢ)²</p><h4>How does it work?</h4><ol><li>Takes input features.</li><li>Initializes model coefficients.</li><li>Calculates predicted output.</li><li>Measures prediction error.</li><li>Optimizes coefficients to minimize error.</li></ol><p><strong>Algorithms derived from or related to Linear Regression</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/961/1*VVvihrW5lpihbY1LREp_0A.png" /></figure><p><strong>Practical applications:</strong></p><ul><li>Sales forecasting</li><li>Price prediction</li><li>Demand forecasting</li><li>Financial modelling</li></ul><h4>2.1.2 Logistic Regression</h4><p><strong>Purpose:</strong> Predict the probability of a class.</p><p>Despite its name, Logistic Regression is primarily a classification algorithm.</p><p>It first calculates a linear combination:</p><p>z = b₀ + b₁x₁ + … + bₙxₙ</p><p>Then applies the sigmoid function:</p><p>σ(z) = 1 / (1 + e⁻ᶻ)</p><p>The output is a probability between 0 and 1.</p><p>For example:</p><ul><li>Probability = 0.90 → likely positive class.</li><li>Probability = 0.15 → likely negative class.</li></ul><p>A threshold converts the probability into a final class prediction.</p><p><strong>Algorithms derived from or related to Linear Regression</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*zVqDcSSGewW1L5aGjOOHvA.png" /></figure><p><strong>Applications: -</strong></p><ul><li>Customer churn prediction</li><li>Fraud detection</li><li>Credit-risk classification</li><li>Customer conversion prediction</li></ul><h4>2.1.3 Decision Tree</h4><p><strong>Purpose:</strong> Make predictions using a sequence of decision rules.</p><p>A Decision Tree divides data into smaller groups using conditions on input features.</p><p>Imagine predicting whether a customer will purchase a product:</p><ul><li>Is the customer a returning customer?</li><li>Is the purchase amount above a particular threshold?</li><li>Is the product discounted?</li></ul><p>Each condition creates a branch.</p><p>Important splitting techniques include:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/967/1*SFJogjaLtqd07HpQevuVUA.png" /></figure><p><strong>Algorithms derived from Decision Trees</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*AvcWOae_GS9zQFDVhB0oeg.png" /></figure><p><strong>Applications:-</strong></p><ul><li>Loan approval</li><li>Customer segmentation</li><li>Risk analysis</li><li>Business decision systems.</li></ul><h4>2.1.4 K-Nearest Neighbors (KNN)</h4><p><strong>Purpose:</strong> Predict using nearby observations.</p><p>KNN assumes that similar data points are likely to have similar outputs.</p><p>It calculates the distance between a new observation and training observations.</p><p>A commonly used distance metric is Euclidean Distance:</p><p>d(x,y) = √Σ(xᵢ — yᵢ)²</p><p><strong>How does it work?</strong></p><ol><li>Select the number of neighbors K.</li><li>Calculate distances to training observations.</li><li>Select the nearest K observations.</li><li>Classification: Use majority voting.</li><li>Regression: Calculate an average or weighted average.</li></ol><h4>Related variations</h4><ul><li>Weighted KNN: Gives closer neighbors greater importance.</li><li>Radius Neighbors: Uses observations within a specified radius.</li><li>KNN with different distance metrics: Changes how similarity is measured.</li></ul><p>KNN is known as a <strong>lazy learning algorithm</strong> because it does not build a conventional fitted model during training.</p><p><strong>Applications:-</strong></p><ul><li>Similarity search</li><li>Recommendation systems</li><li>Pattern recognition</li></ul><h4>2.1.5 Naive Bayes</h4><p><strong>Purpose:</strong> Classify observations using probability.</p><p>Naive Bayes is based on Bayes’ theorem:</p><p>P(A|B) = P(B|A)P(A) / P(B)</p><p>It assumes that features are conditionally independent given the class.</p><p>For example, in spam detection, it calculates how likely an email is to be spam based on the words it contains.</p><p><strong>Types of Naive Bayes</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/937/1*fBHoLlz5qY810Lv4tbvH0g.png" /></figure><p><strong>Applications:-</strong></p><ul><li>Spam detection</li><li>Sentiment analysis</li><li>Document classification</li></ul><h4>2.1.6 Support Vector Machine (SVM)</h4><p><strong>Purpose:</strong> Find a decision boundary that maximizes the margin between classes.</p><p>SVM attempts to find an optimal hyperplane separating different classes.</p><p>Important concepts include:</p><ul><li>Hyperplane</li><li>Margin</li><li>Support vectors</li><li>Kernel trick</li></ul><p><strong>Related algorithms</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*0jTRwGhMvvQr-XjIqv0VSQ.png" /></figure><p><strong>Applications:-</strong></p><ul><li>Text classification</li><li>Image classification</li><li>Handwriting recognition</li><li>Bioinformatics</li></ul><h4>2.1.7 Perceptron</h4><p><strong>Purpose:</strong> Learn a linear decision boundary.</p><p>The Perceptron is one of the earliest artificial neural network models.</p><p>It calculates a weighted sum:</p><p>z = Σ(wᵢxᵢ) + b</p><p>An activation function determines the predicted class.</p><p>If the prediction is incorrect, the weights are updated.</p><p>The important evolution is:</p><p>Perceptron → Multilayer Perceptron → Deep Neural Networks.</p><p>A single-layer Perceptron cannot solve non-linearly separable problems such as XOR.</p><h4>2.1.8 Linear Discriminant Analysis (LDA)</h4><p><strong>Purpose:</strong> Find projections that separate classes effectively.</p><p>LDA attempts to maximize the separation between class means while minimizing variation within each class.</p><p>Its objective is:</p><p>J(w) = (wᵀSᴮw) / (wᵀSᵂw)</p><p>Where:</p><ul><li>Sᴮ = Between-class scatter.</li><li>Sᵂ = Within-class scatter.</li></ul><p>Related algorithms:</p><ul><li>Quadratic Discriminant Analysis (QDA).</li><li>Regularized LDA.</li></ul><p>LDA is also used for supervised dimensionality reduction.</p><h4>2.1.9 Quadratic Discriminant Analysis (QDA)</h4><p>QDA is closely related to LDA.</p><p>The major difference is its covariance assumption.</p><ul><li>LDA assumes a shared covariance matrix across classes.</li><li>QDA allows each class to have its own covariance matrix.</li></ul><p>This makes QDA more flexible but can require more training data.</p><h3>2.2. Unsupervised Learning: Foundational Algorithms</h3><p>Unlike supervised learning, unsupervised learning does not require labeled output.</p><p>Its purpose is to discover hidden patterns and structures in data.</p><h4>2.2.1 K-Means Clustering</h4><p><strong>Purpose:</strong> Divide observations into K clusters based on similarity.</p><p>K-Means attempts to group observations so that points within the same cluster are close to their cluster centroid.</p><p>Its objective function is:</p><p>J = Σₖ Σₓᵢ∈Cₖ ||xᵢ — μₖ||²</p><p>Where:</p><ul><li>K = Number of clusters.</li><li>Cₖ = Cluster containing observations.</li><li>μₖ = Cluster centroid.</li></ul><p><strong>How does it work?</strong></p><ol><li>Select the number of clusters K.</li><li>Initialize K centroids.</li><li>Assign each observation to its nearest centroid.</li><li>Recalculate centroids.</li><li>Repeat until assignments or centroids stabilize.</li></ol><p><strong>Related algorithms</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*9aZ_lWSbhxyarsI-0BY6-A.png" /></figure><p><strong>Applications:-</strong></p><ul><li>Customer segmentation</li><li>Outlet segmentation</li><li>Product grouping</li><li>Inventory analysis</li></ul><h4>2.2.2 Hierarchical Clustering</h4><p><strong>Purpose:</strong> Create a hierarchy of clusters.</p><p>Two main approaches:</p><ul><li>Agglomerative: Starts with individual observations and combines them.</li><li>Divisive: Starts with one cluster and repeatedly splits it.</li></ul><p>Important linkage techniques:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/965/1*uIv19RkNN_s5jqtasM39RA.png" /></figure><h4>2.2.3 DBSCAN</h4><p><strong>Purpose:</strong> Find clusters based on the density of observations.</p><p>DBSCAN stands for Density-Based Spatial Clustering of Applications with Noise.</p><p>It uses two important parameters:</p><ul><li>Epsilon: Neighborhood radius.</li><li>MinPts: Minimum number of points required to form a dense region.</li></ul><p>It identifies:</p><ul><li>Core points.</li><li>Border points.</li><li>Noise points.</li></ul><p>Related algorithms:</p><ul><li>HDBSCAN.</li><li>OPTICS.</li></ul><p><strong>Applications:-</strong></p><ul><li>Geographic clustering</li><li>Anomaly detection</li><li>Location-based analysis.</li></ul><h4>2.2.4 Gaussian Mixture Model (GMM)</h4><p><strong>Purpose:</strong> Model data as a combination of multiple Gaussian distributions.</p><p>Unlike K-Means, which assigns an observation to one cluster, GMM calculates the probability that an observation belongs to each cluster.</p><p>For example:</p><ul><li>70% probability of Cluster A.</li><li>25% probability of Cluster B.</li><li>5% probability of Cluster C.</li></ul><p>GMM commonly uses the Expectation-Maximization algorithm.</p><p>Related algorithms:</p><ul><li>Bayesian Gaussian Mixture.</li><li>Variational Bayesian Gaussian Mixture.</li></ul><h4>2.2.5 Principal Component Analysis (PCA)</h4><p><strong>Purpose:</strong> Reduce the number of features while retaining as much variance as possible.</p><p>Suppose a dataset has 100 features. PCA can transform these into a smaller number of components, perhaps 10, while preserving much of the original information.</p><p>PCA finds directions of maximum variance in the data.</p><p><strong>How does it work?</strong></p><ol><li>Standardize the data when appropriate.</li><li>Calculate the covariance matrix or use Singular Value Decomposition.</li><li>Calculate eigenvalues and eigenvectors.</li><li>Rank components by explained variance.</li><li>Select the desired components.</li><li>Transform the original data.</li></ol><p><strong>Related algorithms</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/965/1*2E2jUQUmgyMN7RdyMAjwRQ.png" /></figure><p><strong>Applications:-</strong></p><ul><li>Data compression</li><li>Visualization</li><li>Noise reduction</li><li>Preprocessing</li></ul><h4>2.2.6 Independent Component Analysis (ICA)</h4><p><strong>Purpose:</strong> Separate mixed signals into statistically independent components.</p><p>Imagine two people speaking simultaneously in a room. Multiple microphones record a mixture of their voices.</p><p>ICA attempts to separate the original independent sources.</p><p>Related methods:</p><ul><li>FastICA.</li><li>Infomax ICA.</li><li>JADE.</li></ul><p><strong>Applications:-</strong></p><ul><li>Audio processing</li><li>EEG analysis</li><li>Signal separation.</li></ul><h4>2.2.7 Apriori Algorithm</h4><p><strong>Purpose:</strong> Find frequently occurring combinations of items.</p><p>Suppose customers frequently purchase bread and butter together.</p><p>Apriori identifies such relationships using:</p><ul><li>Support.</li><li>Confidence.</li><li>Lift.</li></ul><p>Support(A) = Transactions containing A / Total transactions</p><p>Confidence(A → B) = Support(A ∪ B) / Support(A)</p><p>Lift(A → B) = Confidence(A → B) / Support(B)</p><p>Related algorithms:</p><ul><li>FP-Growth.</li><li>Eclat.</li></ul><p><strong>Applications:-</strong></p><ul><li>Retail product combinations</li><li>Cross-selling</li><li>Menu recommendations.</li></ul><h3>3. Neural Network Foundations</h3><p>Now that we have covered the traditional supervised and unsupervised algorithms, let’s introduce another important family: <strong>Artificial Neural Networks</strong>.</p><p>This is where many learners become confused.</p><p>Neural Networks are not a separate learning paradigm. They are models inspired by the way biological neurons process information.</p><p>They can be trained using different learning approaches, including supervised and unsupervised learning.</p><p>To understand Deep Learning, we first need to understand how a basic neural network works.</p><h4>3.1 Artificial Neuron</h4><p>An artificial neuron takes input values, multiplies them by weights, adds a bias and applies an activation function.</p><p>Its mathematical representation is:</p><p>(z=w_1x_1+w_2x_2+\cdots+w_nx_n+b)</p><p>The output is:</p><p>(a=f(z))</p><p>Where:</p><ul><li>x = Input features.</li><li>w = Weights.</li><li>b = Bias.</li><li>f = Activation function.</li><li>a = Neuron output.</li></ul><p>The activation function introduces nonlinearity into the network.</p><p>Common activation functions include:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/1*7xcAeYLqsoh5oG4gw6h_Xg.png" /></figure><h4>3.2 Perceptron</h4><p><strong>Purpose:</strong> Learn a linear decision boundary.</p><p>The Perceptron is one of the earliest artificial neural network models.</p><p>It calculates a weighted sum and uses an activation function to predict a class.</p><p>If the prediction is incorrect, the weights are updated.</p><p>A single-layer Perceptron cannot solve non-linearly separable problems such as XOR.</p><p>This limitation led to the development of networks with multiple layers.</p><h4>3.3 Multilayer Perceptron (MLP)</h4><p><strong>Purpose:</strong> Learn nonlinear relationships between inputs and outputs.</p><p>MLP extends the single-layer Perceptron by adding hidden layers.</p><p>Its architecture contains:</p><ol><li>Input layer.</li><li>One or more hidden layers.</li><li>Output layer.</li></ol><p>An MLP learns by adjusting weights and biases.</p><p><strong>How does an MLP learn?</strong></p><p>Two important processes are involved:</p><p><strong>Forward Propagation:</strong> Information moves from the input layer through hidden layers to generate a prediction.</p><p><strong>Backpropagation:</strong> The model calculates how much each parameter contributed to the prediction error and computes gradients.</p><p>An optimizer then uses these gradients to update the weights.</p><p>This process repeats over multiple training iterations.</p><p><strong>Important distinction</strong></p><p>Backpropagation and Gradient Descent are not the same:</p><ul><li>Backpropagation calculates gradients.</li><li>Gradient Descent or another optimizer uses those gradients to update parameters.</li></ul><p>MLP is the foundation for understanding deeper neural network architectures.</p><h4>3.4 Radial Basis Function Network (RBFN)</h4><p>RBFN learns nonlinear relationships using radial basis functions.</p><p>A common Gaussian radial basis function is:</p><p>(\phi(x)=\exp\left(-\frac{||x-c||²}{2\sigma²}\right))</p><p>Where:</p><ul><li>c = Center.</li><li>σ = Controls the spread.</li></ul><p>Its architecture typically contains an input layer, radial basis hidden layer and output layer.</p><p><strong>Applications:</strong> Function approximation, forecasting and pattern recognition.</p><h3>4. Deep Learning: Advanced Neural Network Architectures</h3><p>Deep Learning is a subfield of <strong>Machine Learning</strong> that uses neural networks with multiple layers.</p><p>The key difference is that deep neural networks can learn increasingly complex representations from data through multiple processing layers.</p><p>Different architectures are designed for different types of data.</p><h4>4.1 Convolutional Neural Network (CNN)</h4><p><strong>Foundation:</strong> Neural Networks.</p><p>CNNs use convolutional filters to identify spatial features in images.</p><p>They can learn:</p><ul><li>Edges.</li><li>Shapes.</li><li>Textures.</li><li>Complex objects.</li></ul><p>Important components:</p><ol><li>Convolution layer.</li><li>Activation function.</li><li>Pooling layer.</li><li>Fully connected layer.</li></ol><p><strong>Related architectures</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/956/1*-aPUvh3x3u7b1hmel-TTWw.png" /></figure><p><strong>Applications:-</strong></p><ul><li>Image classification</li><li>Medical imaging</li><li>Object detection</li></ul><h4>4.2 Recurrent Neural Network (RNN)</h4><p><strong>Foundation:</strong> Neural Networks.</p><p>RNNs process sequential data by carrying information from previous time steps to subsequent time steps.</p><p>For example, when processing a sentence, the model uses information from earlier words while processing later words.</p><p>Applications:</p><ul><li>Time-series forecasting.</li><li>Language modelling.</li><li>Sequential pattern recognition.</li></ul><p>Traditional RNNs can struggle with long-term dependencies because of vanishing and exploding gradients.</p><p>This limitation led to more advanced recurrent architectures.</p><h4>4.3 Long Short-Term Memory (LSTM)</h4><p><strong>Foundation:</strong> Recurrent Neural Networks.</p><p>LSTM introduces a memory cell and three main gates:</p><ul><li>Forget gate.</li><li>Input gate.</li><li>Output gate.</li></ul><p>These gates control what information is removed, stored and passed forward.</p><p><strong>Applications:-</strong></p><ul><li>Time-series forecasting</li><li>Speech recognition</li><li>Language processing.</li></ul><h4>4.4 Gated Recurrent Unit (GRU)</h4><p><strong>Foundation:</strong> Recurrent Neural Networks.</p><p>GRU uses a simpler gated architecture with two primary gates:</p><ul><li>Reset gate.</li><li>Update gate.</li></ul><p>It can be computationally simpler than LSTM, although neither is universally superior.</p><h4>4.5 Transformer</h4><p><strong>Foundation:</strong> Neural Networks and Attention Mechanisms.</p><p>Transformers use attention mechanisms rather than conventional recurrent connections to process sequences.</p><p>The attention mechanism allows the model to determine which parts of the input are most relevant when processing a particular element.</p><p>Important components:</p><ul><li>Self-attention</li><li>Multi-head attention.</li><li>Positional information.</li><li>Feed-forward networks.</li><li>Residual connections.</li><li>Layer normalization.</li></ul><p><strong>Related architectures</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*WtbmlXv5JZ-Xikt81HZPMw.png" /></figure><p><strong>Applications:-</strong></p><ul><li>Generative AI</li><li>Translation</li><li>Text generation</li><li>Computer vision</li><li>Speech processing</li></ul><h3>5. Ensemble Learning: Combining Multiple Algorithms</h3><p>So far, we have studied <strong>individual algorithms</strong> and <strong>model architectures.</strong></p><p>Now let’s understand how multiple models can be combined to produce a stronger model.</p><p>This approach is called <strong>Ensemble Learning</strong>.</p><p>Ensemble Learning is not a separate learning paradigm. It is a strategy for combining predictions from multiple models.</p><p>There are four major approaches:</p><ol><li>Bagging.</li><li>Boosting.</li><li>Stacking.</li><li>Voting.</li></ol><h4>5.1 Bagging — Bootstrap Aggregating</h4><p><strong>Purpose:</strong> Reduce variance and improve model stability.</p><p>Bagging trains multiple versions of a model using different bootstrap samples of the training dataset.</p><p><strong>How does it work?</strong></p><ol><li>Start with the original training dataset.</li><li>Create multiple bootstrap samples using sampling with replacement.</li><li>Train a separate model on each sample.</li><li>Combine their predictions.</li></ol><p>For classification, majority voting is commonly used.</p><p>For regression, predictions are commonly averaged.</p><p><strong>Algorithms using Bagging</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*G8yJg22METCNArZ4hpLP7g.png" /></figure><h4>Random Forest</h4><p>Random Forest is one of the most popular ensemble algorithms.</p><p>It combines multiple Decision Trees.</p><p>Unlike ordinary bagging of trees, Random Forest also introduces randomness in feature selection when searching for splits.</p><p>Benefits:</p><ul><li>Reduces variance compared with a single unrestricted tree in many situations.</li><li>Captures nonlinear relationships.</li><li>Handles feature interactions.</li><li>Supports classification and regression.</li></ul><h4>Extra Trees</h4><p>Extra Trees introduces additional randomness into split selection.</p><p>It generally selects split thresholds more randomly than Random Forest.</p><p>It can reduce variance and be computationally efficient, depending on the dataset.</p><h4>5.2 Boosting</h4><p><strong>Purpose:</strong> Combine weak learners into a stronger predictive model.</p><p>Boosting builds models sequentially. Each new learner is trained to improve the existing ensemble.</p><p>Unlike Bagging, where models are generally trained independently, Boosting uses information from previous learners.</p><p><strong>A. AdaBoost</strong></p><p><strong>Foundation:</strong> Weak learners, commonly Decision Stumps.</p><p>AdaBoost stands for Adaptive Boosting.</p><p>It gives greater importance to observations that previous learners classified incorrectly.</p><p>How does it work?</p><ol><li>Assign equal weights to training observations.</li><li>Train a weak learner.</li><li>Calculate its weighted error.</li><li>Increase weights for incorrectly classified observations.</li><li>Train the next learner.</li><li>Combine learners using weighted predictions.</li></ol><p><strong>B. Gradient Boosting</strong></p><p><strong>Foundation:</strong> Usually shallow Decision Trees.</p><p>Gradient Boosting builds a model sequentially by fitting new learners to the negative gradients of a chosen loss function.</p><p>For squared-error regression, this is closely related to fitting residuals.</p><p>A simplified representation:</p><p>(F_m(x)=F_{m-1}(x)+\eta h_m(x))</p><p>Where:</p><ul><li>(F_m(x)) = Updated model.</li><li>(h_m(x)) = New learner.</li><li>η = Learning rate.</li></ul><p>How does it work?</p><ol><li>Build an initial prediction.</li><li>Calculate the loss.</li><li>Calculate negative gradients.</li><li>Fit a new weak learner to those gradients.</li><li>Add its contribution to the existing model.</li><li>Repeat.</li></ol><p><strong>C. XGBoost</strong></p><p><strong>Full name:</strong> Extreme Gradient Boosting.</p><p><strong>Foundation:</strong> Gradient Boosted Decision Trees.</p><p>XGBoost improves conventional gradient boosting through several mathematical and engineering enhancements.</p><p>Important features:</p><ul><li>Regularization.</li><li>Efficient split finding.</li><li>Second-order gradient information.</li><li>Missing-value handling.</li><li>Parallelized computation where applicable.</li><li>Tree pruning and shrinkage.</li></ul><p>Its simplified objective is:</p><p>(Objective = Prediction\ Loss + Model\ Complexity\ Penalty)</p><p>This helps balance prediction accuracy and model complexity.</p><p><strong>D. LightGBM</strong></p><p><strong>Full name:</strong> Light Gradient Boosting Machine.</p><p><strong>Foundation:</strong> Gradient Boosted Decision Trees.</p><p>LightGBM uses histogram-based learning and leaf-wise tree growth with constraints.</p><p>Important features:</p><ul><li>Efficient training on large datasets.</li><li>Histogram-based split finding.</li><li>Leaf-wise tree growth.</li><li>Categorical feature support.</li></ul><p><strong>E. CatBoost</strong></p><p><strong>Full name:</strong> Categorical Boosting.</p><p><strong>Foundation:</strong> Gradient Boosted Decision Trees.</p><p>CatBoost is designed to work particularly well with categorical features.</p><p>Important features:</p><ul><li>Ordered boosting.</li><li>Categorical feature processing.</li><li>Techniques designed to reduce prediction shift and target leakage.</li><li>Symmetric trees by default.</li></ul><h4>Comparing popular boosting frameworks</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*K248wC2E2i2lMCKJZ2e9Cg.png" /></figure><p>There is no universally best algorithm. Performance depends on data, features, tuning and evaluation methodology.</p><h4>5.3 Stacking</h4><p><strong>Purpose:</strong> Combine different types of models using another model.</p><p>Suppose we train:</p><ul><li>Linear Regression.</li><li>Decision Tree.</li><li>KNN.</li></ul><p>All three produce predictions.</p><p>We then provide these predictions to a second-level model called the Meta Learner.</p><p>The Meta Learner learns how to combine them.</p><p><strong>Structure:</strong></p><p>Base Models → Meta Learner → Final Prediction</p><p>The Meta Learner might itself be Linear Regression or Logistic Regression.</p><p>Cross-validation and out-of-fold predictions are important to prevent data leakage.</p><h4>5.4 Voting Ensemble</h4><p><strong>Purpose:</strong> Combine predictions from multiple models.</p><p>Two major types:</p><p><strong>Hard Voting:</strong> Each model predicts a class, and the majority class wins.</p><p><strong>Soft Voting:</strong> Each model predicts class probabilities, which are averaged or weighted before choosing the final class.</p><p>Example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*Fh8ZrZcnQ5mnDQJlw3L-qw.png" /></figure><p>The final hard-voting prediction is Fraud.</p><h3>6. Optimization Algorithms: How Machine Learning Models Learn</h3><p>An important distinction:</p><p><strong>A predictive algorithm and an optimization algorithm are not the same thing.</strong></p><p>A predictive algorithm defines what the model learns. An optimizer determines how its parameters are adjusted during training.</p><p>For example, Linear Regression can be trained using a closed-form solution or Gradient Descent. Neural networks commonly use backpropagation to calculate gradients and an optimizer to update weights.</p><h4>6.1 Batch Gradient Descent</h4><p>Uses the entire training dataset to calculate the gradient before updating parameters.</p><p>(\theta_{new}=\theta_{old}-\alpha\nabla J(\theta))</p><p>Advantages:</p><ul><li>Stable gradient estimates.</li><li>Straightforward implementation.</li></ul><p>Disadvantages:</p><ul><li>Computationally expensive for large datasets.</li><li>One update per complete dataset pass.</li></ul><h4>6.2 Stochastic Gradient Descent (SGD)</h4><p>Uses one observation at a time to update model parameters.</p><p>Advantages:</p><ul><li>Fast individual updates.</li><li>Useful for large datasets.</li><li>Supports online learning.</li></ul><p>Disadvantages:</p><ul><li>Noisier optimization path.</li><li>Updates can fluctuate.</li></ul><h4>6.3 Mini-Batch Gradient Descent</h4><p>Combines the advantages of Batch GD and SGD.</p><p>It calculates gradients using a small subset of training data.</p><p>For example, with 10,000 observations and a batch size of 100, it processes 100 batches per epoch.</p><p>This is widely used in neural network training.</p><h4>6.4 Momentum</h4><p>Uses information from previous gradients to smooth updates.</p><p>It helps reduce oscillations and can accelerate convergence.</p><h4>6.5 Nesterov Accelerated Gradient</h4><p>Improves Momentum using a look-ahead gradient.</p><p>It evaluates the gradient at an anticipated position rather than only at the current position.</p><h4>6.6 AdaGrad</h4><p>Automatically adapts the learning rate for each parameter.</p><p>It is useful for sparse features but can make learning rates excessively small over time.</p><h4>6.7 RMSProp</h4><p>Improves AdaGrad’s learning-rate behavior by using an exponentially weighted moving average of squared gradients.</p><h4>6.8 Adam</h4><p>Adaptive Moment Estimation combines Momentum and adaptive learning rates.</p><p>It maintains:</p><ul><li>First moment: Moving average of gradients.</li><li>Second moment: Moving average of squared gradients.</li></ul><p>Adam is widely used for training deep neural networks.</p><h4>6.9 AdamW</h4><p>AdamW separates weight decay from Adam’s adaptive gradient update.</p><p>It is particularly common in modern deep learning.</p><h4>6.10 Newton’s Method</h4><p>Uses second-order derivatives to optimize model parameters.</p><p>Unlike standard Gradient Descent, it also considers curvature information.</p><h4>6.11 L-BFGS</h4><p>Limited-memory Broyden–Fletcher–Goldfarb–Shanno is a quasi-Newton optimization algorithm.</p><p>It approximates second-order information without explicitly storing the full Hessian matrix.</p><h3>7. Regularization: Controlling Overfitting</h3><p>Regularization modifies the learning objective to discourage unnecessarily complex models.</p><p>It is especially important when models have many features or limited training data.</p><h4>7.1 Ridge Regression (L2)</h4><p>Adds a penalty based on the squared magnitude of coefficients.</p><p>(J(\beta)=MSE+\lambda\sum_j\beta_j²)</p><p>Effect:</p><ul><li>Shrinks coefficients.</li><li>Reduces model complexity.</li><li>Usually does not make coefficients exactly zero.</li></ul><h4>7.2 Lasso Regression (L1)</h4><p>Adds a penalty based on the absolute magnitude of coefficients.</p><p>(J(\beta)=MSE+\lambda\sum_j|\beta_j|)</p><p>Effect:</p><ul><li>Shrinks coefficients.</li><li>Can make some coefficients exactly zero.</li><li>Performs feature selection.</li></ul><h4>7.3 Elastic Net</h4><p>Combines L1 and L2 penalties.</p><p>It combines the feature-selection capability of Lasso with the coefficient-shrinking behavior of Ridge.</p><h4>7.4 Dropout</h4><p>During neural network training, Dropout randomly disables a fraction of neurons.</p><p>This prevents the network from relying excessively on particular neurons and can improve generalization.</p><h4>7.5 Early Stopping</h4><p>Training stops when validation performance stops improving.</p><p>This helps prevent overfitting during iterative training.</p><h3>8. Other Important Machine Learning Families</h3><p>Some important algorithms do not fit neatly into the previous model families.</p><h4>8.1 Reinforcement Learning</h4><p><strong>Purpose:</strong> Learn actions through interaction with an environment and feedback in the form of rewards.</p><p>Unlike supervised learning, reinforcement learning does not normally receive the correct answer for every observation. Instead, an agent learns which actions produce better long-term rewards.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/952/1*-rmBY3eAxntq5XetsljDGg.png" /></figure><h4>8.2 Semi-Supervised Learning</h4><p><strong>Purpose:</strong> Learn from a combination of labeled and unlabeled data.</p><p>It is useful when obtaining labeled data is expensive or time-consuming.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*qeGaY4zilQ7-QxzXR630pw.png" /></figure><h4>8.3 Anomaly Detection</h4><p><strong>Purpose:</strong> Identify observations that differ significantly from normal patterns.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*CS_Xg2ZCMcnuThgceo2jnQ.png" /></figure><h4>8.4 Probabilistic and Sequential Modelling</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/953/1*ryeRD9-9a9qDVOHg2oLYdQ.png" /></figure><h4>8.5 Recommendation and Interaction Modelling</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*eYIxkvrJyDxaDCqbuO5Tig.png" /></figure><h4>8.6 Time-Series Forecasting</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/956/1*NRgc0UpCs5h6FiGTERxqpw.png" /></figure><h3>9. The Complete Machine Learning Algorithm Family Tree</h3><p>Now let’s connect the important algorithms we have studied.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*kMiNq6o6Ov4ctiM8MY1QjA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*yYEpsgP1qhaJPcMAJLzMfw.png" /></figure><p>This is a conceptual relationship map, not a strict inheritance tree. Some algorithms are variations, architectures, optimization methods or combinations rather than direct descendants.</p><h3>10. Which Algorithms Are Most Important in Industry?</h3><p>Knowing every algorithm is not necessary. Understanding which algorithms are useful for which business problems is more important.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*ZTncgPG3gL1xLgCe-_us-w.png" /></figure><h3>11. Recommended Learning Roadmap</h3><p>If you want to understand how algorithms evolve, study them in this order.</p><p><strong>Stage 1 — Mathematical Foundations</strong></p><p>Linear Algebra, Statistics, Probability, Calculus and Loss Functions.</p><p><strong>Stage 2 — Regression Models</strong></p><p>Linear Regression → Polynomial Regression → Ridge → Lasso → Elastic Net.</p><p><strong>Stage 3 — Optimization Fundamentals</strong></p><p>Batch GD → SGD → Mini-Batch GD → Momentum → RMSProp → Adam.</p><p><strong>Stage 4 — Classification</strong></p><p>Logistic Regression → Naive Bayes → KNN → SVM → LDA → QDA.</p><p><strong>Stage 5 — Tree-Based Learning</strong></p><p>Decision Tree → Bagging → Random Forest → Extra Trees.</p><p><strong>Stage 6 — Boosting</strong></p><p>AdaBoost → Gradient Boosting → XGBoost → LightGBM → CatBoost.</p><p><strong>Stage 7 — Unsupervised Learning</strong></p><p>K-Means → Hierarchical Clustering → DBSCAN → GMM → PCA → ICA → Apriori.</p><p><strong>Stage 8 — Neural Network Foundations</strong></p><p>Artificial Neuron → Perceptron → MLP → Forward Propagation → Backpropagation.</p><p><strong>Stage 9 — Deep Learning</strong></p><p>CNN → RNN → LSTM → GRU → Transformers.</p><p><strong>Stage 10 — Specialized Learning</strong></p><p>Semi-Supervised Learning, Reinforcement Learning, Anomaly Detection and Time-Series Modelling.</p><h3>Conclusion: Stop Memorizing Algorithms, Start Understanding Their Evolution</h3><p>The most important lesson in Machine Learning is that advanced algorithms often evolve from existing mathematical and computational ideas.</p><p>Consider these examples:</p><ul><li>Decision Tree + Bagging = Random Forest.</li><li>Decision Tree + Boosting = Gradient Boosting and its advanced implementations.</li><li>Linear Regression + L2 Penalty = Ridge Regression.</li><li>Linear Regression + L1 Penalty = Lasso Regression.</li><li>Perceptron + Multiple Layers = Multilayer Perceptron.</li><li>Recurrent Neural Network + Gated Memory = LSTM.</li></ul><p>Also remember the difference between the major concepts:</p><ul><li><strong>Learning paradigms</strong> explain how a model learns.</li><li><strong>Algorithms and model architectures</strong> explain how predictions or representations are produced.</li><li><strong>Ensemble methods</strong> combine multiple models.</li><li><strong>Optimization algorithms</strong> determine how parameters are updated.</li><li><strong>Regularization techniques</strong> help control model complexity.</li><li><strong>Deep Learning</strong> uses neural networks with multiple layers.</li></ul><p>Once these distinctions are clear, the Machine Learning landscape becomes much easier to understand.</p><p>Instead of asking, “What is XGBoost?”, start asking:</p><p><strong>“What problem did conventional Gradient Boosting have, and what did XGBoost change to improve it?”</strong></p><p>That question shifts your learning from memorizing algorithms to understanding Machine Learning itself.</p><p>And that is the difference between knowing the names of algorithms and actually understanding how Machine Learning works.</p><h3>Further Reading</h3><ol><li><a href="https://scikit-learn.org/stable/supervised_learning.html">Scikit-learn — Supervised Learning</a></li><li><a href="https://scikit-learn.org/stable/unsupervised_learning.html">Scikit-learn — Unsupervised Learning</a></li><li><a href="https://xgboost.readthedocs.io/">XGBoost Documentation</a></li><li><a href="https://lightgbm.readthedocs.io/">LightGBM Documentation</a></li><li><a href="https://catboost.ai/docs/">CatBoost Documentation</a></li><li><a href="https://www.tensorflow.org/guide/keras">TensorFlow / Keras Guide</a></li></ol><p><em>This article covers the major foundational algorithms and their important descendants. It is intended as a conceptual learning guide rather than an exhaustive mathematical reference.</em></p><p>#MachineLearning #ArtificialIntelligence #DataScience #Python #DeepLearning #XGBoost #RandomForest #GradientBoosting #DataAnalytics</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8e9c9c8f8242" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beyond LLMs: Why the Future of AI Needs More Than ChatGPT and Gemini]]></title>
            <link>https://medium.com/@setukms7/beyond-llms-why-the-future-of-ai-needs-more-than-chatgpt-and-gemini-7213bf98f0cb?source=rss-cec511e969fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/7213bf98f0cb</guid>
            <category><![CDATA[causal-ai]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[explainable-ai]]></category>
            <category><![CDATA[optimization]]></category>
            <category><![CDATA[machine-learning-ai]]></category>
            <dc:creator><![CDATA[Setu Kumar]]></dc:creator>
            <pubDate>Sun, 15 Nov 2026 09:42:14 GMT</pubDate>
            <atom:updated>2026-11-15T09:42:14.335Z</atom:updated>
            <content:encoded><![CDATA[<h3>Are We Focusing Too Much on Generative AI and Too Little on Understanding Why?</h3><p>Over the last few years, Artificial Intelligence has become one of the most discussed technologies in the world. ChatGPT, Google Gemini and Anthropic’s Claude have changed how people interact with technology.</p><p>Businesses are investing heavily in Large Language Models (LLMs), AI agents, chatbots and generative AI applications.</p><p>But there is another important question we should be asking:</p><p><strong>Are we focusing too much on generating answers and not enough on understanding why things happen?</strong></p><p>This question leads us towards an equally fascinating area of AI: Machine Learning, Causal AI and Explainable AI.</p><h3>1. LLMs Are Powerful, But They Are Not the Whole of AI</h3><p>Large Language Models are designed to understand and generate language. They predict the next token based on context and patterns learned during training.</p><p>They can:</p><ul><li>Generate human-like text.</li><li>Write and explain code.</li><li>Summarize large documents.</li><li>Answer questions.</li><li>Assist with complex workflows.</li></ul><p>However, predicting an answer and discovering the underlying cause of an event are two different problems.</p><p>For example, imagine a manufacturing company experiencing an increase in defective products.</p><p>An LLM might explain possible reasons based on general knowledge.</p><p>But what if the company wants to investigate its own historical production data and determine which factors actually contribute to defects?</p><p>That requires more than language generation.</p><p>It requires data analysis, statistical modelling, causal inference and domain knowledge.</p><h3>2. Prediction Is Not the Same as Understanding Why</h3><p>Consider a company that collects production data:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/1*x5i-LIl5fqtP_t4KYjTB0Q.png" /></figure><p>Different AI techniques can answer different questions.</p><p><strong>Predictive Machine Learning</strong></p><p>What will the defect rate be under a given set of conditions?</p><p><strong>Explainable AI</strong></p><p>Which input variables contributed to the model’s prediction?</p><p><strong>Causal AI</strong></p><p>Does changing temperature actually cause a change in the defect rate?</p><p><strong>Optimization</strong></p><p>What operating conditions can reduce defects while maintaining production efficiency?</p><p>These are different capabilities, and businesses increasingly need all of them.</p><p>Importantly, a relationship between two variables does not automatically establish causation. Proper causal analysis requires assumptions, suitable data and, where possible, controlled experiments.</p><h3>3. The Opportunity in Causal AI and Explainable AI</h3><p>Two particularly interesting research areas deserve more attention.</p><h3>Explainable AI (XAI)</h3><p>Explainable AI focuses on understanding how machine learning models arrive at their predictions.</p><p>For example:</p><ul><li>Which variables influenced a prediction?</li><li>Why did a particular transaction receive a high fraud-risk score?</li><li>Which features contributed most to customer churn?</li><li>Why did a model classify a product as defective?</li></ul><p>Technologies such as SHAP and Interpret ML help investigate these questions.</p><h3>Causal AI</h3><p>Causal AI goes further by investigating cause-and-effect relationships.</p><p>It explores questions such as:</p><ul><li>Does increasing temperature cause more defects?</li><li>Does a discount actually increase customer retention?</li><li>Does a particular business intervention improve profitability?</li><li>What would happen if we changed a specific input variable?</li></ul><p>Some useful tools and frameworks include:</p><ul><li>DoWhy</li><li>EconML</li><li>Causica</li><li>Causal discovery algorithms</li><li>Counterfactual modelling</li></ul><p>These technologies provide a foundation for building systems that investigate relationships rather than simply producing predictions.</p><h3>4. Imagine a Different Kind of AI System</h3><p>What if a company could upload its historical data and ask:</p><ul><li>Why did our revenue decrease?</li><li>Why is production quality deteriorating?</li><li>Which factors influence customer churn?</li><li>What happens if we change a particular business parameter?</li><li>Which factors have the strongest impact on profitability?</li><li>What evidence supports a particular explanation?</li></ul><p>Imagine an AI system capable of:</p><ol><li>Understanding the dataset.</li><li>Identifying important variables.</li><li>Discovering statistical relationships.</li><li>Generating causal hypotheses.</li><li>Evaluating those hypotheses.</li><li>Performing counterfactual analysis.</li><li>Explaining findings in natural language.</li><li>Communicating uncertainty and limitations.</li></ol><p>This could become a powerful business intelligence and decision-support platform.</p><p>The architecture might combine:</p><ul><li>Machine Learning for prediction.</li><li>Causal inference for cause-and-effect analysis.</li><li>Explainable AI for understanding model behavior.</li><li>Knowledge graphs for connecting business information.</li><li>LLMs for natural-language interaction.</li></ul><p>The LLM would serve as the communication layer, while statistical and causal models would provide the analytical foundation.</p><h3>5. Why Is This Area Not Receiving the Same Attention?</h3><p>There are several challenges.</p><p><strong>Data quality:</strong> Companies often have incomplete, inconsistent or insufficient historical data.</p><p><strong>Hidden variables:</strong> Important factors may not be recorded in business datasets.</p><p><strong>Causal complexity:</strong> Real-world variables influence each other in complicated ways.</p><p><strong>Validation:</strong> A convincing explanation is not necessarily a correct explanation.</p><p><strong>Domain expertise:</strong> Understanding why something happens often requires knowledge of the actual business or physical process.</p><p>These challenges make causal reasoning more difficult than simply developing a chatbot.</p><p>However, they also create opportunities for researchers, engineers and entrepreneurs.</p><h3>6. The Future of Machine Learning Careers</h3><p>I believe aspiring AI engineers should look beyond generative AI alone.</p><p>Some promising areas to explore include:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/952/1*48FADEAVXzHxged8wzb2tA.png" /></figure><p>A strong technical foundation should include:</p><ul><li>Python and mathematics.</li><li>Probability and statistics.</li><li>Linear algebra and calculus.</li><li>Machine Learning fundamentals.</li><li>Deep Learning and PyTorch.</li><li>Causal inference.</li><li>Explainable AI.</li><li>GPU programming and inference optimization.</li></ul><p>The goal should not simply be to learn the latest AI framework. It should be to understand how intelligent systems learn, predict, explain and make decisions.</p><h3>7. My Perspective: We Need AI That Explains, Not Just AI That Answers</h3><p>Generative AI has made interacting with computers easier than ever.</p><p>But in many industries, generating an answer is not enough.</p><p>A business needs evidence.</p><p>A manufacturing engineer needs to understand why a machine is failing.</p><p>A financial analyst needs to understand why profitability is decreasing.</p><p>A healthcare researcher needs to investigate which factors influence an outcome.</p><p>An AI system should ideally do more than provide a prediction. It should explain the evidence behind that prediction, distinguish correlation from causation and communicate what remains uncertain.</p><p>This is where I see an important opportunity in the combination of Machine Learning, Causal AI, Explainable AI and automated reasoning.</p><h3>Conclusion</h3><p>The future of AI should not be limited to Large Language Models.</p><p>LLMs are an important technological breakthrough, but they represent only one part of the broader AI ecosystem.</p><p>We should also invest in systems that discover relationships, investigate causes, explain predictions and help humans make better decisions.</p><p><strong>Perhaps the next major opportunity in AI will not be another model that generates better answers, but a system that helps us understand why things happen.</strong></p><p>That is a direction worth exploring.</p><p><em>What do you think? Should the AI industry invest more in Causal AI and Explainable AI alongside Generative AI?</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7213bf98f0cb" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>