Exercício 3 - Perceptron de Rosenblatt e Regressão Logística