It's easy to build a perceptron that can compute the logical AND and OR functions of its binary inputs.

Logistic regression could be used as a binary classifier.

$$z^{(i)} = w^T x^{(i)} + b$$

$$\hat{y}^{(i)} = a^{(i)} = sigmoid(z^{(i)})$$

$$ \sigma(z) = \frac{1}{1+e^{-z}} $$

Is it possible to compute the AND and OR with logistic regression?



You must log in to answer this question.

Browse other questions tagged .