".github/vscode:/vscode.git/clone" did not exist on "cdc5d8d390377efa7f6d135bcbf9d74b09a14fbf"
Commit 5e01504d authored by Sinan Tan's avatar Sinan Tan Committed by xuehui
Browse files

Bugfix for SQuAD QA model.

parent c6683d10
......@@ -37,7 +37,7 @@ class GAGConfig:
self.dropout = 0.1
self.char_vcb_size = 1371
self.char_vcb_size = 1500
self.max_char_length = 20
self.char_embed_dim = 100
......
......@@ -58,7 +58,7 @@ def get_config():
default='./glove.840B.300d.txt', help='dev file')
parser.add_argument('--root_path', default='./data/',
type=str, help='Root path of models')
parser.add_argument('--batch_size', type=int, default=2, help='batch size')
parser.add_argument('--batch_size', type=int, default=64, help='batch size')
parser.add_argument('--save_path', type=str,
default='./save', help='save path dir')
parser.add_argument('--learning_rate', type=float, default=0.0001,
......@@ -241,8 +241,6 @@ def run_epoch(batches, answer_net, is_training):
if count % 100 == 0:
logger.debug('%d %g except:%g' %
(count, used, used / count * len(batches)))
if count % 100 == 0:
break
loss = loss_sum / len(batches)
if is_training:
return loss
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment