Closed wasedaward closed 3 years ago
Here is my yelp_config.json.
{
"training": {
"optimizer": "adam",
"learning_rate": 0.0003,
"max_norm": 3.0,
"epochs": 70,
"batches_per_report": 200,
"batches_per_sampling": 500,
"random_seed": 1
},
"data": {
"src": "data/yelp/sentiment.train.0",
"tgt": "data/yelp/sentiment.train.1",
"src_test": "data/yelp/reference.test.0",
"tgt_test": "data/yelp/reference.test.1",
"src_vocab": "data/yelp/vocab",
"tgt_vocab": "data/yelp/vocab",
"share_vocab": true,
"attribute_vocab": "data/yelp/ngram.15.attribute",
"ngram_attributes": true,
"batch_size": 256,
"max_len": 50,
"working_dir": "working_dir"
},
"model": {
"model_type": "seq2seq",
"emb_dim": 128,
"attention": false,
"encoder": "lstm",
"src_hidden_dim": 512,
"src_layers": 1,
"bidirectional": true,
"tgt_hidden_dim": 512,
"tgt_layers": 1,
"decode": "greedy",
"dropout": 0.2
}
}
This is a little bit same as issue #29 ,so maybe I didn't solve that problem totally.
Hmm I was unable to reproduce this error using your config. How is #27 related? Perhaps your working directory (working_dir
) already has saved models with a different configuration?
Hmm I was unable to reproduce this error using your config. How is #27 related? Perhaps your working directory (
working_dir
) already has saved models with a different configuration?
You are totally right!, after I deleted the previous configuration's models, it's okay now! Thank you very much!