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'])
def encoded_parameters(self, value): """ :param value: base64 encoded representation of the networks state dictionary """ self.net.load_state_dict(StateEncoder.decode(value))