(data, index, save_dir)
| 29 | |
| 30 | |
| 31 | def 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 | |
| 41 | def split_seq(sequences, seq_length, slide_step, predict_length, save_dir): |
nothing calls this directly
no outgoing calls
no test coverage detected