MCPcopy Create free account
hub / github.com/cure-lab/LTSF-Linear / visualize

Function visualize

Pyraformer/preprocess_flow.py:31–38  ·  view source on GitHub ↗
(data, index, save_dir)

Source from the content-addressed store, hash-verified

29
30
31def visualize(data, index, save_dir):
32 os.makedirs(save_dir, exist_ok=True)
33 for i in range(index):
34 x = np.arange(len(data[i]))
35 f = plt.figure()
36 plt.plot(x, data[i][:, 0])
37 f.savefig(os.path.join(save_dir, "visual_{}.png".format(i)))
38 plt.close()
39
40
41def split_seq(sequences, seq_length, slide_step, predict_length, save_dir):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected