From feb49baef4eee8e0fc0d2588b5f3a075106197bf Mon Sep 17 00:00:00 2001 From: shixiaowen03 Date: Sun, 4 Nov 2018 19:13:42 +0800 Subject: [PATCH] dien --- .idea/workspace.xml | 585 ++++--- CV/ResNet/resnet_mnist.py | 2 +- recommendation/Basic-DIEN-Demo/Dice.py | 25 + .../Basic-DIEN-Demo/data_iterator.py | 208 +++ recommendation/Basic-DIEN-Demo/model.py | 224 +++ recommendation/Basic-DIEN-Demo/rnn.py | 1456 +++++++++++++++++ .../Basic-DIEN-Demo/source_code/Dice.py | 35 + .../source_code/data_iterator.py | 210 +++ .../source_code/generate_voc.py | 65 + .../source_code/local_aggretor.py | 45 + .../Basic-DIEN-Demo/source_code/model.py | 399 +++++ .../source_code/process_data.py | 101 ++ .../Basic-DIEN-Demo/source_code/rnn.py | 1453 ++++++++++++++++ .../Basic-DIEN-Demo/source_code/shuffle.py | 42 + .../source_code/split_by_user.py | 20 + .../Basic-DIEN-Demo/source_code/train.py | 217 +++ .../Basic-DIEN-Demo/source_code/utils.py | 403 +++++ recommendation/Basic-DIEN-Demo/train.py | 138 ++ recommendation/Basic-DIEN-Demo/utils.py | 66 + .../Basic-DIEN-Demo/vecAttGruCell.py | 68 + recommendation/Basic-DIN-Demo/model.py | 5 - .../recommendation-FM-demo/FM_model.py | 2 +- 22 files changed, 5469 insertions(+), 300 deletions(-) create mode 100644 recommendation/Basic-DIEN-Demo/Dice.py create mode 100644 recommendation/Basic-DIEN-Demo/data_iterator.py create mode 100644 recommendation/Basic-DIEN-Demo/model.py create mode 100644 recommendation/Basic-DIEN-Demo/rnn.py create mode 100755 recommendation/Basic-DIEN-Demo/source_code/Dice.py create mode 100755 recommendation/Basic-DIEN-Demo/source_code/data_iterator.py create mode 100755 recommendation/Basic-DIEN-Demo/source_code/generate_voc.py create mode 100755 recommendation/Basic-DIEN-Demo/source_code/local_aggretor.py create mode 100755 recommendation/Basic-DIEN-Demo/source_code/model.py create mode 100755 recommendation/Basic-DIEN-Demo/source_code/process_data.py create mode 100755 recommendation/Basic-DIEN-Demo/source_code/rnn.py create mode 100755 recommendation/Basic-DIEN-Demo/source_code/shuffle.py create mode 100755 recommendation/Basic-DIEN-Demo/source_code/split_by_user.py create mode 100755 recommendation/Basic-DIEN-Demo/source_code/train.py create mode 100755 recommendation/Basic-DIEN-Demo/source_code/utils.py create mode 100644 recommendation/Basic-DIEN-Demo/train.py create mode 100644 recommendation/Basic-DIEN-Demo/utils.py create mode 100644 recommendation/Basic-DIEN-Demo/vecAttGruCell.py diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 7bc23fe8..dd47acb1 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,13 +2,10 @@ - - - - - - + + + + @@ -34,119 +32,114 @@ - + - - + + - - + + - + - - - - - - + + + + + - - + + - - - + + + + + - - + + - - + + - + - - + + - - + + - + - - + + - - + + - + - - - - - + + + - - + + - - - - - + + + - - + + - - - - - + + + - - + + - - + + @@ -171,6 +164,8 @@ next_hidden hidden_nn_layers save_model + "Abstract method" + print @@ -180,20 +175,6 @@ @@ -259,7 +254,6 @@ - @@ -267,56 +261,23 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +