SlideShare a Scribd company logo
8. Neural Network
Representation:
Neural networks == algorithm
WHAT IS THE PROBLEM WITH POLYNOMIAL HYPOTHESIS:
If there are more features:
The no of quadratic features grows as O(n2
):
The no of cubic features grow: O(n3
):
As the features grow: the problem of overfitting may also occur.
Example:
With linear or non-linear regression, the values required to predict
if it’s a car will be very high, it will require intensity information of
all individual pixels of the image.
This will be a very tedious to check with hypothesis fxn.. (all pixel
values being a feature).
This is just for individual features.. quadratic features and cubic and
higher order features may also be there.
These algorithms take too many features and for simple tasks like
computer vision. So, they are inefficient.
Therefore, we use neural networks algorithm
 Neurons and brain:
Auditory cortex of the brain is the part which is responsible for
interpretation of what we hear.
If we cut the link bw ear and the auditory cortex.. and rewire it to
the eye: It will learn to see.
Similarly: somatosensory cortex is responsible for the sense of
touch.. but if we rewire it to the eye.. it will learn to see.
This shows that same type of brain tissues can learn all types of
things.
SENSOR REPRESENTATION IN BRAIN:
Applications:
Here, the camera sees a low resolution b/w image of the object and
this camera is wired to a device mounted on tongue ..
Now, for each pixel on the image. there is a small dot on this
device on tongue. which applies a high voltage on pixels with high
brightness and low voltage on pixels with low brightness.
The tongue senses this voltage and with time the brain may learn to
see with tongue
Human brain can learn to sense distance from the echo of sound
they produce
In this belt, the speaker on the north direction always beeps
If we implant a 3rd
eye on a frog it will learn to use it.
MODEL REPRESENTATION:
Dendrites = input
Cell body = computational unit
Axon = output carrier from one neuron to another
Dendrites are like the input features
NEURON model: logistic unit:
Neural networks simulate neurons
Here h(x) is the output
We can also include an x0 == bias unit which is always ==1
For logistic unit:
Here Θ is called ==
weights/parameters
NEURAL NETWORK:
Layer 1 = input layer
Layer 2 == hidden layer—contains activation units
Layer 3 = output layer
➢We can also have x0 and a0 – bias unit
➢Here, all the superscripts denote the no of layer
➢Subscripts of a denote different types of algos used in them
during computation
➢Subscripts of x denote – different input features
➢Subscripts of Θ are combination of subscripts of a and x on
which they are applied
In a1, a2, a3 – all Θ have level=1 -- it controls mapping from
layer 1 to layer 2
All a have level =2
In h(x) – all Θ have level=2 -- it controls mapping from layer 2
to layer 3
All a have level=2
The +1 comes from the addition in Θ( j )
of the "bias nodes," x0 and
Θ0
( j )
. In other words the output nodes will not include the bias
nodes while the inputs will.
Vectorized implementation:
Each a can be written as g( z )
The insides of brackets are denoted by z:
Now a vector of all 3 a’s can be written as Θ.X:
Θ = vector of all values of Θ
X = vector of values of all features
Therefore,:
We can also call all the features in the input layer as activations of
level 1
a( 1 )
= x
In general:
Also, we need an extra bias activation: always =1
We can then add a bias unit (equal to 1) to layer j after we have
computed all a( j )
. This will be element and will be equal to 1.
Or in general:
This last theta matrix will have only one row Θ( j )
which is multiplied
by one column a( j ) so that our result is a single number.
This looks like logistic regression in which input features are “a’s”
But a’s are themselves derived from fxns of x.
The neural networks learnt its own new features from the old
features and used them into a new logistic regression while going
from level 2 to level 3.
So, here we transformed our original input features(x’s) into new
features(a’s), and they are used in logistic regression.
So, we are saved from using high order features like quadratics (x2
or x1x2) or cubics (x3
or x1x2x3)
Network architectures may have more layers, o/p of each layer is
input to next.
INTUITIONS OF NEURAL NETWORKS:
Simplified version:
XNOR: (a AND b) OR (a’ AND b’)
Adding the next layer:
MULTICLASS CLASSIFICATION:
Its just an extension of One vs all technique:
Suppose we want to classify amongn 4 objets:
To classify data into multiple classes, we let our hypothesis function
return a vector of values.
This means we want 4 o/p all at one.. each o/p corresponds to one
of our objects
Therefore, our o/p is a 4 dimentional vector:
Each dimention can be 1 or 0 depending on which object is
identified
we used to represent y in this way, but
now:

More Related Content

What's hot

13 unsupervised learning clustering
13 unsupervised learning   clustering13 unsupervised learning   clustering
13 unsupervised learning clustering
TanmayVijay1
 
