Giter Club home page Giter Club logo

Comments (7)

yuanhs1996 avatar yuanhs1996 commented on September 13, 2024 1

大佬,有出博客或者视频教程吗,麻烦放个链接

from lstm.

yangwohenmai avatar yangwohenmai commented on September 13, 2024

尝试做了log更改 没解决

能否定位到哪行代码出错

from lstm.

LJD20000611 avatar LJD20000611 commented on September 13, 2024

ModuleNotFoundError: No module named 'tensorflow.compat'

from lstm.

retoreQAQ avatar retoreQAQ commented on September 13, 2024

尝试做了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.

yangwohenmai avatar yangwohenmai commented on September 13, 2024

尝试做了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.

retoreQAQ avatar retoreQAQ commented on September 13, 2024

谢谢回答,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.

yangwohenmai avatar yangwohenmai commented on September 13, 2024

谢谢回答,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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.