def serialize(_conf)
      [name, Network.fields.map { |sym| [sym.to_s, send(sym)] }.to_h]
    end
def serialize(_conf)
      [name, Network.fields.map { |sym| [sym.to_s, send(sym)] }.to_h]
    end
Serializes this network.

 @param _conf [Hash] the deserialized configuration
 @return [Array, Hash] the serialized object