def format_yaml_dict(yamldict, type_prefix):
 yamldict['type'] = (type_prefix + yamldict['type'])
 return yamldict

def format_yaml_dict ( yamldict , type_prefix ) : yamldict [ 'type' ] = ( type_prefix + yamldict [ 'type' ] ) return yamldict
helper function for format the yaml model config into the proper format for object and layer initialization arguments: yamldict : dictionary with model parameters type_prefix : module path for this object returns: dict : formatted dict .