{"id":44,"date":"2026-04-05T17:49:10","date_gmt":"2026-04-05T17:49:10","guid":{"rendered":"https:\/\/gigz.pk\/dl\/?post_type=lesson&#038;p=44"},"modified":"2026-04-06T20:25:03","modified_gmt":"2026-04-06T20:25:03","slug":"forward-propagation","status":"publish","type":"lesson","link":"https:\/\/gigz.pk\/dl\/index.php\/lesson\/forward-propagation\/","title":{"rendered":"\u00a0Forward Propagation"},"content":{"rendered":"\n<p>Forward propagation is the process by which input data passes through a neural network to generate predictions. It is the first step in training and using neural networks, allowing the model to compute outputs based on current weights and biases. Understanding forward propagation is essential for grasping how neural networks learn.<\/p>\n\n\n\n<p><strong>How Forward Propagation Works<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Input Layer<\/strong> \u2013 Receives the input features of the dataset.<\/li>\n\n\n\n<li><strong>Weighted Sum<\/strong> \u2013 Each input is multiplied by its corresponding weight, and a bias is added:<br>z = (w1 \u00d7 x1) + (w2 \u00d7 x2) + &#8230; + (wn \u00d7 xn) + b<\/li>\n\n\n\n<li><strong>Activation Function<\/strong> \u2013 The weighted sum is passed through an activation function to introduce non-linearity:<br>a = f(z)<\/li>\n\n\n\n<li><strong>Hidden Layers<\/strong> \u2013 The output from the activation function becomes the input for the next layer.<\/li>\n\n\n\n<li><strong>Output Layer<\/strong> \u2013 Produces the final prediction, which can be a number (regression) or probability (classification).<\/li>\n<\/ol>\n\n\n\n<p><strong>Mathematical Representation<\/strong><br>For a single neuron:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>z = \u03a3 (wi \u00d7 xi) + b<\/li>\n\n\n\n<li>a = f(z)<br>For multiple layers, this process is repeated for each neuron in every layer.<\/li>\n<\/ul>\n\n\n\n<p><strong>Example: Forward Propagation in Python<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">import numpy as np# Inputs<br>X = np.array([1, 2])# Weights and bias<br>weights = np.array([0.5, 0.3])<br>bias = 0.1# Activation function (ReLU)<br>def relu(x):<br>    return np.maximum(0, x)# Forward propagation<br>z = np.dot(X, weights) + bias<br>output = relu(z)print(\"Weighted sum (z):\", z)<br>print(\"Output after activation (a):\", output)<\/pre>\n\n\n\n<p><strong>Key Points About Forward Propagation<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Deterministic Process<\/strong>: Computes output based on current parameters (weights and biases).<\/li>\n\n\n\n<li><strong>No Learning Happens<\/strong>: Forward propagation only calculates outputs; learning occurs during backpropagation.<\/li>\n\n\n\n<li><strong>Layer-by-Layer Computation<\/strong>: Each layer transforms the input before passing it to the next layer.<\/li>\n<\/ul>\n\n\n\n<p><strong>Applications<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Making predictions on new input data<\/li>\n\n\n\n<li>Evaluating the model during training<\/li>\n\n\n\n<li>Generating probabilities for classification problems<\/li>\n\n\n\n<li>Feature transformation in deep learning models<\/li>\n<\/ul>\n\n\n\n<p><strong>Lesson Summary<\/strong><br>Forward propagation is the process of passing input data through a neural network to generate predictions. It involves calculating weighted sums, applying activation functions, and propagating outputs layer by layer. This process is fundamental to understanding how neural networks operate before applying backpropagation for learning.<\/p>\n\n\n<div class=\"yoast-breadcrumbs\"><span><span><a href=\"https:\/\/gigz.pk\/dl\/\">Home<\/a><\/span> \u00bb <span class=\"breadcrumb_last\" aria-current=\"page\">Deep Learning Foundations (Beginner) > Neural Networks Basics > Forward Propagation<\/span><\/span><\/div>\n\n\n<div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-1775411281484\"><strong class=\"schema-faq-question\"><\/strong> <p class=\"schema-faq-answer\"><\/p> <\/div> <\/div>\n","protected":false},"menu_order":24,"template":"","class_list":["post-44","lesson","type-lesson","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u00a0Forward Propagation - Deep Learning Mastery<\/title>\n<meta name=\"description\" content=\"Learn forward propagation in neural networks. Understand layer-by-layer calculations, activations, and output predictions in deep learning.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/gigz.pk\/dl\/index.php\/lesson\/forward-propagation\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u00a0Forward Propagation - Deep Learning Mastery\" \/>\n<meta property=\"og:description\" content=\"Learn forward propagation in neural networks. Understand layer-by-layer calculations, activations, and output predictions in deep learning.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/gigz.pk\/dl\/index.php\/lesson\/forward-propagation\/\" \/>\n<meta property=\"og:site_name\" content=\"Deep Learning Mastery\" \/>\n<meta property=\"article:modified_time\" content=\"2026-04-06T20:25:03+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":[\"WebPage\",\"FAQPage\"],\"@id\":\"https:\\\/\\\/gigz.pk\\\/dl\\\/index.php\\\/lesson\\\/forward-propagation\\\/\",\"url\":\"https:\\\/\\\/gigz.pk\\\/dl\\\/index.php\\\/lesson\\\/forward-propagation\\\/\",\"name\":\"\u00a0Forward Propagation - Deep Learning Mastery\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/gigz.pk\\\/dl\\\/#website\"},\"datePublished\":\"2026-04-05T17:49:10+00:00\",\"dateModified\":\"2026-04-06T20:25:03+00:00\",\"description\":\"Learn forward propagation in neural networks. Understand layer-by-layer calculations, activations, and output predictions in deep learning.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/gigz.pk\\\/dl\\\/index.php\\\/lesson\\\/forward-propagation\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/gigz.pk\\\/dl\\\/index.php\\\/lesson\\\/forward-propagation\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/gigz.pk\\\/dl\\\/index.php\\\/lesson\\\/forward-propagation\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/gigz.pk\\\/dl\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Deep Learning Foundations (Beginner) > Neural Networks Basics > Forward Propagation\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/gigz.pk\\\/dl\\\/#website\",\"url\":\"https:\\\/\\\/gigz.pk\\\/dl\\\/\",\"name\":\"Deep Learning Mastery\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/gigz.pk\\\/dl\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u00a0Forward Propagation - Deep Learning Mastery","description":"Learn forward propagation in neural networks. Understand layer-by-layer calculations, activations, and output predictions in deep learning.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/gigz.pk\/dl\/index.php\/lesson\/forward-propagation\/","og_locale":"en_US","og_type":"article","og_title":"\u00a0Forward Propagation - Deep Learning Mastery","og_description":"Learn forward propagation in neural networks. Understand layer-by-layer calculations, activations, and output predictions in deep learning.","og_url":"https:\/\/gigz.pk\/dl\/index.php\/lesson\/forward-propagation\/","og_site_name":"Deep Learning Mastery","article_modified_time":"2026-04-06T20:25:03+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":["WebPage","FAQPage"],"@id":"https:\/\/gigz.pk\/dl\/index.php\/lesson\/forward-propagation\/","url":"https:\/\/gigz.pk\/dl\/index.php\/lesson\/forward-propagation\/","name":"\u00a0Forward Propagation - Deep Learning Mastery","isPartOf":{"@id":"https:\/\/gigz.pk\/dl\/#website"},"datePublished":"2026-04-05T17:49:10+00:00","dateModified":"2026-04-06T20:25:03+00:00","description":"Learn forward propagation in neural networks. Understand layer-by-layer calculations, activations, and output predictions in deep learning.","breadcrumb":{"@id":"https:\/\/gigz.pk\/dl\/index.php\/lesson\/forward-propagation\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/gigz.pk\/dl\/index.php\/lesson\/forward-propagation\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/gigz.pk\/dl\/index.php\/lesson\/forward-propagation\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/gigz.pk\/dl\/"},{"@type":"ListItem","position":2,"name":"Deep Learning Foundations (Beginner) > Neural Networks Basics > Forward Propagation"}]},{"@type":"WebSite","@id":"https:\/\/gigz.pk\/dl\/#website","url":"https:\/\/gigz.pk\/dl\/","name":"Deep Learning Mastery","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/gigz.pk\/dl\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/gigz.pk\/dl\/index.php\/wp-json\/wp\/v2\/lesson\/44","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gigz.pk\/dl\/index.php\/wp-json\/wp\/v2\/lesson"}],"about":[{"href":"https:\/\/gigz.pk\/dl\/index.php\/wp-json\/wp\/v2\/types\/lesson"}],"wp:attachment":[{"href":"https:\/\/gigz.pk\/dl\/index.php\/wp-json\/wp\/v2\/media?parent=44"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}