17 large scale machine learning
17 large scale machine learning17 large scale machine learning
17 large scale machine learning
TanmayVijay1
 
14 dimentionality reduction
14 dimentionality reduction14 dimentionality reduction
14 dimentionality reduction
TanmayVijay1
 
10 advice for applying ml
10 advice for applying ml10 advice for applying ml
10 advice for applying ml
TanmayVijay1
 
Teknik Simulasi
Teknik SimulasiTeknik Simulasi
Teknik Simulasi
Rezzy Caraka
 
Chapter 2 continuous_random_variable_2009
Chapter 2 continuous_random_variable_2009Chapter 2 continuous_random_variable_2009
Chapter 2 continuous_random_variable_2009ayimsevenfold
 
Logistic regression in Machine Learning
Logistic regression in Machine LearningLogistic regression in Machine Learning
Logistic regression in Machine Learning
Kuppusamy P
 
ML - Multiple Linear Regression
ML - Multiple Linear RegressionML - Multiple Linear Regression
ML - Multiple Linear Regression
Andrew Ferlitsch
 
Random number generation
Random number generationRandom number generation
Random number generation
Vinit Dantkale
 
U6 Cn2 Definite Integrals Intro
U6 Cn2 Definite Integrals IntroU6 Cn2 Definite Integrals Intro
U6 Cn2 Definite Integrals IntroAlexander Burt
 
31A WePrep Presentation
31A WePrep Presentation31A WePrep Presentation
31A WePrep Presentation
Ege Tanboga
 
simplex method
simplex methodsimplex method
simplex method
Karishma Chaudhary
 
Simplex Method Flowchart/Algorithm
Simplex Method Flowchart/AlgorithmSimplex Method Flowchart/Algorithm
Simplex Method Flowchart/Algorithm
Raja Adapa
 
Komunikasi digital minggu 2
Komunikasi digital minggu 2Komunikasi digital minggu 2
Komunikasi digital minggu 2Beni Putra
 
Uniform Distribution
Uniform DistributionUniform Distribution
Uniform Distribution
DataminingTools Inc
 
Two Pseudo-random Number Generators, an Overview
Two Pseudo-random Number Generators, an Overview Two Pseudo-random Number Generators, an Overview
Two Pseudo-random Number Generators, an Overview Kato Mivule
 
linear programming
linear programminglinear programming
linear programmingJazz Bhatti
 
Numerical approximation
Numerical approximationNumerical approximation
Numerical approximationMileacre
 

What's hot (20)

13 unsupervised learning clustering
13 unsupervised learning   clustering13 unsupervised learning   clustering
13 unsupervised learning clustering
 
17 large scale machine learning
17 large scale machine learning17 large scale machine learning
17 large scale machine learning
 
14 dimentionality reduction
14 dimentionality reduction14 dimentionality reduction
14 dimentionality reduction
 
10 advice for applying ml
10 advice for applying ml10 advice for applying ml
10 advice for applying ml
 
Teknik Simulasi
Teknik SimulasiTeknik Simulasi
Teknik Simulasi
 
Chapter 2 continuous_random_variable_2009
Chapter 2 continuous_random_variable_2009Chapter 2 continuous_random_variable_2009
Chapter 2 continuous_random_variable_2009
 
Logistic regression in Machine Learning
Logistic regression in Machine LearningLogistic regression in Machine Learning
Logistic regression in Machine Learning
 
ML - Multiple Linear Regression
ML - Multiple Linear RegressionML - Multiple Linear Regression
ML - Multiple Linear Regression
 
Random number generator
Random number generatorRandom number generator
Random number generator
 
Random number generation
Random number generationRandom number generation
Random number generation
 
Calc 2.1
Calc 2.1Calc 2.1
Calc 2.1
 
U6 Cn2 Definite Integrals Intro
U6 Cn2 Definite Integrals IntroU6 Cn2 Definite Integrals Intro
U6 Cn2 Definite Integrals Intro
 
31A WePrep Presentation
31A WePrep Presentation31A WePrep Presentation
31A WePrep Presentation
 
simplex method
simplex methodsimplex method
simplex method
 
Simplex Method Flowchart/Algorithm
Simplex Method Flowchart/AlgorithmSimplex Method Flowchart/Algorithm
Simplex Method Flowchart/Algorithm
 
Komunikasi digital minggu 2
Komunikasi digital minggu 2Komunikasi digital minggu 2
Komunikasi digital minggu 2
 
Uniform Distribution
Uniform DistributionUniform Distribution
Uniform Distribution
 
