X-Git-Url: https://git.piment-noir.org/?p=TP_AA.git;a=blobdiff_plain;f=TP3%2Fexo2%2Ftp3_exo2.py;h=b97c6ea4df6424608316272322dc3840da29428f;hp=63179871840e06d636fa96e0d08ff9db7dee6bff;hb=df0a762f5ec979cb0953ac13c2c92ebbea66f6d9;hpb=5d8acd865d25e611bf3cbee51d563e509ab3e93d diff --git a/TP3/exo2/tp3_exo2.py b/TP3/exo2/tp3_exo2.py index 6317987..b97c6ea 100755 --- 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 + print(classification_error) return w