From 14cdf91e46ccf7ff1887e793168f4f264976374b Mon Sep 17 00:00:00 2001 From: shixiaowen03 Date: Fri, 1 Mar 2019 17:20:24 +0800 Subject: [PATCH] NAIS --- .gitignore | 3 + .idea/workspace.xml | 478 ++++++++++---------- recommendation/Basic-NAIS-Demo/Batch_gen.py | 185 ++++++++ recommendation/Basic-NAIS-Demo/Dataset.py | 96 ++++ recommendation/Basic-NAIS-Demo/Evaluate.py | 117 +++++ recommendation/Basic-NAIS-Demo/FISM.py | 226 +++++++++ recommendation/Basic-NAIS-Demo/NAIS.py | 289 ++++++++++++ 7 files changed, 1145 insertions(+), 249 deletions(-) create mode 100644 recommendation/Basic-NAIS-Demo/Batch_gen.py create mode 100644 recommendation/Basic-NAIS-Demo/Dataset.py create mode 100644 recommendation/Basic-NAIS-Demo/Evaluate.py create mode 100644 recommendation/Basic-NAIS-Demo/FISM.py create mode 100644 recommendation/Basic-NAIS-Demo/NAIS.py diff --git a/.gitignore b/.gitignore index 714fee65..d24baf62 100644 --- a/.gitignore +++ b/.gitignore @@ -49,6 +49,9 @@ test_data/ result/ export_ptr_model/ data/ +Data/ +Log/ +log/ __pycache__/ log/ diff --git a/.idea/workspace.xml b/.idea/workspace.xml index e5e86293..553f693b 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,7 +2,8 @@ - + + - - + + - - + + - + - - + + - - + + - + - - + + - - + + - + - - + + - - - - - + + + - - + + - - + + - - + + - - + + - + - - + + - - + + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -195,7 +163,12 @@ one_hot print self.tfd + positional_encoding + self.num_idx + + $PROJECT_DIR$/recommendation/Basic-NAIS-Demo +