create prototype version of adagrad adaptive learning rate