#NEWLINE# def __init__( self , n_hidden = 20 , alpha = 0.5 , random_state = None , activation_func = 'tanh' , activation_args = None , user_components = None , rbf_width = 1.0 ) : #NEWLINE# #INDENT# super ( RandomLayer , self ) . __init__ ( n_hidden = n_hidden , random_state = random_state , activation_func = activation_func , activation_args = activation_args ) #NEWLINE# if isinstance ( self . activation_func , str ) : #NEWLINE# #INDENT# func_names = self . _internal_activation_funcs . keys ( ) #NEWLINE# if ( self . activation_func not in func_names ) : #NEWLINE# #INDENT# msg = ( "unknown activation function '%s'" % random_state . activation_func ) #NEWLINE# raise ValueError ( msg ) #NEWLINE# #UNINDENT# #UNINDENT# self . alpha = alpha #NEWLINE# self . rbf_width = rbf_width #NEWLINE# self . user_components = user_components #NEWLINE# self . _use_mlp_input = ( self . alpha != 0.0 ) #NEWLINE# self . _use_rbf_input = ( self . alpha != 1.0 )