MCPcopy Create free account
hub / github.com/pytorch/examples / draw

Function draw

time_sequence_prediction/train.py:83–85  ·  view source on GitHub ↗
(yi, color)

Source from the content-addressed store, hash-verified

81 plt.xticks(fontsize=20)
82 plt.yticks(fontsize=20)
83 def draw(yi, color):
84 plt.plot(np.arange(input.size(1)), yi[:input.size(1)], color, linewidth = 2.0)
85 plt.plot(np.arange(input.size(1), input.size(1) + future), yi[input.size(1):], color + ':', linewidth = 2.0)
86 draw(y[0], 'r')
87 draw(y[1], 'g')
88 draw(y[2], 'b')

Callers 1

train.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected