From f8a102f03de00e921fee9fd1622ffdd6612c579e Mon Sep 17 00:00:00 2001 From: tangwei Date: Wed, 29 Apr 2020 15:50:23 +0800 Subject: [PATCH] rename ctr to rank --- demo/ctr-dnn_train.yaml | 6 +++--- models/ctr/deepfm/__init__.py | 0 models/multi_task/__init__.py | 0 models/other/__init__.py | 0 models/{ctr => rank}/__init__.py | 0 models/{ctr => rank}/criteo_reader.py | 0 models/{ctr => rank}/dnn/__init__.py | 0 models/{ctr => rank}/dnn/data/test/sample_test.txt | 0 models/{ctr => rank}/dnn/data/train/sample_train.txt | 0 models/{ctr => rank}/dnn/hyper_parameters.yaml | 0 models/{ctr => rank}/dnn/model.py | 0 models/recall/__init__.py | 0 models/recall/word2vec/hyper_parameters.yaml | 0 models/recall/word2vec/model.py | 0 models/recall/word2vec/reader.py | 0 models/recall/word2vec/sample_test.txt | 0 models/recall/word2vec/sample_train.txt | 0 models/tdm/__init__.py | 0 18 files changed, 3 insertions(+), 3 deletions(-) delete mode 100644 models/ctr/deepfm/__init__.py delete mode 100644 models/multi_task/__init__.py delete mode 100644 models/other/__init__.py rename models/{ctr => rank}/__init__.py (100%) rename models/{ctr => rank}/criteo_reader.py (100%) rename models/{ctr => rank}/dnn/__init__.py (100%) rename models/{ctr => rank}/dnn/data/test/sample_test.txt (100%) rename models/{ctr => rank}/dnn/data/train/sample_train.txt (100%) rename models/{ctr => rank}/dnn/hyper_parameters.yaml (100%) rename models/{ctr => rank}/dnn/model.py (100%) delete mode 100644 models/recall/__init__.py delete mode 100644 models/recall/word2vec/hyper_parameters.yaml delete mode 100644 models/recall/word2vec/model.py delete mode 100644 models/recall/word2vec/reader.py delete mode 100644 models/recall/word2vec/sample_test.txt delete mode 100644 models/recall/word2vec/sample_train.txt delete mode 100644 models/tdm/__init__.py diff --git a/demo/ctr-dnn_train.yaml b/demo/ctr-dnn_train.yaml index 4d2644e3..ffa3de2b 100644 --- a/demo/ctr-dnn_train.yaml +++ b/demo/ctr-dnn_train.yaml @@ -29,11 +29,11 @@ train: reader: mode: "dataset" batch_size: 2 - class: "fleetrec.models.ctr.criteo_reader" - train_data_path: "fleetrec/models/ctr/dnn/data/train" + class: "fleetrec.models.ranK.criteo_reader" + train_data_path: "fleetrec/models/ranK/dnn/data/train" model: - models: "fleetrec.models.ctr.dnn.model" + models: "fleetrec.models.ranK.dnn.model" hyper_parameters: sparse_inputs_slots: 27 sparse_feature_number: 1000001 diff --git a/models/ctr/deepfm/__init__.py b/models/ctr/deepfm/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/models/multi_task/__init__.py b/models/multi_task/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/models/other/__init__.py b/models/other/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/models/ctr/__init__.py b/models/rank/__init__.py similarity index 100% rename from models/ctr/__init__.py rename to models/rank/__init__.py diff --git a/models/ctr/criteo_reader.py b/models/rank/criteo_reader.py similarity index 100% rename from models/ctr/criteo_reader.py rename to models/rank/criteo_reader.py diff --git a/models/ctr/dnn/__init__.py b/models/rank/dnn/__init__.py similarity index 100% rename from models/ctr/dnn/__init__.py rename to models/rank/dnn/__init__.py diff --git a/models/ctr/dnn/data/test/sample_test.txt b/models/rank/dnn/data/test/sample_test.txt similarity index 100% rename from models/ctr/dnn/data/test/sample_test.txt rename to models/rank/dnn/data/test/sample_test.txt diff --git a/models/ctr/dnn/data/train/sample_train.txt b/models/rank/dnn/data/train/sample_train.txt similarity index 100% rename from models/ctr/dnn/data/train/sample_train.txt rename to models/rank/dnn/data/train/sample_train.txt diff --git a/models/ctr/dnn/hyper_parameters.yaml b/models/rank/dnn/hyper_parameters.yaml similarity index 100% rename from models/ctr/dnn/hyper_parameters.yaml rename to models/rank/dnn/hyper_parameters.yaml diff --git a/models/ctr/dnn/model.py b/models/rank/dnn/model.py similarity index 100% rename from models/ctr/dnn/model.py rename to models/rank/dnn/model.py diff --git a/models/recall/__init__.py b/models/recall/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/models/recall/word2vec/hyper_parameters.yaml b/models/recall/word2vec/hyper_parameters.yaml deleted file mode 100644 index e69de29b..00000000 diff --git a/models/recall/word2vec/model.py b/models/recall/word2vec/model.py deleted file mode 100644 index e69de29b..00000000 diff --git a/models/recall/word2vec/reader.py b/models/recall/word2vec/reader.py deleted file mode 100644 index e69de29b..00000000 diff --git a/models/recall/word2vec/sample_test.txt b/models/recall/word2vec/sample_test.txt deleted file mode 100644 index e69de29b..00000000 diff --git a/models/recall/word2vec/sample_train.txt b/models/recall/word2vec/sample_train.txt deleted file mode 100644 index e69de29b..00000000 diff --git a/models/tdm/__init__.py b/models/tdm/__init__.py deleted file mode 100644 index e69de29b..00000000 -- GitLab