<?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"><channel><title><![CDATA[AI from Scratch]]></title><description><![CDATA[Learn what Artificial Intelligence is, how AI works, and understand the differences between Machine Learning, Deep Learning, Generative AI, and Large Language Models.]]></description><link>https://wahabansari.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Fri, 04 Dec 2026 22:37:48 GMT</lastBuildDate><atom:link href="https://wahabansari.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[How Machine Learning Works: Data, Training, Models, Inference and Predictions]]></title><description><![CDATA[Understand how machine learning works, from collecting and preparing data to training models, testing performance, and making predictions.]]></description><link>https://wahabansari.hashnode.dev/how-machine-learning-works</link><guid isPermaLink="true">https://wahabansari.hashnode.dev/how-machine-learning-works</guid><category><![CDATA[Machine Learning]]></category><category><![CDATA[Artificial Intelligence]]></category><category><![CDATA[AI]]></category><category><![CDATA[Data Science]]></category><category><![CDATA[Python]]></category><category><![CDATA[beginners guide]]></category><category><![CDATA[machine learning explained]]></category><category><![CDATA[machine learning training]]></category><category><![CDATA[model inference]]></category><category><![CDATA[training-data]]></category><category><![CDATA[machine learning algorithms]]></category><dc:creator><![CDATA[Wahab Ansari]]></dc:creator><pubDate>Mon, 30 Nov 2026 07:13:44 GMT</pubDate><content:encoded><![CDATA[<p>In the previous article, we explored what Artificial Intelligence is and how Machine Learning, Deep Learning, Generative AI, and Large Language Models fit into the AI ecosystem.</p>
<p>Now let's go one level deeper.</p>
<p>Have you ever wondered how a machine actually learns?</p>
<p>How does a computer look at thousands of examples, identify patterns, and eventually make predictions about something it has never seen before?</p>
<p>For example:</p>
<ul>
<li>How does Netflix recommend movies?</li>
<li>How does a bank identify potentially fraudulent transactions?</li>
<li>How can an e-commerce platform predict customer behavior?</li>
<li>How can a system estimate tomorrow's product demand?</li>
</ul>
<p>Behind many of these applications is a technology called <strong>Machine Learning (ML).</strong></p>
<p>In this article, we'll understand how Machine Learning works, from collecting data to training a model and using it to make predictions.</p>
<h2>1. What Is Machine Learning?</h2>
<p>Machine Learning is a subset of Artificial Intelligence that allows computer systems to learn patterns from data and use those patterns to make predictions or decisions.</p>
<p>In traditional programming, developers explicitly write rules that determine how a system behaves.</p>
<p>In Machine Learning, developers provide data and select an appropriate learning algorithm. The algorithm uses that data to learn patterns by adjusting the model's internal parameters.</p>
<p>Let's understand the difference.</p>
<h3>Traditional programming</h3>
<p>Imagine you want to build a system that determines whether a customer qualifies for a discount.</p>
<p>You might write rules such as:</p>
<ul>
<li>If the customer has spent more than $500, apply a 10% discount.</li>
<li>If the customer is a premium member, apply a 15% discount.</li>
</ul>
<p>The system follows the rules you explicitly define.</p>
<h3>Machine Learning</h3>
<p>Now imagine you want to predict whether a customer will purchase a product.</p>
<p>Instead of manually defining every possible customer behavior, you provide historical customer data and purchase outcomes.</p>
<p>A Machine Learning model learns patterns from this information and uses them to estimate whether a new customer is likely to purchase.</p>
<p><strong>The key difference:</strong> Traditional programming follows explicitly written rules, while Machine Learning uses patterns learned from data to make predictions.</p>
<h2>2. Understanding the Machine Learning Lifecycle</h2>
<p>Machine Learning is not simply about giving data to an algorithm and expecting intelligent results.</p>
<p>It involves several steps.</p>
<p>A typical Machine Learning lifecycle looks like this:</p>
<ol>
<li>Data collection.</li>
<li>Data preparation.</li>
<li>Feature selection and engineering.</li>
<li>Model selection.</li>
<li>Model training.</li>
<li>Model evaluation.</li>
<li>Model deployment.</li>
<li>Inference and monitoring.</li>
</ol>
<p>Let's understand each step using one practical example.</p>
<h3>Example: Predicting House Prices</h3>
<p>Imagine a real estate company wants to build a system that estimates property prices.</p>
<p>The company has historical information about thousands of properties.</p>
<p>It wants to use this information to train a model that can estimate the price of a new property.</p>
<h2>3. Step One: Data Collection</h2>
<p>Data is the foundation of Machine Learning.</p>
<p>A model learns patterns from the information provided during training. Therefore, the quality and relevance of the data have a significant impact on the results.</p>
<p>For our house price prediction system, we might collect:</p>
<ul>
<li>Property size.</li>
<li>Number of bedrooms.</li>
<li>Number of bathrooms.</li>
<li>Location.</li>
<li>Property age.</li>
<li>Distance from the city center.</li>
<li>Historical selling price.</li>
</ul>
<p>A simplified dataset might look like this:</p>
<table>
<thead>
<tr>
<th align="right">Size (sq ft)</th>
<th align="right">Bedrooms</th>
<th>Location</th>
<th align="right">Price</th>
</tr>
</thead>
<tbody><tr>
<td align="right">1,000</td>
<td align="right">2</td>
<td>City Center</td>
<td align="right">$150,000</td>
</tr>
<tr>
<td align="right">1,500</td>
<td align="right">3</td>
<td>Suburb</td>
<td align="right">$180,000</td>
</tr>
<tr>
<td align="right">2,000</td>
<td align="right">4</td>
<td>City Center</td>
<td align="right">$300,000</td>
</tr>
<tr>
<td align="right">1,200</td>
<td align="right">2</td>
<td>Suburb</td>
<td align="right">$140,000</td>
</tr>
<tr>
<td align="right">2,500</td>
<td align="right">4</td>
<td>City Center</td>
<td align="right">$380,000</td>
</tr>
</tbody></table>
<p>Each row represents one property.</p>
<p>The information used to make a prediction is called input data, while the known property price is the target value.</p>
<p><strong>Important:</strong> A larger dataset does not automatically mean a better model. Data quality, relevance, representativeness, and accuracy matter.</p>
<h2>4. Step Two: Data Preparation</h2>
<p>Raw data is rarely ready for Machine Learning.</p>
<p>It may contain:</p>
<ul>
<li>Missing values.</li>
<li>Duplicate records.</li>
<li>Incorrect information.</li>
<li>Inconsistent formats.</li>
<li>Outliers.</li>
<li>Irrelevant information.</li>
</ul>
<p>Before training a model, we need to prepare the data.</p>
<p>For example:</p>
<p>Imagine one property has a size of 1,500 square feet, but its bedroom count is missing.</p>
<p>We need to decide how to handle that missing value.</p>
<p>Possible approaches include:</p>
<ul>
<li>Removing incomplete records when appropriate.</li>
<li>Filling missing values using a suitable statistical method.</li>
<li>Investigating the original data source.</li>
<li>Using a model or method designed to handle missing information.</li>
</ul>
<p>We may also need to convert categorical information, such as property location, into a numerical representation that the selected algorithm can process.</p>
<p>Another important step is splitting the dataset into training and testing portions.</p>
<h3>Training data vs testing data</h3>
<p><strong>Training data:</strong> The data used by the learning algorithm to fit the model.</p>
<p><strong>Testing data:</strong> Separate data used to evaluate how well the trained model performs on examples it did not use during training.</p>
<p>For example, we might use 80% of our dataset for training and 20% for testing.</p>
<p>This is a common approach, not a fixed rule for every project.</p>
<p>We must also avoid data leakage, where information from the test set unintentionally influences training or preprocessing.</p>
<p><strong>Key takeaway:</strong> Good data preparation helps a model learn meaningful patterns and allows us to evaluate it more honestly.</p>
<h2>5. Step Three: Understanding Features and Labels</h2>
<p>Before training a model, we need to understand two important terms: features and labels.</p>
<h3>What are features?</h3>
<p>Features are the input variables that a model uses to make predictions.</p>
<p>For our house price example, features include:</p>
<ul>
<li>Property size.</li>
<li>Number of bedrooms.</li>
<li>Number of bathrooms.</li>
<li>Location.</li>
<li>Property age.</li>
</ul>
<h3>What is a label?</h3>
<p>A label is the target value the model is expected to learn to predict in a supervised learning task.</p>
<p>In our example, the property selling price is the label.</p>
<p>Think about it this way:</p>
<p><strong>Features = Information provided to the model.</strong></p>
<p><strong>Label = The answer the model is trying to predict.</strong></p>
<p>Choosing relevant features is important because irrelevant or misleading information can reduce model performance.</p>
<p>The process of creating or transforming useful input variables is called feature engineering.</p>
<h2>6. Step Four: Choosing a Machine Learning Model</h2>
<p>Now we have prepared our data.</p>
<p>The next step is choosing an appropriate Machine Learning algorithm.</p>
<p>An algorithm is the learning procedure used to fit a model to data.</p>
<p>A model is the result of that learning process, including its learned parameters.</p>
<p>Different algorithms are suitable for different problems.</p>
<p>Some common examples include:</p>
<table>
<thead>
<tr>
<th>Algorithm</th>
<th>Common use</th>
</tr>
</thead>
<tbody><tr>
<td>Linear Regression</td>
<td>Predicting numerical values</td>
</tr>
<tr>
<td>Logistic Regression</td>
<td>Classification problems</td>
</tr>
<tr>
<td>Decision Trees</td>
<td>Classification and regression</td>
</tr>
<tr>
<td>Random Forest</td>
<td>Classification and regression</td>
</tr>
<tr>
<td>K-Means</td>
<td>Grouping similar data points</td>
</tr>
<tr>
<td>Neural Networks</td>
<td>Learning complex patterns</td>
</tr>
</tbody></table>
<p>For our house price prediction problem, Linear Regression could be a reasonable starting point.</p>
<p>Why?</p>
<p>Because we want to estimate a numerical value: the price of a property.</p>
<p>However, the best algorithm depends on the dataset, assumptions, complexity, and performance requirements.</p>
<p>There is no single algorithm that works best for every problem.</p>
<h2>7. Step Five: Model Training</h2>
<p>This is where the actual learning process happens.</p>
<p>During training, the algorithm uses the training data to adjust the model's internal parameters so that its predictions become more accurate according to a chosen objective.</p>
<p>Let's simplify this with our house price example.</p>
<p>Suppose the model receives information about a property:</p>
<ul>
<li>Size: 1,500 square feet.</li>
<li>Bedrooms: 3.</li>
<li>Location: Suburb.</li>
</ul>
<p>Initially, the model may produce an inaccurate price estimate.</p>
<p>The training process compares the model's prediction with the actual price in the training data.</p>
<p>It calculates an error using a selected loss function.</p>
<p>The learning algorithm then adjusts the model's parameters to reduce that error.</p>
<p>This process repeats across the training data.</p>
<p>Eventually, the model learns patterns that help it make better predictions.</p>
<h3>What is a loss function?</h3>
<p>A loss function measures how far a model's prediction is from the expected answer.</p>
<p>For a simple regression problem, Mean Squared Error (MSE) is one commonly used loss function.</p>
<p>It calculates the average squared difference between predicted and actual values.</p>
<p>A lower training loss can indicate that the model is fitting the training data better, but it does not automatically mean that the model will perform well on new data.</p>
<h3>What are model parameters?</h3>
<p>Parameters are internal values learned by a model during training.</p>
<p>For example, a Linear Regression model learns coefficients that determine how its input features contribute to its predictions.</p>
<p>The model uses these learned parameters when making predictions.</p>
<p><strong>Key takeaway:</strong> Model training is the process of learning useful parameters from data by optimizing a chosen objective.</p>
<h2>8. Step Six: Model Evaluation</h2>
<p>After training, we need to determine whether the model performs well.</p>
<p>A model that performs well on training data may still perform poorly on unseen data.</p>
<p>This problem is known as overfitting.</p>
<h3>What is overfitting?</h3>
<p>Overfitting happens when a model learns the training data too closely, including noise or accidental patterns.</p>
<p>As a result, it performs well on training examples but struggles with new data.</p>
<p>Another problem is underfitting.</p>
<h3>What is underfitting?</h3>
<p>Underfitting occurs when a model is too simple or has not learned enough from the data to capture the underlying patterns.</p>
<p>It performs poorly even on the training data.</p>
<h3>Common evaluation metrics</h3>
<p>Different problems require different evaluation metrics.</p>
<table>
<thead>
<tr>
<th>Metric</th>
<th>Common application</th>
</tr>
</thead>
<tbody><tr>
<td>Mean Absolute Error (MAE)</td>
<td>Regression</td>
</tr>
<tr>
<td>Mean Squared Error (MSE)</td>
<td>Regression</td>
</tr>
<tr>
<td>Root Mean Squared Error (RMSE)</td>
<td>Regression</td>
</tr>
<tr>
<td>Accuracy</td>
<td>Classification</td>
</tr>
<tr>
<td>Precision</td>
<td>Classification</td>
</tr>
<tr>
<td>Recall</td>
<td>Classification</td>
</tr>
<tr>
<td>F1-score</td>
<td>Classification</td>
</tr>
</tbody></table>
<p>For our house price prediction model, we could use MAE.</p>
<p>For example, if the model's MAE is $10,000, its predictions differ from actual prices by an average absolute amount of $10,000 on the evaluated dataset.</p>
<p>This is a simplified interpretation, and we should always consider the distribution of errors and the business context.</p>
<p><strong>Important:</strong> Evaluation should measure performance on data that was not used to fit the model.</p>
<h2>9. Step Seven: Model Deployment</h2>
<p>Once we are satisfied with the model's performance, we may want to make it available to users or applications.</p>
<p>This is called model deployment.</p>
<p>For example, a real estate company could integrate the trained model into its website.</p>
<p>A user enters:</p>
<ul>
<li>Property size.</li>
<li>Number of bedrooms.</li>
<li>Location.</li>
<li>Property age.</li>
</ul>
<p>The website sends this information to the deployed model.</p>
<p>The model returns an estimated property price.</p>
<p>In a real system, the model may be exposed through an API or another serving mechanism.</p>
<p>This is where Machine Learning connects with traditional software development.</p>
<p>We need to consider:</p>
<ul>
<li>API design.</li>
<li>Input validation.</li>
<li>Model serving.</li>
<li>Application integration.</li>
<li>Latency.</li>
<li>Security.</li>
<li>Infrastructure.</li>
<li>Monitoring.</li>
</ul>
<p>A trained model sitting on a computer is not automatically a useful business solution. It needs a reliable way to interact with the application and its users.</p>
<h2>10. Step Eight: What Is Inference?</h2>
<p>Inference is the process of using a trained model to generate predictions or outputs from new input data.</p>
<p>Let's continue our house price example.</p>
<p>We have already trained and deployed our model.</p>
<p>Now a user enters information about a new property:</p>
<ul>
<li>Size: 1,800 square feet.</li>
<li>Bedrooms: 3.</li>
<li>Location: Suburb.</li>
<li>Property age: 5 years.</li>
</ul>
<p>The trained model processes these inputs using its learned parameters.</p>
<p>It might return an estimated property price of $220,000.</p>
<p>That prediction process is called inference.</p>
<h3>Training vs inference</h3>
<p>This is one of the most important distinctions in Machine Learning.</p>
<table>
<thead>
<tr>
<th>Training</th>
<th>Inference</th>
</tr>
</thead>
<tbody><tr>
<td>The model learns from data</td>
<td>The trained model generates outputs</td>
</tr>
<tr>
<td>Adjusts model parameters</td>
<td>Uses learned parameters</td>
</tr>
<tr>
<td>Usually requires training data and optimization</td>
<td>Requires new input data</td>
</tr>
<tr>
<td>Often computationally expensive</td>
<td>Depends on the model and serving setup</td>
</tr>
</tbody></table>
<p><strong>Simple explanation:</strong></p>
<p>Training is when a model learns.</p>
<p>Inference is when a trained model is used.</p>
<p>We'll revisit this distinction when we study Large Language Models.</p>
<h2>11. The Complete Machine Learning Workflow</h2>
<p>Let's put everything together.</p>
<p>Imagine a company wants to predict house prices.</p>
<p>The workflow would look like this:</p>
<ol>
<li>Collect historical property data.</li>
<li>Clean and prepare the data.</li>
<li>Identify relevant features and target labels.</li>
<li>Select a suitable algorithm.</li>
<li>Train the model using training data.</li>
<li>Evaluate it using unseen data.</li>
<li>Deploy the trained model.</li>
<li>Send new property information to the model.</li>
<li>Generate a prediction through inference.</li>
<li>Monitor performance and update the model when necessary.</li>
</ol>
<p>This is the basic Machine Learning lifecycle.</p>
<p>Real-world projects may involve additional stages, such as hyperparameter tuning, cross-validation, model versioning, data validation, and continuous monitoring.</p>
<h2>12. Where Does This Fit Into Modern AI?</h2>
<p>You might be wondering:</p>
<p>If Machine Learning works like this, how do ChatGPT, Claude, and Gemini work?</p>
<p>They are based on much more sophisticated Machine Learning and Deep Learning techniques.</p>
<p>Modern LLMs use neural network architectures, particularly Transformers, and are trained through specialized processes involving large-scale data and computation.</p>
<p>Their training and deployment pipelines are more complex than our simple house price example.</p>
<p>However, some fundamental ideas remain relevant:</p>
<ul>
<li>Data is used during training.</li>
<li>Model parameters are learned.</li>
<li>Training objectives guide optimization.</li>
<li>Models are evaluated.</li>
<li>Trained models generate outputs through inference.</li>
</ul>
<p>Understanding these fundamentals will make it much easier to understand how LLMs work in the upcoming articles.</p>
<h2>13. Practical Exercise: Test Your Understanding</h2>
<p>Let's test what you've learned.</p>
<h3>Questions</h3>
<ol>
<li>What is the difference between traditional programming and Machine Learning?</li>
<li>What is the difference between training data and testing data?</li>
<li>What are features and labels?</li>
<li>What happens during model training?</li>
<li>What is a loss function?</li>
<li>What is overfitting?</li>
<li>What is the difference between training and inference?</li>
<li>Why does a trained model need deployment before a business application can use it?</li>
</ol>
<h3>Practical challenge</h3>
<p>Imagine an online store wants to predict whether a customer will purchase a product.</p>
<p>Identify:</p>
<ul>
<li>Three possible input features.</li>
<li>The target label.</li>
<li>What historical data the business needs.</li>
<li>Which type of Machine Learning problem this is.</li>
<li>How you would evaluate the model.</li>
<li>How the store could use the prediction.</li>
</ul>
<p>Try answering these questions without copying the article.</p>
<p>The goal is to understand the workflow, not memorize definitions.</p>
<h2>What Should You Be Able to Do After Day 2?</h2>
<p>By completing this lesson, you should be able to:</p>
<ul>
<li>Explain the Machine Learning lifecycle.</li>
<li>Understand how data is used to train models.</li>
<li>Differentiate features and labels.</li>
<li>Explain training, testing, and inference.</li>
<li>Understand loss functions and evaluation metrics.</li>
<li>Identify overfitting and underfitting.</li>
<li>Describe how a trained model can be deployed inside a software application.</li>
</ul>
<h2>What's Next? — Day 3</h2>
<p><strong>Deep Learning Explained: Neural Networks, Layers, Weights, Biases and Backpropagation</strong></p>
<p>We've now understood how Machine Learning models learn from data.</p>
<p>In the next article, we'll explore what happens inside neural networks.</p>
<p>We'll learn how neurons, layers, weights, biases, activation functions, and backpropagation work together to help a Deep Learning model learn complex patterns.</p>
<hr />
<p><strong>Learning AI is a process of understanding how the pieces connect. Before working with advanced AI models, we need to understand the fundamentals that make them possible.</strong></p>
<p>This is Day 2 of my AI from Scratch series. Let's keep learning, one concept at a time.</p>
]]></content:encoded></item><item><title><![CDATA[What Is Artificial Intelligence? A Beginner's Guide to AI]]></title><description><![CDATA[Learn what Artificial Intelligence is, how AI works, and understand the differences between Machine Learning, Deep Learning.]]></description><link>https://wahabansari.hashnode.dev/what-is-artificial-intelligence</link><guid isPermaLink="true">https://wahabansari.hashnode.dev/what-is-artificial-intelligence</guid><category><![CDATA[Artificial Intelligence]]></category><category><![CDATA[Machine Learning]]></category><category><![CDATA[AI]]></category><category><![CDATA[Beginner Developers]]></category><category><![CDATA[technology]]></category><dc:creator><![CDATA[Wahab Ansari]]></dc:creator><pubDate>Mon, 30 Nov 2026 07:03:07 GMT</pubDate><content:encoded><![CDATA[<p>Artificial Intelligence (AI) has become one of the most discussed technologies in the world.</p>
<p>From ChatGPT answering questions to AI agents automating business workflows, we are seeing AI become part of our everyday lives.</p>
<p>But there is something important we should understand:</p>
<p><strong>Using AI tools and understanding how AI actually works are two different things.</strong></p>
<p>Many people know how to write prompts, generate content, or create AI-powered workflows. However, understanding the technology behind these capabilities gives us a much stronger foundation for building real-world AI solutions.</p>
<p>In this article, we'll start from the fundamentals and explore what Artificial Intelligence is, how it works, and how its major technologies are connected.</p>
<h2>1. What Is Artificial Intelligence (AI)?</h2>
<p>Artificial Intelligence is a field of computer science focused on developing systems that can perform tasks that typically require human intelligence.</p>
<p>These tasks include:</p>
<ul>
<li>Understanding human language.</li>
<li>Recognizing images and objects.</li>
<li>Identifying patterns in data.</li>
<li>Making predictions.</li>
<li>Solving problems.</li>
<li>Generating text, images, audio, and code.</li>
</ul>
<p>For example, consider an online shopping platform.</p>
<p>An AI-powered recommendation system can analyze customer behavior and suggest products based on previous purchases, browsing activity, and other patterns.</p>
<p>Another example is an AI customer support assistant that understands customer questions and provides relevant responses.</p>
<p>Both are applications of Artificial Intelligence, but they may use different AI techniques.</p>
<p>The important thing to understand is that AI is not one single technology. It is a broad field containing multiple approaches and technologies.</p>
<h2>2. Understanding the Different Types of AI Technologies</h2>
<p>To understand modern AI, we need to understand five important concepts:</p>
<ol>
<li>Machine Learning (ML)</li>
<li>Deep Learning (DL)</li>
<li>Neural Networks</li>
<li>Generative AI</li>
<li>Large Language Models (LLMs)</li>
</ol>
<p>Let's understand each one.</p>
<h2>3. What Is Machine Learning (ML)?</h2>
<p>Machine Learning is a subset of Artificial Intelligence.</p>
<p>Traditional software generally follows instructions and rules written by developers.</p>
<p>Machine Learning takes a different approach: models learn patterns from data and use those patterns to make predictions or decisions.</p>
<h3>A simple example</h3>
<p>Imagine an e-commerce company wants to predict which customers are likely to purchase a product.</p>
<p>It provides a machine learning system with historical information, such as:</p>
<ul>
<li>Previous purchases.</li>
<li>Customer browsing activity.</li>
<li>Product categories.</li>
<li>Purchase frequency.</li>
<li>Customer interactions.</li>
</ul>
<p>The model learns patterns from this historical data.</p>
<p>When new customer information becomes available, it can use those learned patterns to estimate the likelihood of a purchase.</p>
<p>This is one example of Machine Learning.</p>
<p><strong>Key takeaway:</strong> Machine Learning allows systems to learn patterns from data instead of requiring developers to manually write every decision rule.</p>
<h2>4. What Is Deep Learning (DL)?</h2>
<p>Deep Learning is a subset of Machine Learning.</p>
<p>It uses multi-layered neural networks to learn complex patterns from large amounts of data.</p>
<p>Deep Learning is particularly important in areas such as:</p>
<ul>
<li>Image recognition.</li>
<li>Speech recognition.</li>
<li>Natural language processing.</li>
<li>Computer vision.</li>
<li>Generative AI.</li>
</ul>
<p>For example, a facial recognition system can learn visual patterns from images and use them to identify faces.</p>
<p>Deep Learning makes it possible to build models that handle complex data and relationships that are difficult to describe using traditional programming rules.</p>
<p><strong>Key takeaway:</strong> Deep Learning is a Machine Learning approach that uses neural networks with multiple layers to learn complex patterns.</p>
<h2>5. What Are Neural Networks?</h2>
<p>Neural networks are computational models loosely inspired by the structure of the human brain.</p>
<p>They consist of interconnected computational units called neurons.</p>
<p>These neurons are organized into layers:</p>
<ul>
<li>Input layer.</li>
<li>Hidden layers.</li>
<li>Output layer.</li>
</ul>
<p>Each layer processes information and passes results to the next layer.</p>
<h3>How does this work?</h3>
<p>Imagine providing a neural network with an image of a cat.</p>
<p>The network processes information from the image through its layers.</p>
<p>Different layers can learn different visual patterns, such as edges, shapes, textures, and more complex features.</p>
<p>The final output might indicate that the image contains a cat.</p>
<p>During training, the network adjusts its internal parameters to improve its predictions.</p>
<p><strong>Key takeaway:</strong> Neural networks are an important foundation of Deep Learning and many modern AI systems.</p>
<h2>6. What Is Generative AI?</h2>
<p>Generative AI is a category of AI systems designed to generate new content based on patterns learned during training.</p>
<p>Unlike systems designed primarily to classify information or make predictions, generative systems can create new outputs.</p>
<p>These outputs can include:</p>
<ul>
<li>Text.</li>
<li>Images.</li>
<li>Audio.</li>
<li>Video.</li>
<li>Computer code.</li>
</ul>
<p>For example:</p>
<ul>
<li>ChatGPT can generate text and code.</li>
<li>Claude can analyze documents and generate responses.</li>
<li>Image generation systems can create images from text descriptions.</li>
</ul>
<p>Generative AI has changed how people interact with computers because users can communicate with these systems using natural language.</p>
<p><strong>Key takeaway:</strong> Generative AI focuses on creating new content rather than only analyzing or classifying existing information.</p>
<h2>7. What Is a Large Language Model (LLM)?</h2>
<p>A Large Language Model is a type of AI model trained on large amounts of language data to process and generate human-like text.</p>
<p>LLMs are commonly built using Deep Learning architectures, particularly Transformer-based architectures.</p>
<p>They can perform tasks such as:</p>
<ul>
<li>Answering questions.</li>
<li>Summarizing documents.</li>
<li>Generating content.</li>
<li>Writing and explaining code.</li>
<li>Extracting information.</li>
<li>Translating languages.</li>
<li>Following instructions.</li>
</ul>
<p>Examples include GPT models, Claude models, and Gemini models.</p>
<h3>How does an LLM generate text?</h3>
<p>At a simplified level, an LLM processes the input it receives and generates an output based on patterns learned during training.</p>
<p>Many modern language models generate text by predicting the next token based on the preceding context.</p>
<p>A token can represent a complete word, part of a word, or another unit of text.</p>
<p>We'll explore tokens, context windows, inference, and model architecture in detail in upcoming articles.</p>
<p><strong>Key takeaway:</strong> An LLM is a language-focused AI model that can understand and generate text, among other capabilities.</p>
<h2>8. How Are AI, ML, Deep Learning, Generative AI, and LLMs Connected?</h2>
<p>This is probably the most important part of today's lesson.</p>
<p>These terms are related, but they do not mean the same thing.</p>
<p>Here's a simplified relationship:</p>
<ul>
<li>Artificial Intelligence is the broader field.</li>
<li>Machine Learning is one approach within AI.</li>
<li>Deep Learning is a subset of Machine Learning.</li>
<li>Neural networks are the foundation of Deep Learning.</li>
<li>Generative AI describes systems that generate new content.</li>
<li>LLMs are language-focused models, commonly based on Deep Learning.</li>
</ul>
<p>One important distinction: Generative AI is not simply another level in the AI hierarchy. It describes a capability or approach that can use different model architectures. LLMs are one major category of Generative AI models.</p>
<h2>9. Real-World Business Applications of AI</h2>
<p>Understanding definitions is useful, but understanding where these technologies solve real problems is even more important.</p>
<p>Here are five practical examples.</p>
<table>
<thead>
<tr>
<th>Business problem</th>
<th>Possible AI application</th>
</tr>
</thead>
<tbody><tr>
<td>Too many customer support requests</td>
<td>AI customer support assistant</td>
</tr>
<tr>
<td>Difficulty finding information in documents</td>
<td>AI-powered knowledge retrieval</td>
</tr>
<tr>
<td>Repetitive manual business tasks</td>
<td>AI-assisted workflow automation</td>
</tr>
<tr>
<td>Predicting customer demand</td>
<td>Machine Learning prediction models</td>
</tr>
<tr>
<td>Creating marketing content</td>
<td>Generative AI</td>
</tr>
</tbody></table>
<p>Notice something interesting:</p>
<p>Not every business problem requires an LLM or an AI agent.</p>
<p>Sometimes traditional Machine Learning, simple automation, or even conventional software is the better solution.</p>
<p>Choosing the right technology starts with understanding the actual problem.</p>
<h2>10. What Have We Learned?</h2>
<p>Let's summarize today's concepts:</p>
<table>
<thead>
<tr>
<th>Concept</th>
<th>Simple explanation</th>
</tr>
</thead>
<tbody><tr>
<td>Artificial Intelligence</td>
<td>The broader field of intelligent computer systems</td>
</tr>
<tr>
<td>Machine Learning</td>
<td>Systems learning patterns from data</td>
</tr>
<tr>
<td>Deep Learning</td>
<td>Machine Learning using multi-layer neural networks</td>
</tr>
<tr>
<td>Neural Networks</td>
<td>Connected computational units that process information</td>
</tr>
<tr>
<td>Generative AI</td>
<td>AI systems that generate new content</td>
</tr>
<tr>
<td>LLM</td>
<td>Language-focused AI model trained on large amounts of data</td>
</tr>
</tbody></table>
<p>Understanding these concepts gives us the foundation to explore modern AI systems.</p>
<h2>11. Practical Exercise: Test Your Understanding</h2>
<p>Before moving to the next article, try answering these questions:</p>
<ol>
<li>What is the difference between Artificial Intelligence and Machine Learning?</li>
<li>Why is Deep Learning considered a subset of Machine Learning?</li>
<li>What role do neural networks play in Deep Learning?</li>
<li>What makes Generative AI different from a traditional prediction model?</li>
<li>What is an LLM, and how does it generate text?</li>
<li>Can every business problem be solved using Generative AI? Why or why not?</li>
</ol>
<h3>Practical challenge</h3>
<p>Think of three problems in a real business.</p>
<p>For each problem, identify whether you would consider:</p>
<ul>
<li>Traditional software.</li>
<li>Machine Learning.</li>
<li>Generative AI.</li>
<li>AI agents or workflow automation.</li>
</ul>
<p>You don't need to build anything yet. Focus on identifying the problem and selecting a suitable technology.</p>
<h2>What's Next? — Day 2</h2>
<p><strong>How Machine Learning Actually Works: Data, Training, Models, Inference and Predictions</strong></p>
<p>In the next article, we'll go deeper into how machines learn from data.</p>
<p>We'll explore:</p>
<ul>
<li>What is a dataset?</li>
<li>What is a training model?</li>
<li>How does model training work?</li>
<li>What are training and testing datasets?</li>
<li>What is inference?</li>
<li>How does a trained model make predictions?</li>
</ul>
<p>The goal is to understand what happens behind the scenes when an AI model learns and makes a prediction.</p>
<hr />
<p><strong>Learning AI is not just about learning tools. It's about understanding the technology, knowing when to use it, and eventually building solutions that solve real problems.</strong></p>
<p>This is Day 1 of my AI from Scratch learning journey. Let's build the foundation before building the applications.</p>
]]></content:encoded></item></channel></rss>