#NEWLINE# def __init__( self , control_port , max_mb , patience , validFreq ) : #NEWLINE# #INDENT# '\n        Initialize the LSTMController\n\n        Parameters\n        ----------\n        max_mb : int\n            Max number of minibatches to train on.\n        patience: : int\n            Training stops when this many minibatches have been trained on\n            without any reported improvement.\n        validFreq : int\n            Number of minibatches to train on between every monitoring step.\n        ' #NEWLINE# Controller . __init__ ( self , control_port ) #NEWLINE# self . patience = patience #NEWLINE# self . max_mb = int ( max_mb ) #NEWLINE# self . validFreq = validFreq #NEWLINE# self . uidx = 0 #NEWLINE# self . eidx = 0 #NEWLINE# self . history_errs = [ ] #NEWLINE# self . bad_counter = 0 #NEWLINE# self . valid = False #NEWLINE# self . start_time = None