import numpy as np
Merge branch 'master' of https://github.com/Sohl-Dickstein/Sum-of-Functions-Optimizer
cap step length based on historical step length