MCPcopy Create free account
hub / github.com/alibaba/GraphScope / fill_params_in_yaml

Function fill_params_in_yaml

python/graphscope/learning/utils.py:35–42  ·  view source on GitHub ↗
(file_path, params)

Source from the content-addressed store, hash-verified

33
34
35def fill_params_in_yaml(file_path, params):
36 with open(file_path, "r") as file:
37 yaml_content = file.read()
38 for param_key, param_value in params.items():
39 yaml_content = yaml_content.replace(
40 "${" + param_key + "}", str(param_value)
41 )
42 return yaml.safe_load(yaml_content)

Callers 1

graphlearn_torchMethod · 0.90

Calls 3

openFunction · 0.85
itemsMethod · 0.80
readMethod · 0.65

Tested by

no test coverage detected