摘要: 在Pytorch中,我们会继承nn.Module来构建我们自己的类; 在这里,需要实现forward()方法,用于进行网络的前向传播,之后,你可以运行网络的前向传播如下所示: 1 #Define model 2 model = LSTM(...) 3 4 # Forward pass 5 y_pre 阅读全文
posted @ 2021-05-27 18:06 hi_mxd 阅读(390) 评论(0) 推荐(0) 编辑
摘要: 原文链接: https://stackabuse.com/time-series-prediction-using-lstm-with-pytorch-in-python/ 时间序列数据,顾名思义是一种随时间变化的数据类型。例如,24小时时间段内的温度,一个月内各种产品的价格,一个特定公司一年的股票 阅读全文
posted @ 2021-05-27 17:35 hi_mxd 阅读(9707) 评论(0) 推荐(0) 编辑
摘要: 原始链接: https://towardsdatascience.com/extreme-event-forecasting-with-lstm-autoencoders-297492485037 处理极端事件预测对每个数据科学家来说是个噩梦。环顾四周,我发现了处理这个问题的非常有趣的资源。就我个人 阅读全文
posted @ 2021-05-27 15:48 hi_mxd 阅读(703) 评论(0) 推荐(0) 编辑