Two Pseudo-random Number Generators, an Overview
Two Pseudo-random Number Generators, an Overview Two Pseudo-random Number Generators, an Overview
Two Pseudo-random Number Generators, an Overview
 
linear programming
linear programminglinear programming
linear programming
 
Numerical approximation
Numerical approximationNumerical approximation
Numerical approximation
 

Similar to 8 neural network representation

Deep learning (2)
Deep learning (2)Deep learning (2)
Deep learning (2)
Muhanad Al-khalisy
 
Sparse autoencoder
Sparse autoencoderSparse autoencoder
Sparse autoencoder
Devashish Patel
 
MNN
MNNMNN
SOFT COMPUTERING TECHNICS -Unit 1
SOFT COMPUTERING TECHNICS -Unit 1SOFT COMPUTERING TECHNICS -Unit 1
SOFT COMPUTERING TECHNICS -Unit 1sravanthi computers
 
Perceptron (neural network)
Perceptron (neural network)Perceptron (neural network)
Perceptron (neural network)
EdutechLearners
 
Best data science courses
Best data science coursesBest data science courses
Best data science courses
prathyusha1234
 
Data science institute in kolkata
Data science institute in kolkataData science institute in kolkata
Data science institute in kolkata
Bharath S
 
Python data science course
Python data science coursePython data science course
Python data science course
bhuvan8999
 
Machine learning
Machine learning Machine learning
Machine learning
mamatha08
 
Data science course in pune
Data science course in puneData science course in pune
Data science course in pune
Data Analytics Courses in Pune
 
Data science course in pune
Data science course in puneData science course in pune
Data science course in pune
prathyusha1234
 
Data science certification in pune
Data science certification in puneData science certification in pune
Data science certification in pune
prathyusha1234
 
Data science certification
Data science certificationData science certification
Data science certification
prathyusha1234
 
Machine learning certification in gurgaon
Machine learning certification in gurgaon Machine learning certification in gurgaon
Machine learning certification in gurgaon
TejaspathiLV
 
Data science training ang placements
Data science training ang placementsData science training ang placements
Data science training ang placements
bhuvan8999
 
Data science course
Data science courseData science course
Data science course
prathyusha1234
 
Data science certification course
Data science certification courseData science certification course
Data science certification course
bhuvan8999
 
Data science certification in bangalore
Data science certification in bangaloreData science certification in bangalore
Data science certification in bangalore
prathyusha1234
 
Data science training in mumbai
Data science training in mumbaiData science training in mumbai
Data science training in mumbai
prathyusha1234
 
data science course
data science coursedata science course
data science course
marketer1234
 

Similar to 8 neural network representation (20)

Deep learning (2)
Deep learning (2)Deep learning (2)
Deep learning (2)
 
Sparse autoencoder
Sparse autoencoderSparse autoencoder
Sparse autoencoder
 
MNN
MNNMNN
MNN
 
SOFT COMPUTERING TECHNICS -Unit 1
SOFT COMPUTERING TECHNICS -Unit 1SOFT COMPUTERING TECHNICS -Unit 1
SOFT COMPUTERING TECHNICS -Unit 1
 
Perceptron (neural network)
Perceptron (neural network)Perceptron (neural network)
Perceptron (neural network)
 
Best data science courses
Best data science coursesBest data science courses
Best data science courses
 
Data science institute in kolkata
Data science institute in kolkataData science institute in kolkata
Data science institute in kolkata
 
Python data science course
Python data science coursePython data science course
Python data science course
 
Machine learning
Machine learning Machine learning
Machine learning
 
Data science course in pune
Data science course in puneData science course in pune
Data science course in pune
 
Data science course in pune
Data science course in puneData science course in pune
Data science course in pune
 
Data science certification in pune
Data science certification in puneData science certification in pune
Data science certification in pune
 
Data science certification
Data science certificationData science certification
Data science certification
 
Machine learning certification in gurgaon
Machine learning certification in gurgaon Machine learning certification in gurgaon
Machine learning certification in gurgaon
 
Data science training ang placements
Data science training ang placementsData science training ang placements
Data science training ang placements
 
Data science course
Data science courseData science course
Data science course
 
Data science certification course
Data science certification courseData science certification course
Data science certification course
 
Data science certification in bangalore
Data science certification in bangaloreData science certification in bangalore
Data science certification in bangalore
 
Data science training in mumbai
Data science training in mumbaiData science training in mumbai
Data science training in mumbai
 
data science course
data science coursedata science course
data science course
 

Recently uploaded

FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Tobias Schneck
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
Sri Ambati
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
Paul Groth
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
DianaGray10
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
Abida Shariff
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
Frank van Harmelen
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
Elena Simperl
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Jeffrey Haguewood
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
DianaGray10
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
Thijs Feryn
 

