python/methylnet/hyperparameter_scans.py
def replace_grid(old_grid, new_grid, topology_grid):
	"""Replaces old hyperparameter search grid with one supplied by YAML."""
	#print(old_grid,new_grid)
	for k in new_grid.keys():
		if k != 'topology_grid':
			old_grid["--{}".format(k)] = new_grid[k]
	if 'topology_grid' in new_grid:
		topology_grid = new_grid.pop('topology_grid')
	return old_grid, topology_grid
Replaces old hyperparameter search grid with one supplied by YAML.
Replaces old hyperparameter search grid with one supplied by YAML.
Replaces old hyperparameter search grid with one supplied by YAML .
def replace_grid(old_grid, new_grid, topology_grid):
	for k in new_grid.keys():
		if k != 'topology_grid':
			old_grid["--{}".format(k)] = new_grid[k]
	if 'topology_grid' in new_grid:
		topology_grid = new_grid.pop('topology_grid')
	return old_grid, topology_grid
def replace_grid ( old_grid , new_grid , topology_grid ) : for k in new_grid . keys ( ) : if k != 'topology_grid' : old_grid [ "--{}" . format ( k ) ] = new_grid [ k ] if 'topology_grid' in new_grid : topology_grid = new_grid . pop ( 'topology_grid' ) return old_grid , topology_grid
Replaces old hyperparameter search grid with one supplied by YAML.
Replaces old hyperparameter search grid with one supplied by YAML .
"""Replaces old hyperparameter search grid with one supplied by YAML.""" #print(old_grid,new_grid)
old_grid
new_grid
topology_grid