MCPcopy Create free account
hub / github.com/RolnickLab/climart / plot_groups

Function plot_groups

climart/utils/plotting.py:122–131  ·  view source on GitHub ↗
(xaxis_key, metric='Test/MAE', ax=None, show: bool = True, **kwargs)

Source from the content-addressed store, hash-verified

120
121
122def plot_groups(xaxis_key, metric='Test/MAE', ax=None, show: bool = True, **kwargs):
123 if not ax:
124 fig, ax = plt.subplots() # 1
125
126 for key, group in kwargs.items():
127 group.plot(xaxis_key, metric, yerr='std', label=key, ax=ax)
128
129 set_labels_and_ticks(
130 ax, xlabel='Used training points', ylabel=metric, show=show
131 )
132
133
134def height_errors(Ytrue: np.ndarray, preds: np.ndarray, height_ticks=None,

Callers

nothing calls this directly

Calls 1

set_labels_and_ticksFunction · 0.85

Tested by

no test coverage detected