Skip to content

Commit

Permalink
test_graph
Browse files Browse the repository at this point in the history
  • Loading branch information
yisz committed Feb 19, 2024
1 parent a7eb1a3 commit 0b37db1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions continuous_eval/eval/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,5 +207,14 @@ def load_test_results(self, filepath: Path):
with open(filepath, "r") as json_file:
self._test_results = json.load(json_file)

def test_graph(self):
pipeline_graph = self._pipeline.graph_repr()
tests = "\n %% Tests\n"
for module, results in self._test_results.items():
metrics = "<br>".join([f"<i>{metric}: {value}</i>" for metric, value in results.items()])
tests += f" {module}[<b>{module}</b><br>---<br>{metrics}]\n"

return pipeline_graph + tests


eval_manager = EvaluationManager()

0 comments on commit 0b37db1

Please sign in to comment.