【发布时间】:2017-03-13 16:47:19
【问题描述】:
我在 Keras 中使用 Tensorflow 作为后端处理时间序列数据。
我的神经网络输入有问题:
X=pd.concat([X_prices,X_os,X_months,X_wd,X_stock],axis=1)
如果我运行:
print(X_prices.shape,X_os.shape,X_wd.shape,X_months.shape,X_stock.shape)
print(X.shape)
我明白了:
((729, 10), (729, 1), (729, 6), (729, 11), (729, 10))
((729,38))
不幸的是,在附加滞后时间序列时:
X=pd.concat([X_prices,X_os,X_months,X_wd,X_stock,X_lag1],axis=1)
print(X_lag1.shape)
print(X.shape)
我明白了:
((729,10))
((1458,48))
基本上我的行数增加了一倍..
我不知道我错过了什么。
感谢您的帮助
【问题讨论】:
-
你想要的输出是什么?