TP3: print perceptron errors.
[TP_AA.git] / TP3 / exo2 / tp3_exo2.py
index 63179871840e06d636fa96e0d08ff9db7dee6bff..b97c6ea4df6424608316272322dc3840da29428f 100755 (executable)
@@ -78,6 +78,7 @@ def perceptron_nobias(X, Y):
             if y * np.dot(w, x) <= 0:
                 classification_error += 1
                 w = w + y * x
+        print(classification_error)
     return w