Comments (7)
大佬,有出博客或者视频教程吗,麻烦放个链接
from lstm.
尝试做了log更改 没解决
能否定位到哪行代码出错
from lstm.
ModuleNotFoundError: No module named 'tensorflow.compat'
from lstm.
尝试做了log更改 没解决
能否定位到哪行代码出错
Traceback (most recent call last):
File "d:\workspace\LSTM-master\LSTM无框架源码实现\src\scenario_seqCurve.py", line 30, in
logging.config.fileConfig(log_conf)
File "C:\Users\80543\AppData\Local\Programs\Python\Python38-32\lib\logging\config.py", line 71, in fileConfig
formatters = _create_formatters(cp)
File "C:\Users\80543\AppData\Local\Programs\Python\Python38-32\lib\logging\config.py", line 104, in _create_formatters
flist = cp["formatters"]["keys"]
File "C:\Users\80543\AppData\Local\Programs\Python\Python38-32\lib\configparser.py", line 960, in getitem
raise KeyError(key)
KeyError: 'formatters'
遇到了一样的问题
from lstm.
尝试做了log更改 没解决
能否定位到哪行代码出错
Traceback (most recent call last): File "d:\workspace\LSTM-master\LSTM无框架源码实现\src\scenario_seqCurve.py", line 30, in logging.config.fileConfig(log_conf) File "C:\Users\80543\AppData\Local\Programs\Python\Python38-32\lib\logging\config.py", line 71, in fileConfig formatters = _create_formatters(cp) File "C:\Users\80543\AppData\Local\Programs\Python\Python38-32\lib\logging\config.py", line 104, in _create_formatters flist = cp["formatters"]["keys"] File "C:\Users\80543\AppData\Local\Programs\Python\Python38-32\lib\configparser.py", line 960, in getitem raise KeyError(key) KeyError: 'formatters'
遇到了一样的问题
直接把日志注释掉,不是必须要有的
from lstm.
谢谢回答,logger模块都注释掉后有新的报错:
File "D:\workspace\LSTM-master\LSTM无框架源码实现\src\scenario_seqCurve.py", line 318, in main_rnn
y, loss_v,_,result = sess.validation(x_v, y_v[:,:,0])
File "D:\workspace\LSTM-master\LSTM无框架源码实现\src\scenario_seqCurve.py", line 327, in
main_rnn()
IndexError: too many indices for array: array is 1-dimensional, but 3 were indexed
我看了下这个y_v应该是在126行
testY = np.array(yArray[Params.TRAINING_EXAMPLES:])
这里赋值,但是此处生成的是一个一维数组,而非三维数组,是否应该进行reshape呢?
from lstm.
谢谢回答,logger模块都注释掉后有新的报错: File "D:\workspace\LSTM-master\LSTM无框架源码实现\src\scenario_seqCurve.py", line 318, in main_rnn y, loss_v,_,result = sess.validation(x_v, y_v[:,:,0]) File "D:\workspace\LSTM-master\LSTM无框架源码实现\src\scenario_seqCurve.py", line 327, in main_rnn() IndexError: too many indices for array: array is 1-dimensional, but 3 were indexed
我看了下这个y_v应该是在126行 testY = np.array(yArray[Params.TRAINING_EXAMPLES:]) 这里赋值,但是此处生成的是一个一维数组,而非三维数组,是否应该进行reshape呢?
这个地方其实不重要,这里的数据主要是为了后面画展示图用的。模型训练和预测过程前面已经运行完了。这个报错具体的问题应该是y_v[:,:,0]的取值方式可能不对,我映像中y_v可能是个shape=(1,1,1)的结构,所以用了y_v[:,:,0]这种取值方式,你可以根据y_v的实际shape调整一下取值方法
from lstm.
Related Issues (20)
- 劳驾 告诉一下依赖库版本 HOT 4
- ModuleNotFoundError: No module named 'tensorflow.compat' HOT 1
- 有关预测多个内容
- 可以预测多天的吗? HOT 2
- 洗发水销量(多步预测)中的n_test+2 ? HOT 1
- 关于多变量预测中归一化与反归一化的问题 HOT 2
- 包的版本呢 HOT 1
- model definition
- LSTM多变量3,怎么可以预测多天呢,要修改那个代码参数吗?
- 您好,多部预测的LSTM网络只能输入单变量,怎么修改才能输入多变量进行预测呢 HOT 1
- 多步预测的LSTM网络.py--Unrecognized keyword arguments passed to LSTM: {'batch_size': {1,1,1}}
- LSTM/stock_predict/stock_predict_2.py实现的不是预测功能 HOT 1
- prediction全是NAN是因为什么呀?
- 请问这几个文件夹的学习顺序是怎样的? HOT 1
- 关于LSTM预测结果滞后的问题 HOT 8
- > > 你好,我想请教一下,我学习了一下LSTM多变量3这个完整的算例,结果看上去预测值会比实际值滞后一格,请问这是为什么。从代码上看标签都是取得数据重构后最后一列的数据,这个现象是正常的嘛。 ![image](https://user-images.githubusercontent.com/92704247/138576889-fb9428f6-cbf1-42b9-a1c9-0623ea8abce7.png) ![image](https://user-images.githubusercontent.com/92704247/138576898-b26fa9f4-0a1c-47da-a57a-9500fbf6f3a7.png) HOT 13
- 如何预测后面七天的未来数据呢 HOT 1
- 52行和55并没有用处吧? HOT 1
- 关于数据重构问题 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lstm.