MCPcopy Create free account
hub / github.com/Anoise/WTFlib / visual

Function visual

LDPS_Graph/utils/tools.py:93–102  ·  view source on GitHub ↗

Results visualization

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

Source from the content-addressed store, hash-verified

91
92
93def visual(true, preds=None, name='./pic/test.pdf'):
94 """
95 Results visualization
96 """
97 plt.figure()
98 plt.plot(np.arange(1,len(true)+1),true, label='GroundTruth', linewidth=2)
99 if preds is not None:
100 plt.plot(np.arange(1,len(true)+1), preds, label='Prediction', linewidth=2)
101 plt.legend()
102 plt.savefig(name, bbox_inches='tight')
103
104def test_params_flop(model,x_shape):
105 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected