SlideShare a Scribd company logo
AI Club
AI Club
How Neural Networks
Learn ā€“ Part III
The Model
The Network and
Its Weights
w1
1
w1
2w1
3
w1
4
w6
1
w6
2w6
3 w6
4
Real life Neural Networks can have hundreds of
hidden layers and 1000s of neurons per layer, or
more! This means millions or billions of weights!
How do you learn the weights ?
AI Algorithm
Training
DATA
Examples of
happy and
sad
MODE
L
= weights of the
neural
network
AI Algorithm
Prediction
PREDICT
ANSWE
R
ā€œHappyā€
ā€¢ Weights of a neural network are learnt during training
How do you learn the weights?
ā€¢ Weights of a neural network are learnt during training
ā€¢ Weights are learnt using a mechanism called stochastic
gradient descent (SGD)
Parameters of a neural network
ā€¢ Learning rate: The rate at which you will make changes to
your model weights
ā€¢ For example: if initial weight = 1, should the change to a weight
value be 0.1 or 0.01 or 0.001 resulting in 1.1 or 1.01 or 1.001
Parameters of a neural network
ā€¢ Learning rate: The rate at which you will make changes to
your model weights
ā€¢ For example: if initial weight = 1, should the change to a weight
value be 0.1 or 0.01 or 0.001 resulting in 1.1 or 1.01 or 1.001
ā€¢ Mini-batch size: The number of samples that will be used to
make a change to the weights.
ā€¢ For example: I will look at 10 sample images to understand how
I should change my model weights.
Parameters of a neural network
ā€¢ Learning rate: The rate at which you will make changes to your model
weights
ā€¢ For example: if initial weight = 1, should the change to a weight value be 0.1 or 0.01
or 0.001 resulting in 1.1 or 1.01 or 1.001
ā€¢ Mini-batch size: The number of samples that will be used to make a
change to the weights.
ā€¢ For example: I will look at 10 sample images to understand how I should change my
model weights.
ā€¢ Epochs: Number of times you will go through the entire data to make
changes to the weights.
ā€¢ For example: If epochs = 5, I have looked at all samples 5 times and made changes
to weights (5*(samples/Mini-batch size)) number of times.
Let us look at these parameters a bit more
ā€¢ Learning rate: The rate at which you will make changes to
your model weights
ā€¢ For example: if initial weight = 1, should the change to a weight
value be 0.1 or 0.01 or 0.001 resulting in 1.1 or 1.01 or 1.001
ā€¢ What happens if it is too high or too low?
Let us look at these parameters a bit more
ā— Mini-batch size: The number of samples that will be used to
make a change to the weights.
ā—‹ For example: I will look at 10 sample images to understand how I
should change my model weights.
ā€¢ What happens if it is too high or too low?
ā€¢ Too high - not much benefit, takes a lot longer and cost more
ā€¢ Too low, may not get good results
Let us look at these parameters a bit more
ā— Epochs: Number of times you will go through the entire data to
make changes to the weights.
ā—‹ For example: If epochs = 5, I have looked at all samples 5 times
and made changes to weights (5*(samples/Mini-batch size))
number of times.
ā€¢ What happens if it is too high or too low?
ā€¢ Too high - not much benefit, takes a lot longer and cost more
ā€¢ Too low, may not get good results
THANK YOU
https://aiclub.world
info@pyxeda.ai

More Related Content

Similar to How neural networks learn part iii