Recently uploaded (20)

FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 

8 neural network representation

  • 1. 8. Neural Network Representation: Neural networks == algorithm WHAT IS THE PROBLEM WITH POLYNOMIAL HYPOTHESIS: If there are more features: The no of quadratic features grows as O(n2 ):
  • 2. The no of cubic features grow: O(n3 ): As the features grow: the problem of overfitting may also occur. Example: With linear or non-linear regression, the values required to predict if it’s a car will be very high, it will require intensity information of all individual pixels of the image.
  • 3. This will be a very tedious to check with hypothesis fxn.. (all pixel values being a feature). This is just for individual features.. quadratic features and cubic and higher order features may also be there. These algorithms take too many features and for simple tasks like computer vision. So, they are inefficient. Therefore, we use neural networks algorithm
  • 4.  Neurons and brain: Auditory cortex of the brain is the part which is responsible for interpretation of what we hear. If we cut the link bw ear and the auditory cortex.. and rewire it to the eye: It will learn to see.
  • 5. Similarly: somatosensory cortex is responsible for the sense of touch.. but if we rewire it to the eye.. it will learn to see. This shows that same type of brain tissues can learn all types of things. SENSOR REPRESENTATION IN BRAIN: Applications: Here, the camera sees a low resolution b/w image of the object and this camera is wired to a device mounted on tongue ..
  • 6. Now, for each pixel on the image. there is a small dot on this device on tongue. which applies a high voltage on pixels with high brightness and low voltage on pixels with low brightness. The tongue senses this voltage and with time the brain may learn to see with tongue Human brain can learn to sense distance from the echo of sound they produce In this belt, the speaker on the north direction always beeps
  • 7. If we implant a 3rd eye on a frog it will learn to use it. MODEL REPRESENTATION: Dendrites = input Cell body = computational unit Axon = output carrier from one neuron to another Dendrites are like the input features
  • 8. NEURON model: logistic unit: Neural networks simulate neurons Here h(x) is the output We can also include an x0 == bias unit which is always ==1 For logistic unit: Here Θ is called == weights/parameters
  • 9. NEURAL NETWORK: Layer 1 = input layer Layer 2 == hidden layer—contains activation units Layer 3 = output layer ➢We can also have x0 and a0 – bias unit
  • 10. ➢Here, all the superscripts denote the no of layer ➢Subscripts of a denote different types of algos used in them during computation ➢Subscripts of x denote – different input features ➢Subscripts of Θ are combination of subscripts of a and x on which they are applied In a1, a2, a3 – all Θ have level=1 -- it controls mapping from layer 1 to layer 2 All a have level =2 In h(x) – all Θ have level=2 -- it controls mapping from layer 2 to layer 3 All a have level=2 The +1 comes from the addition in Θ( j ) of the "bias nodes," x0 and Θ0 ( j ) . In other words the output nodes will not include the bias nodes while the inputs will.
  • 11. Vectorized implementation: Each a can be written as g( z ) The insides of brackets are denoted by z:
  • 12. Now a vector of all 3 a’s can be written as Θ.X: Θ = vector of all values of Θ X = vector of values of all features Therefore,: We can also call all the features in the input layer as activations of level 1 a( 1 ) = x In general: Also, we need an extra bias activation: always =1 We can then add a bias unit (equal to 1) to layer j after we have computed all a( j ) . This will be element and will be equal to 1.
  • 13. Or in general: This last theta matrix will have only one row Θ( j ) which is multiplied by one column a( j ) so that our result is a single number.
  • 14. This looks like logistic regression in which input features are “a’s” But a’s are themselves derived from fxns of x. The neural networks learnt its own new features from the old features and used them into a new logistic regression while going from level 2 to level 3. So, here we transformed our original input features(x’s) into new features(a’s), and they are used in logistic regression.
  • 15. So, we are saved from using high order features like quadratics (x2 or x1x2) or cubics (x3 or x1x2x3) Network architectures may have more layers, o/p of each layer is input to next.
  • 16. INTUITIONS OF NEURAL NETWORKS: Simplified version:
  • 17.
  • 18. XNOR: (a AND b) OR (a’ AND b’)
  • 19. Adding the next layer: MULTICLASS CLASSIFICATION: Its just an extension of One vs all technique: Suppose we want to classify amongn 4 objets: To classify data into multiple classes, we let our hypothesis function return a vector of values. This means we want 4 o/p all at one.. each o/p corresponds to one of our objects Therefore, our o/p is a 4 dimentional vector: Each dimention can be 1 or 0 depending on which object is identified
  • 20. we used to represent y in this way, but now: