Less verbose training

This commit is contained in:
Dominik Moritz Roth 2021-09-26 23:15:50 +02:00
parent ade61980b4
commit 9f9d2390b3

View File

@ -837,8 +837,7 @@ def train(gamma = 1, full=True):
while gamma > 1.0e-06 and delta > 1.0e-06:
last_mse = mse
print({'mse': mse, 'w': weights, 'gamma': gamma, 'delta': delta})
print(gradient)
print({'mse': mse, 'gamma': gamma, 'delta': delta})
delta = sum(gradient[g]**2 for g in gradient)
for wt in weights:
weights[wt] += gamma*gradient[wt]