fixate le formule per generare le rette
This commit is contained in:
@@ -33,7 +33,7 @@ for i in range(1,100000): #Epoche
|
||||
disegna_funzione(p, y, x[j][0], x[j][1], True, errore)
|
||||
|
||||
try:
|
||||
m = -(p.w1 * x[j][0])/p.w2
|
||||
m = -(p.w1/p.w2)
|
||||
q = -(p.bias/p.w2)
|
||||
rette.append([m,q])
|
||||
except ZeroDivisionError:
|
||||
|
||||
Reference in New Issue
Block a user