SI Units and Unit Conversion Slides.pptx
SI Units and Unit Conversion Slides.pptxSI Units and Unit Conversion Slides.pptx
SI Units and Unit Conversion Slides.pptx
SiharaGallage
Ā 
SI Units and Unit Conversion Slides.pptx
SI Units and Unit Conversion Slides.pptxSI Units and Unit Conversion Slides.pptx
SI Units and Unit Conversion Slides.pptx
SiharaGallage
Ā 
Measurement
MeasurementMeasurement
Measurement
walt sautter
Ā 
Moles, Calculations, Dimensional Analysis!!!
Moles, Calculations, Dimensional Analysis!!!Moles, Calculations, Dimensional Analysis!!!
Moles, Calculations, Dimensional Analysis!!!guest806c70
Ā 
Topic 5 (multiple regression)
Topic 5 (multiple regression)Topic 5 (multiple regression)
Topic 5 (multiple regression)
Ryan Herzog
Ā 
Drug calculation tutorial_091407
Drug calculation tutorial_091407Drug calculation tutorial_091407
Drug calculation tutorial_091407olayski
Ā 
CS532L4_Backpropagation.pptx
CS532L4_Backpropagation.pptxCS532L4_Backpropagation.pptx
CS532L4_Backpropagation.pptx
MFaisalRiaz5
Ā 
Topic 5 (multiple regression)
Topic 5 (multiple regression)Topic 5 (multiple regression)
Topic 5 (multiple regression)
Ryan Herzog
Ā 
Topic 3 (Stats summary)
Topic 3 (Stats summary)Topic 3 (Stats summary)
Topic 3 (Stats summary)
Ryan Herzog
Ā 
Mole conversions
Mole conversionsMole conversions
Mole conversions
Heidi Cooley
Ā 
Writing lab reports
Writing lab reportsWriting lab reports
Writing lab reportsphspsquires
Ā 
Mr Exham's Guide to writing up a Biology Practical Investigation
Mr Exham's Guide to writing up a Biology Practical InvestigationMr Exham's Guide to writing up a Biology Practical Investigation
Mr Exham's Guide to writing up a Biology Practical Investigation
mrexham
Ā 
[CVPR2022, LongVersion] Online Continual Learning on a Contaminated Data Stre...
[CVPR2022, LongVersion] Online Continual Learning on a Contaminated Data Stre...[CVPR2022, LongVersion] Online Continual Learning on a Contaminated Data Stre...
[CVPR2022, LongVersion] Online Continual Learning on a Contaminated Data Stre...
Jihwan Bang
Ā 
PowerPointCh2_Sections2.5.pdf
PowerPointCh2_Sections2.5.pdfPowerPointCh2_Sections2.5.pdf
PowerPointCh2_Sections2.5.pdf
amimoronaldodhiambo
Ā 
Validity andreliability
Validity andreliabilityValidity andreliability
Validity andreliability
nuwan udugampala
Ā 
Mixed Effects Models - Post-Hoc Comparisons
Mixed Effects Models - Post-Hoc ComparisonsMixed Effects Models - Post-Hoc Comparisons
Mixed Effects Models - Post-Hoc Comparisons
Scott Fraundorf
Ā 
Measurements
MeasurementsMeasurements
Measurements
Adrianna Nading
Ā 
COORDINATE ALGEBRA Unit One Power point
COORDINATE ALGEBRA Unit One Power pointCOORDINATE ALGEBRA Unit One Power point
COORDINATE ALGEBRA Unit One Power pointAmanda Manning
Ā 
Maths Behind Models.pptx
Maths Behind Models.pptxMaths Behind Models.pptx
Maths Behind Models.pptx
Mukul Kumar Singh Chauhan
Ā 
Experimental Design Scientific Method and GraphingREVISED.ppt
Experimental Design Scientific Method and GraphingREVISED.pptExperimental Design Scientific Method and GraphingREVISED.ppt
Experimental Design Scientific Method and GraphingREVISED.ppt
MathandScienced
Ā 

Similar to How neural networks learn part iii (20)

