Comments (3)
之前closed issue里有人已经解答了, 我上网找到的解决方案是环境设为:
tensorflow 1.1.0
keras 1.2.2
from sentiment-analysis.
我也出现这个问题 似乎svm的结果更好
from sentiment-analysis.
lstm 模型训练模型load的时候报错:
......
File "D:/Python/51job/textclassify/Sentiment-Analysis-master/code/Sentiment_lstm.py", line 178, in lstm_predict
model = model_from_yaml(yaml_string)
......
ValueError: Tensor conversion requested dtype int32 for Tensor with dtype float32: 'Tensor("embedding_1/random_uniform:0", shape=(8310, 100), dtype=float32)'
是keras版本的问题吗,博主用的哪个版本?我用的keras2.03
还是在生产train模型save成yaml文件前需要cast一下?请问博主知道怎么弄吗?
from sentiment-analysis.
Related Issues (20)
- why ‘我是**’ and '你是**' is postive HOT 3
- some problem HOT 4
- error HOT 1
- 运行遇到错误 HOT 1
- 多分类
- maxlen 和input_length HOT 1
- 训练模型的时候报错 HOT 1
- UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte
- 请问训练数据是如何得到的,谢谢
- No module named cross_validation HOT 1
- 运行报错 “参数长度错误!”
- Can't fork
- ValueError: Shapes (4, 100, 50) and () are incompatible源程序报错
- 请问各个依赖包对应的版本是? HOT 1
- TensorFlow verison problem HOT 1
- 请问一下tensorflow 使用的版本是多少? HOT 2
- 运行问题
- 运行问题
- 使用lstm时,出现dtype的错误 HOT 1
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 sentiment-analysis.