GithubHelp home page GithubHelp logo

Comments (5)

tcxdgit avatar tcxdgit commented on August 22, 2024

from multi-class-text-classification-cnn-rnn.

hilmij avatar hilmij commented on August 22, 2024

Thanks for the reply.
I did not change any files. Just trying to run as it is.

from multi-class-text-classification-cnn-rnn.

hilmij avatar hilmij commented on August 22, 2024

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.

jiegzhan avatar jiegzhan commented on August 22, 2024

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.

matevisky avatar matevisky commented on August 22, 2024

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)

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.