Get a protobuf representation of this object.
(self)
| 179 | self.stopping = self.StoppingCriteria(metalearning_steps=metalearning_steps) |
| 180 | |
| 181 | def do_export_proto(self): |
| 182 | """Get a protobuf representation of this object.""" |
| 183 | params = AlgoProto.LTFB() |
| 184 | params.stopping_criteria.CopyFrom(self.stopping.export_proto()) |
| 185 | params.meta_learning_strategy.Pack(self.metalearning.export_proto()) |
| 186 | params.local_training_algorithm.CopyFrom(self.local_algo.export_proto()) |
| 187 | return params |
| 188 | |
| 189 | class MutationStrategy: |
| 190 | """The strategy for mutation after a tournament in LTFB. |
nothing calls this directly
no test coverage detected