feat: add bias to nn parameters

This commit is contained in:
Lenoctambule
2026-03-27 04:35:22 +01:00
parent 439a11a828
commit 1e8a27ddaa
2 changed files with 11 additions and 7 deletions

View File

@@ -18,7 +18,7 @@ def mnist_embed():
prev_error = float('inf')
losses = []
epoch = 0
x_train = x_train[:1_000]
x_train = x_train[:]
while True:
error = 0
for x in x_train:
@@ -30,10 +30,10 @@ def mnist_embed():
prev_error = error
losses.append(error)
dynamic_loss_plot_update(ax, line, losses)
if NO_IMPROV > 10:
if NO_IMPROV > 5:
print('Done !')
break
if epoch > 200:
if epoch > 500:
break
epoch += 1
dynamic_loss_plot_finish(ax, line)