Lesson 2: Introduction to Neural Networks_II

Udacity: Intro to Deep Learning with PyTorch:


– 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 PM
Screen 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

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

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 )

Facebook photo

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

Connecting to %s