#NEWLINE# def train_mlp( yaml_file_path , save_path ) : #NEWLINE# #INDENT# yaml = open ( '{0}/dae_mlp.yaml' . format ( yaml_file_path ) , 'r' ) . read ( ) #NEWLINE# hyper_params = { #NEWLINE# #INDENT# 'train_stop' : 50 , #NEWLINE# 'valid_stop' : 50050 , #NEWLINE# 'batch_size' : 50 , #NEWLINE# 'max_epochs' : 1 , #NEWLINE# 'save_path' : save_path , #NEWLINE# #UNINDENT# } #NEWLINE# yaml = ( yaml % hyper_params ) #NEWLINE# train_yaml ( yaml )