Skip to content

Commit

Permalink
Merge pull request apache#1006 from qiaohaijun/patch-8
Browse files Browse the repository at this point in the history
correct train's output
  • Loading branch information
mli committed Dec 21, 2015
2 parents 19863ea + afddc97 commit d417d9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example/rnn/lstm.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@ def calc_nll(seq_label_probs, X, begin):
def train_lstm(model, X_train_batch, X_val_batch,
num_round, update_period,
optimizer='rmsprop', half_life=2,max_grad_norm = 5.0, **kwargs):
print("Training swith train.shape=%s" % str(X_train_batch.shape))
print("Training swith val.shape=%s" % str(X_val_batch.shape))
print("Training with train.shape=%s" % str(X_train_batch.shape))
print("Training with val.shape=%s" % str(X_val_batch.shape))
m = model
seq_len = len(m.seq_data)
batch_size = m.seq_data[0].shape[0]
Expand Down

0 comments on commit d417d9a

Please sign in to comment.