#NEWLINE# def run( self ) : #NEWLINE# #INDENT# dataset = self . build_dataset ( ) #NEWLINE# learning_rule = self . build_learning_rule ( ) #NEWLINE# learn_method = self . build_learning_method ( ) #NEWLINE# model = self . build_model ( dataset . feature_size ( ) ) #NEWLINE# model . layers [ 0 ] . dropout_below = self . state . hidden1 . dropout_below #NEWLINE# if self . state . log . save_to_database_name : #NEWLINE# #INDENT# database = self . build_database ( dataset , learning_rule , learn_method , model ) #NEWLINE# database [ 'records' ] [ 'h1_model' ] = self . state . hidden1 . model #NEWLINE# database [ 'records' ] [ 'h2_model' ] = self . state . hidden2 . model #NEWLINE# log = self . build_log ( log ) #NEWLINE# #UNINDENT# log . info ( 'Fine Tuning' ) #NEWLINE# for layer in model . layers : #NEWLINE# #INDENT# layer . dropout_below = None #NEWLINE# layer . noise = None #NEWLINE# #UNINDENT# train_obj = TrainObject ( log = log , dataset = dataset , learning_rule = learning_rule , learning_method = learn_method , model = model ) #NEWLINE# train_obj . run ( )