Also based on our explanation of logistic regression in Chapter 2, Data Modeling in Action - The Titanic Example, we are going to implement the logistic regression algorithm in TensorFlow. So, briefly, logistic regression passes the input through the logistic/sigmoid but then treats the result as a probability:

Figure 13: Discriminating between two linearly separable classes, 0's and 1's