Skip to content

Commit

Permalink
correct train's output
Browse files Browse the repository at this point in the history
change the swith to with
  • Loading branch information
qiaohaijun committed Dec 21, 2015
1 parent 19863ea commit afddc97
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 afddc97

Please sign in to comment.