From 07f9c21fe3c81570f74877b6170492a1e4d377e0 Mon Sep 17 00:00:00 2001 From: malin10 Date: Sat, 6 Jun 2020 08:26:14 +0800 Subject: [PATCH] change directory --- {demo => models/demo}/__init__.py | 0 {demo => models/demo}/movie_recommand/__init__.py | 0 .../demo}/movie_recommand/data/online_user/users.dat | 0 {demo => models/demo}/movie_recommand/data/process_ml_1m.py | 0 {demo => models/demo}/movie_recommand/data/split.py | 0 .../demo/movie_recommand/data/test/data.txt | 0 .../demo/movie_recommand/data/train/data.txt | 0 {demo => models/demo}/movie_recommand/data_prepare.sh | 4 ++-- {demo => models/demo}/movie_recommand/offline_test.sh | 0 {demo => models/demo}/movie_recommand/online_rank.sh | 0 {demo => models/demo}/movie_recommand/online_recall.sh | 0 {demo => models/demo}/movie_recommand/rank/__init__.py | 0 {demo => models/demo}/movie_recommand/rank/config.yaml | 2 +- {demo => models/demo}/movie_recommand/rank/model.py | 0 {demo => models/demo}/movie_recommand/recall/__init__.py | 0 {demo => models/demo}/movie_recommand/recall/config.yaml | 2 +- {demo => models/demo}/movie_recommand/recall/model.py | 0 {demo => models/demo}/movie_recommand/train.sh | 0 18 files changed, 4 insertions(+), 4 deletions(-) rename {demo => models/demo}/__init__.py (100%) rename {demo => models/demo}/movie_recommand/__init__.py (100%) rename {demo => models/demo}/movie_recommand/data/online_user/users.dat (100%) rename {demo => models/demo}/movie_recommand/data/process_ml_1m.py (100%) rename {demo => models/demo}/movie_recommand/data/split.py (100%) rename demo/movie_recommand/data/test/log.data.hash => models/demo/movie_recommand/data/test/data.txt (100%) rename demo/movie_recommand/data/train/log.data.hash => models/demo/movie_recommand/data/train/data.txt (100%) rename {demo => models/demo}/movie_recommand/data_prepare.sh (72%) rename {demo => models/demo}/movie_recommand/offline_test.sh (100%) rename {demo => models/demo}/movie_recommand/online_rank.sh (100%) rename {demo => models/demo}/movie_recommand/online_recall.sh (100%) rename {demo => models/demo}/movie_recommand/rank/__init__.py (100%) rename {demo => models/demo}/movie_recommand/rank/config.yaml (98%) rename {demo => models/demo}/movie_recommand/rank/model.py (100%) rename {demo => models/demo}/movie_recommand/recall/__init__.py (100%) rename {demo => models/demo}/movie_recommand/recall/config.yaml (98%) rename {demo => models/demo}/movie_recommand/recall/model.py (100%) rename {demo => models/demo}/movie_recommand/train.sh (100%) diff --git a/demo/__init__.py b/models/demo/__init__.py similarity index 100% rename from demo/__init__.py rename to models/demo/__init__.py diff --git a/demo/movie_recommand/__init__.py b/models/demo/movie_recommand/__init__.py similarity index 100% rename from demo/movie_recommand/__init__.py rename to models/demo/movie_recommand/__init__.py diff --git a/demo/movie_recommand/data/online_user/users.dat b/models/demo/movie_recommand/data/online_user/users.dat similarity index 100% rename from demo/movie_recommand/data/online_user/users.dat rename to models/demo/movie_recommand/data/online_user/users.dat diff --git a/demo/movie_recommand/data/process_ml_1m.py b/models/demo/movie_recommand/data/process_ml_1m.py similarity index 100% rename from demo/movie_recommand/data/process_ml_1m.py rename to models/demo/movie_recommand/data/process_ml_1m.py diff --git a/demo/movie_recommand/data/split.py b/models/demo/movie_recommand/data/split.py similarity index 100% rename from demo/movie_recommand/data/split.py rename to models/demo/movie_recommand/data/split.py diff --git a/demo/movie_recommand/data/test/log.data.hash b/models/demo/movie_recommand/data/test/data.txt similarity index 100% rename from demo/movie_recommand/data/test/log.data.hash rename to models/demo/movie_recommand/data/test/data.txt diff --git a/demo/movie_recommand/data/train/log.data.hash b/models/demo/movie_recommand/data/train/data.txt similarity index 100% rename from demo/movie_recommand/data/train/log.data.hash rename to models/demo/movie_recommand/data/train/data.txt diff --git a/demo/movie_recommand/data_prepare.sh b/models/demo/movie_recommand/data_prepare.sh similarity index 72% rename from demo/movie_recommand/data_prepare.sh rename to models/demo/movie_recommand/data_prepare.sh index b5dd3e07..f99b5b27 100644 --- a/demo/movie_recommand/data_prepare.sh +++ b/models/demo/movie_recommand/data_prepare.sh @@ -10,8 +10,8 @@ mkdir test/ python process_ml_1m.py process_raw ./ml-1m/train.dat | sort -t $'\t' -k 9 -n > log.data.train python process_ml_1m.py process_raw ./ml-1m/test.dat | sort -t $'\t' -k 9 -n > log.data.test -python process_ml_1m.py hash log.data.train > ./train/log.data.hash -python process_ml_1m.py hash log.data.test > ./test/log.data.hash +python process_ml_1m.py hash log.data.train > ./train/data.txt +python process_ml_1m.py hash log.data.test > ./test/data.txt rm log.data.train rm log.data.test diff --git a/demo/movie_recommand/offline_test.sh b/models/demo/movie_recommand/offline_test.sh similarity index 100% rename from demo/movie_recommand/offline_test.sh rename to models/demo/movie_recommand/offline_test.sh diff --git a/demo/movie_recommand/online_rank.sh b/models/demo/movie_recommand/online_rank.sh similarity index 100% rename from demo/movie_recommand/online_rank.sh rename to models/demo/movie_recommand/online_rank.sh diff --git a/demo/movie_recommand/online_recall.sh b/models/demo/movie_recommand/online_recall.sh similarity index 100% rename from demo/movie_recommand/online_recall.sh rename to models/demo/movie_recommand/online_recall.sh diff --git a/demo/movie_recommand/rank/__init__.py b/models/demo/movie_recommand/rank/__init__.py similarity index 100% rename from demo/movie_recommand/rank/__init__.py rename to models/demo/movie_recommand/rank/__init__.py diff --git a/demo/movie_recommand/rank/config.yaml b/models/demo/movie_recommand/rank/config.yaml similarity index 98% rename from demo/movie_recommand/rank/config.yaml rename to models/demo/movie_recommand/rank/config.yaml index 4bf1b325..4ad9e458 100755 --- a/demo/movie_recommand/rank/config.yaml +++ b/models/demo/movie_recommand/rank/config.yaml @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -workspace: "demo/movie_recommand" +workspace: "paddlerec.models.demo.movie_recommand" # list of dataset dataset: diff --git a/demo/movie_recommand/rank/model.py b/models/demo/movie_recommand/rank/model.py similarity index 100% rename from demo/movie_recommand/rank/model.py rename to models/demo/movie_recommand/rank/model.py diff --git a/demo/movie_recommand/recall/__init__.py b/models/demo/movie_recommand/recall/__init__.py similarity index 100% rename from demo/movie_recommand/recall/__init__.py rename to models/demo/movie_recommand/recall/__init__.py diff --git a/demo/movie_recommand/recall/config.yaml b/models/demo/movie_recommand/recall/config.yaml similarity index 98% rename from demo/movie_recommand/recall/config.yaml rename to models/demo/movie_recommand/recall/config.yaml index 056e2674..91575611 100755 --- a/demo/movie_recommand/recall/config.yaml +++ b/models/demo/movie_recommand/recall/config.yaml @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -workspace: "demo/movie_recommand" +workspace: "paddlerec.models.demo.movie_recommand" # list of dataset dataset: diff --git a/demo/movie_recommand/recall/model.py b/models/demo/movie_recommand/recall/model.py similarity index 100% rename from demo/movie_recommand/recall/model.py rename to models/demo/movie_recommand/recall/model.py diff --git a/demo/movie_recommand/train.sh b/models/demo/movie_recommand/train.sh similarity index 100% rename from demo/movie_recommand/train.sh rename to models/demo/movie_recommand/train.sh -- GitLab