Implement Logistic Regression for binary input/output data. Specifically, you should implement the gradient ascent algorithm described in class.
Note that you will need to use an exponential function, e^x to implement Logistic Regression. In Python, you will find the function exp to be helpful:
import math
x = 5
math.exp(x)
# returns 148.4131591025766
Train your algorithm on the data file simple-train.csv. Use learning rate
?=0.0001 and 1,000 training steps. Test your algorithm on the data file simple-test.csv. You should be able to achieve 100% classification accuracy on the testing data.
simple_train.csv:
simple_test.csv: