def cast_to_DL(parameters: Parameters, dataset: str, model, optimal_step_size: int, weight_decay: int, iid: str) \ -> DLParameters: """Casts a Parameters class in a DLParameters class which is the specific format for deep learning.""" parameters.__class__ = DLParameters parameters.initialize_DL_params(dataset, model, optimal_step_size, weight_decay, iid) return parameters
def cast_to_DL(parameters: Parameters, dataset: str, model, optimal_step_size: int, weight_decay: int) -> DLParameters: parameters.__class__ = DLParameters parameters.initialize_DL_params(dataset, model, optimal_step_size, weight_decay) return parameters