Less verbose training
This commit is contained in:
parent
ade61980b4
commit
9f9d2390b3
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user