def __init__(self, patience=<NUM_LIT:3>, anneal_times=<NUM_LIT:4>):
self._iter = <NUM_LIT:0><EOL>self._annealed_iter = <NUM_LIT:0><EOL>self._patience = patience<EOL>self._anneal_times = anneal_times<EOL>self._annealed_times = <NUM_LIT:0><EOL>self._learning_rate = <NUM_LIT:0><EOL>if type(self._learning_rate) == float:<EOL><INDENT>raise Exception("<STR_LIT>")<EOL><DEDENT>
:type trainer: deepy.trainers.base.NeuralTrainer