#NEWLINE# def estimator_set( self , estimator_class , estimator_params ) : #NEWLINE# #INDENT# self . estimator = eval ( estimator_class ) ( ) #NEWLINE# for param in estimator_params : #NEWLINE# #INDENT# if ( estimator_params [ param ] == 'true' ) : #NEWLINE# #INDENT# estimator_params [ estimator_class ] = True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( estimator_params [ param ] == 'false' ) : #NEWLINE# #INDENT# estimator_params [ param ] = False #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( '.' in estimator_params [ param ] ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# estimator_params [ param ] = float ( estimator_params [ param ] ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# estimator_params [ param ] = int ( estimator_params [ param ] ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# setattr ( self . estimator , param , estimator_params [ param ] )