Comments (5)
from multi-class-text-classification-cnn-rnn.
Thanks for the reply.
I did not change any files. Just trying to run as it is.
from multi-class-text-classification-cnn-rnn.
I tested the same with Ubuntu (Python 3.5.2, TensorFlow 1.2.1). Same result.
Please let me know if you need more info to figure this issue.
INFO:tensorflow:Restoring parameters from ./checkpoints_1501820994/model-2500
INFO:tensorflow:Restoring parameters from ./checkpoints_1501820994/model-2500
CRITICAL:root:Accuracy on test set: 0.9972780593360288
Traceback (most recent call last):
File "train.py", line 161, in
train_cnn_rnn()
File "train.py", line 151, in train_cnn_rnn
os.rename(path, trained_dir + 'best_model.ckpt')
FileNotFoundError: [Errno 2] No such file or directory: './checkpoints_1501820994/model-2500' -> './trained_results_1501820994/best_model.ckpt'
from multi-class-text-classification-cnn-rnn.
https://github.com/jiegzhan/multi-class-text-classification-cnn-rnn/blob/master/train.py#L141
comment all the code after line 141, take a look at the checkpoint directory.
Then change the code after line 141 accordingly. Essentially you wanna save the best model to a file for prediction in future.
from multi-class-text-classification-cnn-rnn.
fix line 151:
from: os.rename(path, trained_dir + 'best_model.ckpt')
to: os.rename(path + '.ckpt', trained_dir + 'best_model.ckpt')
from multi-class-text-classification-cnn-rnn.
Related Issues (20)
- Training fails with small data set HOT 1
- when trying to run train.py
- Extract Associated Probability
- Issue With Predictions
- os.rename can not found model-2600 HOT 1
- How to deal with the imbalance data problem? HOT 1
- why do you use description as input feature only?
- Predicting fail using tensorflow 1.3.0 HOT 1
- How to change parametrs to much bigger text on russian? HOT 2
- ata loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator?
- webserver for quick demo
- Tensorboard embedding
- Shape must be of rank 4 but is of rank 3 HOT 4
- Unsuccessful TensorSliceReader constructor HOT 6
- create a SavedModel
- the data only can get from the zip HOT 1
- use softmax to get probability distribution for each class
- KeyError: 'RECOVERED VEHICLE',what's the small_sample.csv?
- 请问small_sample.cvs是测试集合,prediction_all是预测的结果,对吗??
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 multi-class-text-classification-cnn-rnn.