Get a protobuf representation of this object.
(self)
| 349 | self.mutation_strategy = mutation_strategy |
| 350 | |
| 351 | def export_proto(self): |
| 352 | """Get a protobuf representation of this object.""" |
| 353 | |
| 354 | msg = AlgoProto.RandomPairwiseExchange() |
| 355 | for key, value in self.metric_strategies.items(): |
| 356 | msg.metric_name_strategy_map[key] = value |
| 357 | |
| 358 | msg.exchange_strategy.CopyFrom(self.exchange_strategy.export_proto()) |
| 359 | msg.mutation_strategy.CopyFrom(self.mutation_strategy.export_proto()) |
| 360 | return msg |
| 361 | |
| 362 | class TruncationSelectionExchange(MetaLearningStrategy): |
| 363 | """Truncation selection metalearning strategy. |
nothing calls this directly
no test coverage detected