Exemplo n.º 1
0
 def _parse_individual(json, create_genome):
     return Individual.decode(create_genome,
                              json['parameters'],
                              is_local=False,
                              learning_rate=json['learning_rate'],
                              optimizer_state=StateEncoder.decode(
                                  json['optimizer_state']),
                              source=json['source'],
                              id=json['id'])
Exemplo n.º 2
0
 def encoded_parameters(self, value):
     """
     :param value: base64 encoded representation of the networks state dictionary
     """
     self.net.load_state_dict(StateEncoder.decode(value))