original_docstring: 
          Network with just a dropout and a softmax layers which is intended to serve as the final layer for an ECOC model
          
docstring: Network with just a dropout and a softmax layers which is intended to serve as the final layer for an ECOC model
docstring_tokens: Network with just a dropout and a softmax layers which is intended to serve as the final layer for an ECOC model
code: def Union_Layer(self, nOutput, input_shape):
          """
          Network with just a dropout and a softmax layers which is intended to serve as the final layer for an ECOC model
          """
          if len(input_shape) == 3:
              input_shape = tuple([input_shape[2]] + input_shape[0:2])
          else:
              input_shape = tuple(input_shape)
  
          self.model = Sequential()
          self.model.add(Flatten(input_shape=input_shape))
          self.model.add(Dropout(0.5))
          self.model.add(Dense(nOutput, activation='softmax'))
code_tokens: def Union_Layer ( self , nOutput , input_shape ) : if len ( input_shape ) == 3 : input_shape = tuple ( [ input_shape [ 2 ] ] + input_shape [ 0 : 2 ] ) else : input_shape = tuple ( input_shape ) self . model = Sequential ( ) self . model . add ( Flatten ( input_shape = input_shape ) ) self . model . add ( Dropout ( 0.5 ) ) self . model . add ( Dense ( nOutput , activation = 'softmax' ) )
short_docstring: Network with just a dropout and a softmax layers which is intended to serve as the final layer for an ECOC model
short_docstring_tokens: Network with just a dropout and a softmax layers which is intended to serve as the final layer for an ECOC model
comment: """
          Network with just a dropout and a softmax layers which is intended to serve as the final layer for an ECOC model
          """