MCPcopy Create free account
hub / github.com/MIT-SPARK/Clio / parse

Method parse

clio_eval/utils.py:67–77  ·  view source on GitHub ↗
(self, yaml_file)

Source from the content-addressed store, hash-verified

65 self.eval = {}
66
67 def parse(self, yaml_file):
68 with open(yaml_file, "r") as stream:
69 params = yaml.safe_load(stream)
70 self.num_trials = int(params["num_trials"])
71 self.env["log_path"] = params["log_path"]
72
73 for group in params["datasets"]:
74 eg = ExperimentGroup(group)
75 self.experiments[group["name"]] = eg
76
77 self.eval["semantic_threshold"] = params["semantic_threshold"]
78
79class GtData:
80 def __init__(self, gt_yaml):

Callers 1

mainFunction · 0.95

Calls 1

ExperimentGroupClass · 0.85

Tested by

no test coverage detected