: You can calculate gradients in separate columns using the derivative of your activation function to update weights row-by-row.
In this guide, we will build a (Input → Hidden → Output) capable of learning the XOR logic gate—a classic problem that proves non-linear learning. By the end, you will have a living Excel model that "learns" in front of your eyes.
This network has :
// Forward pass of a single layer in a cell = MAP(neuron_weights, LAMBDA(w, SIGMOID(SUMPRODUCT(w, prev_activations) + bias)))
: Introduced in modern Excel, the spill operator automatically expands formulas across rows and columns, eliminating the need to drag formulas down thousands of cells. 3. Step-by-Step Implementation Guide Step 1: Format the Data Tables Organize your spreadsheet into distinct, labeled sections.
Now, your forward propagation formulas become much easier to read: =SIGMOID(MMULT(A2:B2, $F$2:$G$3) + $F$4:$G$4)
Apply Sigmoid activation. In cell O8 (or any free cell), use the modern LAMBDA helper:
σ(z)=11+e−zsigma open paren z close paren equals the fraction with numerator 1 and denominator 1 plus e raised to the negative z power end-fraction
For organizations, data scientists can deploy deep neural network classifiers as custom functions. Microsoft Azure =AZUREML() function to access a catalog of pre-built AI models.
matrix for inputs to hidden layer. Place this in cells F2:G3 . A vector for the hidden layer. Place this in cells F4:G4 . Weights 2 ( W(2)cap W raised to the open paren 2 close paren power ): A
This produces a 4x2 matrix (4 samples × 2 hidden neurons).
Initially, with random weights, loss will be ~0.25 (chance level). Your goal: reduce loss to <0.01.
For simplicity, you can initialize all weights to small random values between 0.01 and 0.08 and all biases to 0. In a real scenario, proper initialization helps convergence, but for our Excel experiment, this is a fine starting point. Place these initial parameters in dedicated cells at the top of your worksheet.
=MMULT(TRANSPOSE(HiddenActivation), delta_output) / ROWS(InputData)
: You can calculate gradients in separate columns using the derivative of your activation function to update weights row-by-row.
In this guide, we will build a (Input → Hidden → Output) capable of learning the XOR logic gate—a classic problem that proves non-linear learning. By the end, you will have a living Excel model that "learns" in front of your eyes.
This network has :
// Forward pass of a single layer in a cell = MAP(neuron_weights, LAMBDA(w, SIGMOID(SUMPRODUCT(w, prev_activations) + bias)))
: Introduced in modern Excel, the spill operator automatically expands formulas across rows and columns, eliminating the need to drag formulas down thousands of cells. 3. Step-by-Step Implementation Guide Step 1: Format the Data Tables Organize your spreadsheet into distinct, labeled sections.
Now, your forward propagation formulas become much easier to read: =SIGMOID(MMULT(A2:B2, $F$2:$G$3) + $F$4:$G$4)
Apply Sigmoid activation. In cell O8 (or any free cell), use the modern LAMBDA helper:
σ(z)=11+e−zsigma open paren z close paren equals the fraction with numerator 1 and denominator 1 plus e raised to the negative z power end-fraction
For organizations, data scientists can deploy deep neural network classifiers as custom functions. Microsoft Azure =AZUREML() function to access a catalog of pre-built AI models.
matrix for inputs to hidden layer. Place this in cells F2:G3 . A vector for the hidden layer. Place this in cells F4:G4 . Weights 2 ( W(2)cap W raised to the open paren 2 close paren power ): A
This produces a 4x2 matrix (4 samples × 2 hidden neurons).
Initially, with random weights, loss will be ~0.25 (chance level). Your goal: reduce loss to <0.01.
For simplicity, you can initialize all weights to small random values between 0.01 and 0.08 and all biases to 0. In a real scenario, proper initialization helps convergence, but for our Excel experiment, this is a fine starting point. Place these initial parameters in dedicated cells at the top of your worksheet.
=MMULT(TRANSPOSE(HiddenActivation), delta_output) / ROWS(InputData)
Hello there!
Thanks for using XRCLOUD. We strive to provide the highest quality and care deeply about your concerns.