SI Units and Unit Conversion Slides.pptx
SI Units and Unit Conversion Slides.pptxSI Units and Unit Conversion Slides.pptx
SI Units and Unit Conversion Slides.pptx
Ā 
SI Units and Unit Conversion Slides.pptx
SI Units and Unit Conversion Slides.pptxSI Units and Unit Conversion Slides.pptx
SI Units and Unit Conversion Slides.pptx
Ā 
Measurement
MeasurementMeasurement
Measurement
Ā 
Moles, Calculations, Dimensional Analysis!!!
Moles, Calculations, Dimensional Analysis!!!Moles, Calculations, Dimensional Analysis!!!
Moles, Calculations, Dimensional Analysis!!!
Ā 
Topic 5 (multiple regression)
Topic 5 (multiple regression)Topic 5 (multiple regression)
Topic 5 (multiple regression)
Ā 
Drug calculation tutorial_091407
Drug calculation tutorial_091407Drug calculation tutorial_091407
Drug calculation tutorial_091407
Ā 
CS532L4_Backpropagation.pptx
CS532L4_Backpropagation.pptxCS532L4_Backpropagation.pptx
CS532L4_Backpropagation.pptx
Ā 
Topic 5 (multiple regression)
Topic 5 (multiple regression)Topic 5 (multiple regression)
Topic 5 (multiple regression)
Ā 
Topic 3 (Stats summary)
Topic 3 (Stats summary)Topic 3 (Stats summary)
Topic 3 (Stats summary)
Ā 
Mole conversions
Mole conversionsMole conversions
Mole conversions
Ā 
Writing lab reports
Writing lab reportsWriting lab reports
Writing lab reports
Ā 
Mr Exham's Guide to writing up a Biology Practical Investigation
Mr Exham's Guide to writing up a Biology Practical InvestigationMr Exham's Guide to writing up a Biology Practical Investigation
Mr Exham's Guide to writing up a Biology Practical Investigation
Ā 
[CVPR2022, LongVersion] Online Continual Learning on a Contaminated Data Stre...
[CVPR2022, LongVersion] Online Continual Learning on a Contaminated Data Stre...[CVPR2022, LongVersion] Online Continual Learning on a Contaminated Data Stre...
[CVPR2022, LongVersion] Online Continual Learning on a Contaminated Data Stre...
Ā 
PowerPointCh2_Sections2.5.pdf
PowerPointCh2_Sections2.5.pdfPowerPointCh2_Sections2.5.pdf
PowerPointCh2_Sections2.5.pdf
Ā 
Validity andreliability
Validity andreliabilityValidity andreliability
Validity andreliability
Ā 
Mixed Effects Models - Post-Hoc Comparisons
Mixed Effects Models - Post-Hoc ComparisonsMixed Effects Models - Post-Hoc Comparisons
Mixed Effects Models - Post-Hoc Comparisons
Ā 
Measurements
MeasurementsMeasurements
Measurements
Ā 
COORDINATE ALGEBRA Unit One Power point
COORDINATE ALGEBRA Unit One Power pointCOORDINATE ALGEBRA Unit One Power point
COORDINATE ALGEBRA Unit One Power point
Ā 
Maths Behind Models.pptx
Maths Behind Models.pptxMaths Behind Models.pptx
Maths Behind Models.pptx
Ā 
Experimental Design Scientific Method and GraphingREVISED.ppt
Experimental Design Scientific Method and GraphingREVISED.pptExperimental Design Scientific Method and GraphingREVISED.ppt
Experimental Design Scientific Method and GraphingREVISED.ppt
Ā 

More from aiclub_slides

Linear regression middleschool
Linear regression middleschoolLinear regression middleschool
Linear regression middleschool
aiclub_slides
Ā 
Pa2 project template
Pa2 project templatePa2 project template
Pa2 project template
aiclub_slides
Ā 
Knn intro advanced_middleschool
Knn intro advanced_middleschoolKnn intro advanced_middleschool
Knn intro advanced_middleschool
aiclub_slides
Ā 
M1 regression metrics_middleschool
M1 regression metrics_middleschoolM1 regression metrics_middleschool
M1 regression metrics_middleschool
aiclub_slides
Ā 
Pa1 json requests
Pa1 json requestsPa1 json requests
Pa1 json requests
aiclub_slides
Ā 
Mnist images
Mnist imagesMnist images
Mnist images
aiclub_slides
Ā 
Mnist images
Mnist imagesMnist images
Mnist images
aiclub_slides
Ā 
Ai in real life face detection
Ai in real life   face detectionAi in real life   face detection
Ai in real life face detection
aiclub_slides
Ā 
Res net high level intro
Res net high level introRes net high level intro
Res net high level intro
aiclub_slides
Ā 
Neural networks and flattened images
Neural networks and flattened imagesNeural networks and flattened images
Neural networks and flattened images
aiclub_slides
Ā 
What is a_neural_network
What is a_neural_networkWhat is a_neural_network
What is a_neural_network
aiclub_slides
Ā 
Introduction to deep learning image classification
Introduction to deep learning   image classificationIntroduction to deep learning   image classification
Introduction to deep learning image classification
aiclub_slides
Ā 
Accuracy middleschool
Accuracy middleschoolAccuracy middleschool
Accuracy middleschool
aiclub_slides
Ā 
Introduction to classification_middleschool
Introduction to classification_middleschoolIntroduction to classification_middleschool
Introduction to classification_middleschool
aiclub_slides
Ā 
Introduction to the cloud
Introduction to the cloudIntroduction to the cloud
Introduction to the cloud
aiclub_slides
Ā 
Basics of data
Basics of dataBasics of data
Basics of data
aiclub_slides
Ā 
Ai basics
Ai basicsAi basics
Ai basics
aiclub_slides
Ā 
Ai lifecycle and navigator
Ai lifecycle and navigatorAi lifecycle and navigator
Ai lifecycle and navigator
aiclub_slides
Ā 
How AIs are different from us level 1
How AIs are different from us   level 1How AIs are different from us   level 1
How AIs are different from us level 1
aiclub_slides
Ā 

