Faster termination when training
This commit is contained in:
parent
1bd0597291
commit
ca7b2fd87c
@ -835,7 +835,7 @@ def train(gamma = 1, full=True):
|
||||
best_mse = mse
|
||||
stagLen = 0
|
||||
|
||||
while gamma > 1.0e-06 and delta > 1.0e-05 or best_mse > 3:
|
||||
while gamma > 3.0e-06 and delta > 3.0e-05 or best_mse > 3:
|
||||
last_mse = mse
|
||||
print({'mse': mse, 'gamma': gamma, 'delta': delta})
|
||||
delta = sum(gradient[g]**2 for g in gradient)
|
||||
|
Loading…
Reference in New Issue
Block a user