#NEWLINE# def __init__( self , settings = None ) : #NEWLINE# #INDENT# '\n        :param settings: dictionary of settings\n        ' #NEWLINE# assert ( settings is not None ) , 'Pass the Settings' #NEWLINE# self . q = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . directory = os . path . join ( os . getcwd ( ) , 'Model/NN_Model/' ) #NEWLINE# self . actions = range ( settings [ 'nb_actions' ] ) #NEWLINE# self . alpha = settings [ 'alpha' ] #NEWLINE# self . epsilon = settings [ 'epsilon' ] #NEWLINE# self . gamma = settings [ 'gamma' ] #NEWLINE# self . decay = settings [ 'epsilon_decay' ] #NEWLINE# self . rate = settings [ 'epsilon_action' ] #NEWLINE# self . action_count = 0 #NEWLINE# self . train = settings [ 'train' ]