More from aiclub_slides (20)

Linear regression middleschool
Linear regression middleschoolLinear regression middleschool
Linear regression middleschool
Ā 
Pa2 project template
Pa2 project templatePa2 project template
Pa2 project template
Ā 
Knn intro advanced_middleschool
Knn intro advanced_middleschoolKnn intro advanced_middleschool
Knn intro advanced_middleschool
Ā 
M1 regression metrics_middleschool
M1 regression metrics_middleschoolM1 regression metrics_middleschool
M1 regression metrics_middleschool
Ā 
Pa1 json requests
Pa1 json requestsPa1 json requests
Pa1 json requests
Ā 
Mnist images
Mnist imagesMnist images
Mnist images
Ā 
Mnist images
Mnist imagesMnist images
Mnist images
Ā 
Ai in real life face detection
Ai in real life   face detectionAi in real life   face detection
Ai in real life face detection
Ā 
Cnn
CnnCnn
Cnn
Ā 
Res net high level intro
Res net high level introRes net high level intro
Res net high level intro
Ā 
Neural networks and flattened images
Neural networks and flattened imagesNeural networks and flattened images
Neural networks and flattened images
Ā 
What is a_neural_network
What is a_neural_networkWhat is a_neural_network
What is a_neural_network
Ā 
Introduction to deep learning image classification
Introduction to deep learning   image classificationIntroduction to deep learning   image classification
Introduction to deep learning image classification
Ā 
Accuracy middleschool
Accuracy middleschoolAccuracy middleschool
Accuracy middleschool
Ā 
Introduction to classification_middleschool
Introduction to classification_middleschoolIntroduction to classification_middleschool
Introduction to classification_middleschool
Ā 
Introduction to the cloud
Introduction to the cloudIntroduction to the cloud
Introduction to the cloud
Ā 
Basics of data
Basics of dataBasics of data
Basics of data
Ā 
Ai basics
Ai basicsAi basics
Ai basics
Ā 
Ai lifecycle and navigator
Ai lifecycle and navigatorAi lifecycle and navigator
Ai lifecycle and navigator
Ā 
How AIs are different from us level 1
How AIs are different from us   level 1How AIs are different from us   level 1
How AIs are different from us level 1
Ā 

