时间序列分析 lstm_LSTM —时间序列分析

本文介绍了如何使用LSTM进行时间序列分析,详细探讨了LSTM在处理时间序列数据时的优势和方法。
摘要由CSDN通过智能技术生成

时间序列分析 lstm

Neural networks can be a hard concept to wrap your head around. I think this is mostly due to the fact that they can be used for so many different things such as classification, identification or just simply regression.

神经网络可能是一个难以理解的概念。 我认为这主要是由于它们可以用于许多不同的事情,例如分类,识别或仅用于回归。

In this article, we will look at how easy it is to set up a simple LSTM model. All you need is your helpful friend KERAS and some array of numbers to throw into it.

在本文中,我们将探讨建立一个简单的LSTM模型有多么容易。 您所需要的只是您乐于助人的朋友KERAS和一些数字。

First thing we always do? Import!

我们总是做的第一件事? 进口!

import math
import pandas as pd
import numpy as np#keras models
from keras.models import Sequential
from keras.layers import Dense
from keras.layers import LSTM#scaler
from sklearn.preprocessing import MinMaxScaler#analysis tool
from sklearn.metrics import mean_squared_error

Next we need some set of numbers to play with. There are a couple ways you can go about doing this, but the best way is to use some data that actually has meaning and to do that I recommend going to Kaggle.

接下来,我们需要一些数字来处理。 您可以通过几种方法来执行此操作,但是最好的方法是使用一些确实有意义的数据,并且建议我转到Kaggle。

  • 1
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值