MCPcopy Create free account
hub / github.com/BorealisAI/scaleformer / visual

Function visual

utils/tools.py:97–106  ·  view source on GitHub ↗

Results visualization

(true, preds=None, name='./pic/test.pdf')

Source from the content-addressed store, hash-verified

95
96
97def visual(true, preds=None, name='./pic/test.pdf'):
98 """
99 Results visualization
100 """
101 plt.figure()
102 plt.plot(true, label='GroundTruth', linewidth=2)
103 if preds is not None:
104 plt.plot(preds, label='Prediction', linewidth=2)
105 plt.legend()
106 plt.savefig(name, bbox_inches='tight')

Callers 1

testMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected