<s> import logging as loggers <EOL> from config import GeneralConfig <EOL> from deepy . utils import FLOATX <EOL> import theano <EOL> import numpy as np <EOL> logging = loggers . getLogger ( __name__ ) <EOL> DEFAULT_TRAINER_SETTING = { <EOL> "<STR_LIT>" : theano . shared ( np . array ( <NUM_LIT> , dtype = FLOATX ) ) , <EOL> "<STR_LIT>" : <NUM_LIT:1> , <EOL> "<STR_LIT>" : <NUM_LIT:10> , <EOL> "<STR_LIT>" : <NUM_LIT:1> , <EOL> "<STR_LIT>" : <NUM_LIT> , <EOL> "<STR_LIT>" : <NUM_LIT:0> , <EOL> "<STR_LIT>" : <NUM_LIT:6> , <EOL> "<STR_LIT>" : None , <EOL> "<STR_LIT>" : None , <EOL> "<STR_LIT>" : True , <EOL> "<STR_LIT>" : None , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : None , <EOL> "<STR_LIT>" : False , <EOL> "<STR_LIT>" : None , <EOL> "<STR_LIT>" : None , <EOL> "<STR_LIT>" : False , <EOL> "<STR_LIT>" : <NUM_LIT:0> , <EOL> "<STR_LIT>" : <NUM_LIT:0> , <EOL> "<STR_LIT>" : <NUM_LIT:0> , <EOL> "<STR_LIT>" : <NUM_LIT:0> , <EOL> "<STR_LIT>" : <NUM_LIT:0> , <EOL> "<STR_LIT>" : <NUM_LIT:0> , <EOL> } <EOL> class TrainerConfig ( GeneralConfig ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , settingMap = None ) : <EOL> super ( TrainerConfig , self ) . __init__ ( logger = logging ) <EOL> settings = DEFAULT_TRAINER_SETTING <EOL> if isinstance ( settingMap , dict ) : <EOL> settings . update ( settingMap ) <EOL> for key , value in settings . items ( ) : <EOL> self . attrs [ key ] = value </s>
