Zhang Jie 张 杰
Zhang Jie 张 杰
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...
Did you check the saved model directory? Looks like model-2700 doesn't exist. os.rename(path, trained_dir + 'best_model.ckpt') FileNotFoundError: [Errno 2] No such file or directory: './checkpoints_1486165230/model-2700' -> './trained_results_1486165230/best_model.ckpt'
My tensorflow version is 0.9, it only produce two training files. -rw-r--r-- 1 root root 1433 Feb 3 23:42 model-2700.index -rw-r--r-- 1 root root 1543734 Feb 3 23:42 model-2700.meta -rw-r--r--...
My tensorflow version is 0.9, it only produces two training files.
set up the write_version argument if you are in a hurry. I will try to upgrade the tensorflow and make changes soon. Thanks for pointing this out.
I was using Tensorflow 0.9 when I built this project.
You will be able to adjust the training parameters once you understand what are they. http://www.wildml.com/2015/12/implementing-a-cnn-for-text-classification-in-tensorflow/
Which version of Tensorflow are you using? I was using Tensorflow 0.9 when I built this project.
python3 train.py ./data/consumer_complaints.csv.zip ./parameters.json
"evaluate_every": 200 Your training dataset is quite small. Try a small "evaluate_every" number such as 2? or 4?