assign_code_reference(instance)
// Check if params need to be set
if not instance.hptuning and instance.specification:
instance.hptuning = instance.specification.hptuning.to_dict()
@receiver(post_save, sender=ExperimentGroup, dispatch_uid="experiment_group_saved")
@ignore_updates
After Change
// Check if params need to be set
if not instance.hptuning and instance.specification:
hptuning_config = instance.specification.hptuning
hptuning = hptuning_config.to_dict()
if hptuning_config.search_algorithm == SearchAlgorithms.GRID:
hptuning["grid_search"] = hptuning.get("grid_search", {})
instance.hptuning = hptuning
@receiver(post_save, sender=ExperimentGroup, dispatch_uid="experiment_group_saved")
@ignore_updates