Import Library¶In [1]: import FinanceDataReader as fdrfrom sklearn.preprocessing import MinMaxScalerimport torchimport timeimport matplotlib.pyplot as plt%matplotlib inline Define LSTM model¶In [2]: class LSTM(torch.nn.Module) : def __init__(self, num_classes, input_size, hidden_size, num_layers, seq_length, device) : super(LSTM, self).__init__() self.num_classes = n..
LSTM을 이용한 주식 가격 예측
Import Library¶In [1]: import FinanceDataReader as fdrfrom sklearn.preprocessing import MinMaxScalerimport torchimport timeimport matplotlib.pyplot as plt%matplotlib inline Define LSTM model¶In [2]: class LSTM(torch.nn.Module) : def __init__(self, num_classes, input_size, hidden_size, num_layers, seq_length, device) : super(LSTM, self).__init__() self.num_classes = n..
2024.09.10