Recently uploaded

Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
Ā 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
Ā 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
Ā 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
Ā 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
Ā 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
Ā 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
Ā 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
Ā 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
Ā 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
Ā 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
Ā 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
Ā 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
Ā 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
Ā 
BƀI Tįŗ¬P Bį»” TRį»¢ TIįŗ¾NG ANH GLOBAL SUCCESS Lį»šP 3 - Cįŗ¢ NĂM (CƓ FILE NGHE Vƀ ĐƁP Ɓ...
BƀI Tįŗ¬P Bį»” TRį»¢ TIįŗ¾NG ANH GLOBAL SUCCESS Lį»šP 3 - Cįŗ¢ NĂM (CƓ FILE NGHE Vƀ ĐƁP Ɓ...BƀI Tįŗ¬P Bį»” TRį»¢ TIįŗ¾NG ANH GLOBAL SUCCESS Lį»šP 3 - Cįŗ¢ NĂM (CƓ FILE NGHE Vƀ ĐƁP Ɓ...
BƀI Tįŗ¬P Bį»” TRį»¢ TIįŗ¾NG ANH GLOBAL SUCCESS Lį»šP 3 - Cįŗ¢ NĂM (CƓ FILE NGHE Vƀ ĐƁP Ɓ...
Nguyen Thanh Tu Collection
Ā 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
Ā 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
timhan337
Ā 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
Ā 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
Ā 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
Ā 

Recently uploaded (20)

Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Ā 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
Ā 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
Ā 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Ā 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Ā 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Ā 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
Ā 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
Ā 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
Ā 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Ā 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
Ā 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Ā 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Ā 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
Ā 
BƀI Tįŗ¬P Bį»” TRį»¢ TIįŗ¾NG ANH GLOBAL SUCCESS Lį»šP 3 - Cįŗ¢ NĂM (CƓ FILE NGHE Vƀ ĐƁP Ɓ...
BƀI Tįŗ¬P Bį»” TRį»¢ TIįŗ¾NG ANH GLOBAL SUCCESS Lį»šP 3 - Cįŗ¢ NĂM (CƓ FILE NGHE Vƀ ĐƁP Ɓ...BƀI Tįŗ¬P Bį»” TRį»¢ TIįŗ¾NG ANH GLOBAL SUCCESS Lį»šP 3 - Cįŗ¢ NĂM (CƓ FILE NGHE Vƀ ĐƁP Ɓ...
BƀI Tįŗ¬P Bį»” TRį»¢ TIįŗ¾NG ANH GLOBAL SUCCESS Lį»šP 3 - Cįŗ¢ NĂM (CƓ FILE NGHE Vƀ ĐƁP Ɓ...
Ā 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Ā 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
Ā 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ā 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
Ā 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Ā 

How neural networks learn part iii

  • 2. AI Club How Neural Networks Learn ā€“ Part III
  • 3. The Model The Network and Its Weights w1 1 w1 2w1 3 w1 4 w6 1 w6 2w6 3 w6 4 Real life Neural Networks can have hundreds of hidden layers and 1000s of neurons per layer, or more! This means millions or billions of weights!
  • 4. How do you learn the weights ? AI Algorithm Training DATA Examples of happy and sad MODE L = weights of the neural network AI Algorithm Prediction PREDICT ANSWE R ā€œHappyā€ ā€¢ Weights of a neural network are learnt during training
  • 5. How do you learn the weights? ā€¢ Weights of a neural network are learnt during training ā€¢ Weights are learnt using a mechanism called stochastic gradient descent (SGD)
  • 6. Parameters of a neural network ā€¢ Learning rate: The rate at which you will make changes to your model weights ā€¢ For example: if initial weight = 1, should the change to a weight value be 0.1 or 0.01 or 0.001 resulting in 1.1 or 1.01 or 1.001
  • 7. Parameters of a neural network ā€¢ Learning rate: The rate at which you will make changes to your model weights ā€¢ For example: if initial weight = 1, should the change to a weight value be 0.1 or 0.01 or 0.001 resulting in 1.1 or 1.01 or 1.001 ā€¢ Mini-batch size: The number of samples that will be used to make a change to the weights. ā€¢ For example: I will look at 10 sample images to understand how I should change my model weights.
  • 8. Parameters of a neural network ā€¢ Learning rate: The rate at which you will make changes to your model weights ā€¢ For example: if initial weight = 1, should the change to a weight value be 0.1 or 0.01 or 0.001 resulting in 1.1 or 1.01 or 1.001 ā€¢ Mini-batch size: The number of samples that will be used to make a change to the weights. ā€¢ For example: I will look at 10 sample images to understand how I should change my model weights. ā€¢ Epochs: Number of times you will go through the entire data to make changes to the weights. ā€¢ For example: If epochs = 5, I have looked at all samples 5 times and made changes to weights (5*(samples/Mini-batch size)) number of times.
  • 9. Let us look at these parameters a bit more ā€¢ Learning rate: The rate at which you will make changes to your model weights ā€¢ For example: if initial weight = 1, should the change to a weight value be 0.1 or 0.01 or 0.001 resulting in 1.1 or 1.01 or 1.001 ā€¢ What happens if it is too high or too low?
  • 10.
  • 11. Let us look at these parameters a bit more ā— Mini-batch size: The number of samples that will be used to make a change to the weights. ā—‹ For example: I will look at 10 sample images to understand how I should change my model weights. ā€¢ What happens if it is too high or too low? ā€¢ Too high - not much benefit, takes a lot longer and cost more ā€¢ Too low, may not get good results
  • 12. Let us look at these parameters a bit more ā— Epochs: Number of times you will go through the entire data to make changes to the weights. ā—‹ For example: If epochs = 5, I have looked at all samples 5 times and made changes to weights (5*(samples/Mini-batch size)) number of times. ā€¢ What happens if it is too high or too low? ā€¢ Too high - not much benefit, takes a lot longer and cost more ā€¢ Too low, may not get good results