New📚 Introducing Index Discoveries: Unleash the magic of books! Dive into captivating stories and expand your horizons. Explore now! 🌟 #IndexDiscoveries #NewProduct #Books Check it out

Write Sign In
Index Discoveries Index Discoveries
Write
Sign In

Join to Community

Do you want to contribute by writing guest posts on this blog?

Please contact us and send us a resume of previous articles that you have written.

Member-only story

Neural Networks Simply Calculated With Numerical Examples

Jese Leos
· 4.3k Followers · Follow
Published in Neural Networks Simply Calculated With Numerical Examples : Networks Calculated
6 min read ·
40 View Claps
9 Respond
Save
Listen
Share

Neural networks have become increasingly popular in various fields, including artificial intelligence, machine learning, and data analysis. These powerful computational models are designed to mimic the workings of the human brain, enabling them to learn from data, recognize patterns, and make predictions. In this article, we will explore the basics of neural networks and provide numerical examples to help you understand their calculation process.

Understanding Neural Networks

A neural network consists of interconnected artificial neurons, also known as nodes or units. These nodes are organized in layers, typically including an input layer, one or more hidden layers, and an output layer. Numeric values, called weights, connect these neurons. The weights represent the strength of the connections between neurons and determine the impact of each neuron's input on the final output.

The calculation process of a neural network involves two main stages: forward propagation and backward propagation. During forward propagation, the input data travels through the network layer by layer, with each neuron receiving and processing the incoming signal. The weighted sum of the inputs is then passed through an activation function, which introduces non-linearity into the network and helps the model learn complex relationships in the data.

Neural networks simply calculated with numerical examples!: Networks calculated
by Óscar Ocaña Parrón ([Print Replica] Kindle Edition)

4.6 out of 5

Language : English
File size : 1497 KB
Screen Reader : Supported
Print length : 167 pages
Lending : Enabled
Paperback : 409 pages
Item Weight : 13.68 pounds
Dimensions : 6.1 x 0.93 x 9.25 inches

Once the output is generated, it is compared to the expected output, and a loss function is used to measure the error or discrepancy. The goal is to minimize this error and train the neural network to produce accurate predictions. This is where backward propagation, also known as backpropagation, comes into play. It involves adjusting the weights based on the calculated error, enabling the network to learn and improve its performance over time.

Numerical Examples

Now, let's dive into some numerical examples to better understand how neural networks perform calculations. We will use a simple neural network with a single hidden layer for demonstration purposes.

Example 1: XOR Gate

The XOR gate is a classic example that demonstrates the computational power of neural networks. It takes two binary inputs and produces a 1 if exactly one of the inputs is 1, otherwise it produces a 0.

In our neural network, we will have an input layer with two neurons to represent the binary inputs (0 or 1). The hidden layer will consist of two neurons, while the output layer will have a single neuron representing the binary output (0 or 1).

To calculate the output, we need to assign random weights to the connections between neurons. Let's assume the following weights:

  • Input Layer to Hidden Layer: w1 = 0.4, w2 = 0.9
  • Hidden Layer to Output Layer: w3 = 1.2, w4 = -1.0

For simplicity, we will use the sigmoid activation function, which maps any real-valued number to a value between 0 and 1.

Suppose we have the inputs A = 1 and B = 0. The calculation of the hidden layer neurons can be done as follows:

  1. Neuron 1 in the hidden layer: (A * w1) + (B * w2) = (1 * 0.4) + (0 * 0.9) = 0.4
  2. Neuron 2 in the hidden layer: (A * w3) + (B * w4) = (1 * 1.2) + (0 * -1.0) = 1.2

Next, we apply the activation function to each neuron in the hidden layer:

  1. Activation of Neuron 1: 1 / (1 + exp(-0.4)) = 0.5987
  2. Activation of Neuron 2: 1 / (1 + exp(-1.2)) = 0.7685

To calculate the output, we need to calculate the weighted sum of these hidden layer activations:

Output = (0.5987 * w3) + (0.7685 * w4) = (0.5987 * 1.2) + (0.7685 * -1.0) = 0.4184

Finally, we apply the activation function to the output neuron:

Activation of Output Neuron: 1 / (1 + exp(-0.4184)) = 0.6030

The neural network predicts a value of approximately 0.6030 for the XOR gate with inputs A = 1 and B = 0.

Example 2: Handwritten Digit Recognition

Another fascinating application of neural networks is handwritten digit recognition. Let's say we have a dataset of handwritten digits ranging from 0 to 9 and we want to train a neural network to recognize them.

In this example, we will use a neural network with an input layer of 784 neurons (representing a 28x28 pixel image), a hidden layer with 200 neurons, and an output layer with 10 neurons (one for each digit).

The weights will be initialized randomly, and the activation function used will be the rectified linear unit (ReLU), defined as the maximum between 0 and the weighted sum of inputs.

Suppose we have an image of the digit 7 as our input. The forward propagation process involves passing the input values through the network and calculating the activations of each neuron. The same process as described in Example 1 applies, but with larger dimensions and more complex calculations.

Once the output is obtained, the backward propagation algorithm adjusts the weights based on the calculated error, minimizing it and fine-tuning the network's ability to recognize digits accurately.

Neural networks are powerful computational models that can learn complex relationships from data. They are used in various applications, ranging from pattern recognition to predictive analytics, and have proven to be highly effective in many fields. In this article, we explored the basics of neural networks and provided numerical examples to help you understand their calculation process. By simulating the calculations involved in simple problems like the XOR gate and complex tasks like handwritten digit recognition, we highlighted the capabilities and potential of neural networks. So, dive into this fascinating field, experiment with different network architectures, and unleash the power of neural networks in your own projects!

Neural networks simply calculated with numerical examples!: Networks calculated
by Óscar Ocaña Parrón ([Print Replica] Kindle Edition)

4.6 out of 5

Language : English
File size : 1497 KB
Screen Reader : Supported
Print length : 167 pages
Lending : Enabled
Paperback : 409 pages
Item Weight : 13.68 pounds
Dimensions : 6.1 x 0.93 x 9.25 inches

Neural networks simply calculated with numerical examples!
The author gave himself to this complex subject with interest and curiosity.
Unfortunately, NUMBER EXAMPLES are in the specialist literature hard to find.
This book is intended to close this gap.
Simple Numerical examples are calculated step by step. Thereby
the procedure becomes "self-explanatory".

Actually, "anyone" who understands simple calculations can
also understand how a neural network works.

Neural networks simply calculated with numerical examples
That is the title of this book.
***BECAUSE***
“Gray, dear friend, is all theory and green the golden tree of life”
(Johann von Wolfgang von Goethe)

With this in mind, I would like to invite the valued reader
with me a journey into the "realm of neural networks" to start.

Questions after questions:
What can a neural network do?
What does a neural network calculate?
How is that calculated?
How can you program a neural network?

A very simple "perceptron" and a small neuronal Back bropagation
network are presented.

The "error correction in reverse gear" is the author in Detail
carried out step by step.
Every arithmetic step becomes understandable through the "NUMBER EXAMPLES".

Furthermore, the forecasting method according to Holt
is also briefly presented, which fits well with
the topic "forecasting and previewing data series".

This book is also an "artistic" work in the broadest sense
Senses and thus completely incomplete.

The author did “EVERYTHING” and the examples programmed
in a simple classic programming language.

The author also does not want to make any money with this book,
this book was written “exclusively” for the fun and enjoyment of the topic.

Ing. Gerald Wartensteiner
The author from Austria apologizes for any translation errors
caused by the translation program and hope these mistakes are funny

Read full of this story with a FREE account.
Already have an account? Sign in
40 View Claps
9 Respond
Save
Listen
Share
Recommended from Index Discoveries
Cuba For The Independent Traveler: A Visual Guide (Visual Guides For The Independent Traveler)
Jean Blair profile picture Jean Blair

Discover the Ultimate Visual Guide to Enhance Your...

Are you an adventurous soul who loves...

· 5 min read
856 View Claps
83 Respond
Study Guide For Lord Byron S Manfred: A Dramatic Poem
Patrick Hayes profile picture Patrick Hayes
· 4 min read
129 View Claps
14 Respond
Technical Indicator Engineering For Machine Learning: Volume I: Detecting Major Stock Market Bottoms With Moving Average Diffusion Indicators
William Wordsworth profile picture William Wordsworth
· 5 min read
64 View Claps
7 Respond
Study Guide For Leslie Marmon Silko S The Man To Send Rain Clouds
Felix Hayes profile picture Felix Hayes

Unlock the Mysteries of Leslie Marmon Silko's "The Man to...

Are you an avid reader and a fan of Native...

· 5 min read
1.2k View Claps
78 Respond
The Land Of Clouds: Story To Build Emotional Intelligence For Kids : Children S Emotion Coloring And Activity (self Esteem Resilience Self Confidence) For Kids (Aprendiendo Con Leo Y Sofi)
Greg Foster profile picture Greg Foster

A Magical Adventure: The Enchanting Story to Build...

As parents, one of the greatest gifts we can...

· 5 min read
170 View Claps
15 Respond
Learn To Program Step By Step: Using The OpenCVlibrary In C++ With Visual Studio
Brandon Cox profile picture Brandon Cox

The Ultimate Step-By-Step Guide to Learning Programming

In today's digital age, programming...

· 5 min read
738 View Claps
69 Respond
Raise Rise: Entrepeneurs Are From Mars And Funds Are From Venus How Can They Understand Each Other?
Dakota Powell profile picture Dakota Powell

Entrepreneurs Are From Mars And Funds Are From Venus: How...

Have you ever wondered why entrepreneurs...

· 5 min read
1k View Claps
53 Respond
The Papers Of Thomas Jefferson Volume 32: 1 June 1800 To 16 February 1801
Anton Chekhov profile picture Anton Chekhov
· 4 min read
1.2k View Claps
72 Respond
Essential Number Facts And Times Tables: (and How To Learn Them For Instant Recall)
George R.R. Martin profile picture George R.R. Martin

Supercharge Your Memory with These Easy Techniques for...

Are you tired of forgetting important...

· 6 min read
379 View Claps
44 Respond
Light Your Dreams Weekly And Daily Planner With Motivational Flavour: Short Term Goals Planner (3 Months) With Hope And Optimistic (Dream Planers 1)
Hugh Bell profile picture Hugh Bell

Short Term Goals Planner: Months Filled With Hope And...

In a constantly evolving world, setting...

· 6 min read
462 View Claps
84 Respond
Sewing Activewear: How To Make Your Own Professional Looking Athletic Wear
Leslie Carter profile picture Leslie Carter
· 5 min read
539 View Claps
37 Respond
Study Guide For Ayn Rand S Anthem (Course Hero Study Guides)
Kenneth Parker profile picture Kenneth Parker
· 4 min read
299 View Claps
32 Respond

Light bulb Advertise smarter! Our strategic ad space ensures maximum exposure. Reserve your spot today!

Top Community

  • Gillian Flynn profile picture
    Gillian Flynn
    Follow · 13.1k
  • Isabel Allende profile picture
    Isabel Allende
    Follow · 7.5k
  • Ed Cooper profile picture
    Ed Cooper
    Follow · 18.2k
  • Kelly Blair profile picture
    Kelly Blair
    Follow · 14k
  • Eli Blair profile picture
    Eli Blair
    Follow · 2.7k
  • Rachel Sullivan profile picture
    Rachel Sullivan
    Follow · 5.5k
  • Hunter Mitchell profile picture
    Hunter Mitchell
    Follow · 2.4k
  • Isabella Brooks profile picture
    Isabella Brooks
    Follow · 2.3k

Sign up for our newsletter and stay up to date!

By subscribing to our newsletter, you'll receive valuable content straight to your inbox, including informative articles, helpful tips, product launches, and exciting promotions.

By subscribing, you agree with our Privacy Policy.


© 2024 Index Discoveries™ is a registered trademark. All Rights Reserved.