#NEWLINE# def __init__( self , **options ) : #NEWLINE# #INDENT# super ( SOFM , self ) . __init__ ( ** options ) #NEWLINE# invalid_feature_grid = ( ( self . features_grid is not None ) and ( mul ( * self . features_grid ) != self . n_outputs ) ) #NEWLINE# if invalid_feature_grid : #NEWLINE# #INDENT# raise ValueError ( 'Feature grid should contain the same number of elements as in the output layer: {0}, but found: {1} ({2}x{3})' . format ( self . n_outputs , mul ( * self . features_grid ) , self . features_grid [ 0 ] , self . features_grid [ 1 ] ) )