1. torch股票预测 import torch import torch.nn as nn from torch.autograd import Variable import numpy as np from sklearn.preprocessing import MinMaxScaler import matplotlib.pyplot as plt # 2.使用pytorch实现股票预测模型处理 # (1)数据处理 data=np.loadtxt