Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix bugs on examples/configs/ #376

Merged
merged 1 commit into from
Jun 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/configs/autoint_on_movielens.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
train_input_path: "examples/data/movielens_1m/movies_train_data"
eval_input_path: "examples/data/movielens_1m/movies_test_data"
model_dir: "examples/ckpt/new_autoint_on_movieslen_ckpt"
model_dir: "examples/ckpt/autoint_on_movieslen_ckpt"

train_config {
log_step_count_steps: 100
Expand Down
2 changes: 1 addition & 1 deletion examples/configs/dcn_on_movielens.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
train_input_path: "examples/data/movielens_1m/movies_train_data"
eval_input_path: "examples/data/movielens_1m/movies_test_data"
model_dir: "examples/ckpt/new_dcn_on_movieslen_ckpt"
model_dir: "examples/ckpt/dcn_on_movieslen_ckpt"

train_config {
log_step_count_steps: 100
Expand Down
2 changes: 1 addition & 1 deletion examples/configs/deepfm_on_movielens.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
train_input_path: "examples/data/movielens_1m/movies_train_data"
eval_input_path: "examples/data/movielens_1m/movies_test_data"
model_dir: "examples/ckpt/new_deepfm_movieslen_ckpt"
model_dir: "examples/ckpt/deepfm_movieslen_ckpt"

train_config {
log_step_count_steps: 100
Expand Down
53 changes: 26 additions & 27 deletions examples/configs/dssm_on_books_negative_sample.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
train_input_path: "examples/data/book_data/new_book_train_data"
eval_input_path: "examples/data/book_data/new_book_test_data"
model_dir: "examples/ckpt/mind_book_negative_sample_ckpt"
train_input_path: "examples/data/amazon_books_data/amazon_train_data"
eval_input_path: "examples/data/amazon_books_data/amazon_test_data"
model_dir: "examples/ckpt/dssm_book_negative_sample_ckpt"

train_config {
log_step_count_steps: 100
Expand Down Expand Up @@ -59,7 +59,7 @@ data_config {
separator: "\t"

negative_sampler {
input_path: 'examples/data/book_data/negative_book_data'
input_path: 'examples/data/amazon_books_data/negative_book_data'
num_sample: 1024
num_eval_sample: 1024
attr_fields: 'book_id'
Expand Down Expand Up @@ -89,44 +89,43 @@ feature_config: {
}
}
model_config:{
model_class: "MIND"
feature_groups: {
group_name: 'hist'
feature_names: 'book_id_seq'
}
model_class: "DSSM"
feature_groups: {
group_name: 'user'
feature_names: 'user_id'
wide_deep:DEEP
sequence_features: {
group_name: "seq_fea"
allow_key_search: true
need_key_feature:true
seq_att_map: {
key: "book_id"
hist_seq: "book_id_seq"
}
}
}
feature_groups: {
group_name: "item"
feature_names: 'book_id'
wide_deep:DEEP
}
mind {
user_dnn {
hidden_units: [128, 64, 32]
}
item_dnn {
hidden_units: [128, 64, 32]
}

concat_dnn {
hidden_units: [64, 32]
dssm {
user_tower {
id: "user_id"
dnn {
hidden_units: [256, 128, 64, 32]
}
}

capsule_config {
max_k: 3
max_seq_len: 50
high_dim: 64
item_tower {
id: "book_id"
dnn {
hidden_units: [256, 128, 64, 32]
}
}
item_id: "book_id"
l2_regularization: 1e-6
ignore_in_batch_neg_sam: true
}
embedding_regularization: 5e-5
loss_type: SOFTMAX_CROSS_ENTROPY
embedding_regularization: 5e-6
}

export_config {
Expand Down
4 changes: 2 additions & 2 deletions examples/configs/mind_on_books.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
train_input_path: "examples/data/book_data/new_book_train_data"
eval_input_path: "examples/data/book_data/new_book_test_data"
train_input_path: "examples/data/amazon_books_data/amazon_train_data"
eval_input_path: "examples/data/amazon_books_data/amazon_test_data"
model_dir: "examples/ckpt/mind_book_ckpt"

train_config {
Expand Down
6 changes: 3 additions & 3 deletions examples/configs/mind_on_books_negative_sample.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
train_input_path: "examples/data/book_data/new_book_train_data"
eval_input_path: "examples/data/book_data/new_book_test_data"
train_input_path: "examples/data/amazon_books_data/amazon_train_data"
eval_input_path: "examples/data/amazon_books_data/amazon_test_data"
model_dir: "examples/ckpt/mind_book_negative_sample_ckpt"

train_config {
Expand Down Expand Up @@ -59,7 +59,7 @@ data_config {
separator: "\t"

negative_sampler {
input_path: 'examples/data/book_data/negative_book_data'
input_path: 'examples/data/amazon_books_data/negative_book_data'
num_sample: 1024
num_eval_sample: 1024
attr_fields: 'book_id'
Expand Down
2 changes: 1 addition & 1 deletion examples/configs/wide_and_deep_on_movielens.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
train_input_path: "examples/data/movielens_1m/movies_train_data"
eval_input_path: "examples/data/movielens_1m/movies_test_data"
model_dir: "examples/ckpt/new_wide_and_deep_movieslen_ckpt"
model_dir: "examples/ckpt/wide_and_deep_movieslen_ckpt"

train_config {
log_step_count_steps: 100
Expand Down