Skip to content

Commit 14a2379

Browse files
committed
update
1 parent 4208d70 commit 14a2379

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

chapter5_RNN/time_series/lstm-time-series.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import pandas as pd
21
import matplotlib.pyplot as plt
2+
import numpy as np
3+
import pandas as pd
34
import torch
45
from torch import nn, optim
56
from torch.autograd import Variable
6-
import numpy as np
77

88
np.random.seed(2017)
99
# load data
@@ -102,4 +102,4 @@ def forward(self, x):
102102

103103
plt.plot(predict, 'r')
104104
plt.plot(dataset, 'b')
105-
plt.show()
105+
plt.show()

0 commit comments

Comments
 (0)