Logistic Regression Example - Beyond Whyy
In this section, we will try to implement a very simple example of logisitic regression. For this example, we will try to predict the result(pass/fail) of a student based on his 2 test scores. Notice that the predicted result is a value between 0 and 1, it can be interpreted as the probability that the result is a positive (y 1). In our example, for test scores 60 and 75, there is a 87% probability that the student passes. An additional condition like the following can be used inside the predict function for binary output.
Jan-10-2020, 21:46:29 GMT