flexeval.helpers#
Generic utility functions.
Functions
Create a random 8-digit id |
|
|
Visualize graphs produced by |
- flexeval.helpers.visualize_graph(graph: DiGraph, output_path: str | None = None)[source]#
Visualize graphs produced by
MetricGraphBuilder
.- Parameters:
graph (nx.DiGraph) – The graph
output_path (str | None, optional) – If not None, will save the graph as an image using
matplotlib.pyplot.Figure.savefig()
.
- Raises:
ImportError – If matplotlib is not installed.