Putting together all the building blocks we've just covered, let's try to solve a binary logistic regression with two input features.
The basic steps to compute are:
-
Calculate
-
Calculate , the predicted output
-
Calculate the cost function:
Say we have two input features, that is, two dimensions and m samples dataset. Therefore, the following would be the case:
-
Weights and bias ...