fixate le formule per generare le rette

This commit is contained in:
2025-01-25 19:14:34 +01:00
parent 24720ef0b0
commit 518ad68bcf
3 changed files with 8 additions and 19 deletions

View File

@@ -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: