コード例 #1
0
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
コード例 #2
0
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