Skip to content
Snippets Groups Projects
Commit bdb6943e authored by Nolan's avatar Nolan Committed by Yoann Schneider
Browse files

Remove linear_scheduler

parent 3df7ae44
No related branches found
No related tags found
1 merge request!127Remove linear_scheduler
......@@ -41,7 +41,3 @@ def exponential_dropout_scheduler(dropout_rate, step, max_step):
def exponential_scheduler(init_value, end_value, step, max_step):
step = min(step, max_step - 1)
return init_value - (init_value - end_value) * (1 - np.exp(-10 * step / max_step))
def linear_scheduler(init_value, end_value, step, max_step):
return init_value + step * (end_value - init_value) / max_step
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment