MCPcopy Create free account
hub / github.com/BIT-MCS/DRL-eFresh / plot_fairness_lines

Function plot_fairness_lines

utils/base_utils.py:326–338  ·  view source on GitHub ↗
(jain_fairness_list,gs_fairness_list,full_path)

Source from the content-addressed store, hash-verified

324 plt.close()
325
326def plot_fairness_lines(jain_fairness_list,gs_fairness_list,full_path):
327 plt.plot(jain_fairness_list,label="jain_fairness")
328 plt.plot(gs_fairness_list, label="gs_fairness")
329 if params.trainable is True:
330 plt.xlabel("Training episode")
331 else:
332 plt.xlabel("Step")
333 plt.ylabel("fairness")
334 plt.grid(True)
335 plt.grid(linestyle='--')
336 plt.legend()
337 plt.savefig(full_path + "/"+"different_fairness"+'.png')
338 plt.close()
339

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected