Lesson 2: Introduction to Neural Networks_II

Udacity: Intro to Deep Learning with PyTorch:

Day 24 of #60daysofudacity

– Logistic Regression:

  • Take your data
  • Pick a random model
  • Calculate the error
  • Minimize the error, and obtain a better model

– Calculating the Error Function

Screen Shot 2019-07-24 at 11.12.01 PMScreen Shot 2019-07-24 at 11.13.20 PM

– Minimizing the error function

Day 25 of #60daysofudacity

– Gradient Calculation

Screen Shot 2019-07-25 at 11.06.19 PM.png

In order to minimize the error function, we need to take some derivatives. So let’s compute the derivative of the error function. 

sigmoid function :

the error formula is:

Screen Shot 2019-07-25 at 11.18.19 PM

Screen Shot 2019-07-25 at 11.19.54 PM.png

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s