wow's Studio.

Deep Learning by Andrew Ng (2)

Word count: 247Reading time: 1 min
2021/03/04 Share

Basics of Neural Network Programming

1. Binary Classification

Logistic regression is an algorithm for binary classification.

Example for binary classification:

Have an input of an image, we want to output a label to recognize this image as being either cat(1) or non cat(0).

image-20210304185628040

There are certain ways an image is represented in a computer. To store an image, computer stores three separate matrices, corresponding to the red, green and blue channels of this image.

So if your input image is 64 pixels by 64pixels, then you would have three 64*64 matrices, and the dimension of input x (feature vector) will be 64*64*3.

input:

for each there are features.

output:

2. Logistic Regression

Given input feature , want .

That means we want to be or approach the probability of the chance that is equal to one given the input feature .

So, if $z$ large,

if large negative,

CATALOG
  1. 1. Binary Classification
  2. 2. Logistic Regression