Update parameters for all models in both evolution and evaluator ensembles.
(self, args: Dict[str, Any], overwrite: bool = False)
| 204 | self.update_model_params(shared_config) |
| 205 | |
| 206 | def update_model_params(self, args: Dict[str, Any], overwrite: bool = False) -> None: |
| 207 | """Update parameters for all models in both evolution and evaluator ensembles.""" |
| 208 | for model in self.models + self.evaluator_models: |
| 209 | for key, value in args.items(): |
| 210 | # Only set the attribute if overwrite is True or if the attribute is not already set on the model |
| 211 | if overwrite or getattr(model, key, None) is None: |
| 212 | setattr(model, key, value) |
| 213 | |
| 214 | def rebuild_models(self) -> None: |
| 215 | """Rebuild the models list, typically after CLI overrides change primary/secondary model fields.""" |
no outgoing calls
no test coverage detected