Skip to content

Commit

Permalink
update LSTM
Browse files Browse the repository at this point in the history
  • Loading branch information
sunlanchang committed Jun 14, 2020
1 parent 8180cba commit 9c92d33
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions LSTM_age_multi_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,10 +280,12 @@ def save_data(datas):

# %%
try:
examples = args.examples
mail('start train lstm')
model.fit(
{'creative_id': x1_train, 'ad_id': x2_train, 'product_id': x3_train},
y_train,
{'creative_id': x1_train[:examples], 'ad_id': x2_train[:examples],
'product_id': x3_train[:examples]},
y_train[:examples],
validation_data=([x1_val, x2_val, x3_val], y_val),
epochs=args.epoch,
batch_size=args.batch_size,
Expand Down

0 comments on commit 9c92d33

Please sign in to comment.