repositories
/
TP_AA.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
TP3: print perceptron errors.
[TP_AA.git]
/
TP3
/
exo2
/
tp3_exo2.py
diff --git
a/TP3/exo2/tp3_exo2.py
b/TP3/exo2/tp3_exo2.py
index 63179871840e06d636fa96e0d08ff9db7dee6bff..b97c6ea4df6424608316272322dc3840da29428f 100755
(executable)
--- a/
TP3/exo2/tp3_exo2.py
+++ b/
TP3/exo2/tp3_exo2.py
@@
-78,6
+78,7
@@
def perceptron_nobias(X, Y):
if y * np.dot(w, x) <= 0:
classification_error += 1
w = w + y * x
if y * np.dot(w, x) <= 0:
classification_error += 1
w = w + y * x
+ print(classification_error)
return w
return w