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 b5dd3e076c75191695d3d895c7bc8b3e63222524..f99b5b273b4ed496030cfe46bf228ae32159ee26 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 4bf1b325a19962168cb4634e886a8cf9acddaf43..4ad9e458a3a9bbf2a6c658c2d046807581b6c1f5 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 056e26747318a5f597cc5dfb19403f623781d5c3..91575611c41fea3e1a90d1a5eb77ad4c99ea7fbe 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