Results visualization
(true, preds=None, name='./pic/test.pdf')
| 91 | |
| 92 | |
| 93 | def 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 | |
| 104 | def test_params_flop(model,x_shape): |
| 105 | """ |
nothing calls this directly
no outgoing calls
no test coverage detected