7-Working Example-01-08-2024
7-Working Example-01-08-2024
Networks
Example 1: whether you should go surfing (Yes:
1, No: 0).
• The decision to go or not to go is our predicted outcome, or y-hat.
• Let’s assume that there are three factors influencing your decision-
making:
• Are the waves good? (Yes: 1, No: 0)
• Is the line-up empty? (Yes: 1, No: 0)
• Has there been a recent shark attack? (Yes: 0, No: 1)
• X1 = 1, since the waves are pumping
• X2 = 0, since the crowds are out
• X3 = 1, since there hasn’t been a recent shark attack
Assign some weights to determine importance. Larger weights
signify that particular variables are of greater importance to the
decision or outcome.
1
6
Delhi Weighted Sum
1 2
9
0 /1
0
8
Shimla
1
A neural network is composed of 3 types
of layers
• Input layer — It is used to pass in our input(an image, text or any
suitable type of data for NN).
• Hidden Layer — These are the layers in between the input and output
layers. These layers are responsible for learning the mapping between
input and output.
• Output Layer — This layer is responsible for giving us the output of
the NN given our inputs.
Example-2
• Example 3: