一起读《动手学深度学习(PyTorch版)》- RNN-sequence-model
sin1000加上噪声importtorchfromtorchimportnnimportmatplotlib.pyplotaspltT=1000time=torch.arange(1,T+1,dtype=torch.float32)x=torch.sin(0.01*time)+torch.normal(0,0.2,(T,))plt.plot(time.tolist(),x.tolist())plt.show()