Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
missing values.
Returns:
A PatchySan dataset.
"""
dataset_config = config['dataset']
grapher_config = config['grapher']
return cls(datasets[dataset_config['name']].create(dataset_config),
graphers[grapher_config['name']].create(grapher_config),
config.get('data_dir', DATA_DIR),
config.get('force_write', FORCE_WRITE),
config.get('write_num_epochs', WRITE_NUM_EPOCHS),
config.get('distort_inputs', DISTORT_INPUTS),
labelings.get(config.get('node_labeling')),
config.get('num_nodes', NUM_NODES),
config.get('node_stride', NODE_STRIDE),
neighb.get(config.get('neighborhood_assembly')),
config.get('neighborhood_size', NEIGHBORHOOD_SIZE))