-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. Add embedding_dim to numeric features
2. Update examples in the demo
- Loading branch information
Showing
33 changed files
with
339 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
## Datasets | ||
|
||
A list of benchmark datasets for CTR prediction are available at https://openbenchmark.github.io/BARS/datasets/README.html# | ||
|
||
A list of benchmark datasets for CTR prediction https://github.com/reczoo/Datasets |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
{ | ||
"dataset_id": "tiny_parquet", | ||
"num_fields": 14, | ||
"total_features": 485, | ||
"input_length": 14, | ||
"labels": [ | ||
"clk" | ||
], | ||
"features": [ | ||
{ | ||
"userid": { | ||
"source": "", | ||
"type": "categorical", | ||
"padding_idx": 0, | ||
"vocab_size": 26 | ||
} | ||
}, | ||
{ | ||
"adgroup_id": { | ||
"source": "", | ||
"type": "categorical", | ||
"padding_idx": 0, | ||
"vocab_size": 96 | ||
} | ||
}, | ||
{ | ||
"pid": { | ||
"source": "", | ||
"type": "categorical", | ||
"padding_idx": 0, | ||
"vocab_size": 4 | ||
} | ||
}, | ||
{ | ||
"cate_id": { | ||
"source": "", | ||
"type": "categorical", | ||
"padding_idx": 0, | ||
"vocab_size": 49 | ||
} | ||
}, | ||
{ | ||
"campaign_id": { | ||
"source": "", | ||
"type": "categorical", | ||
"padding_idx": 0, | ||
"vocab_size": 99 | ||
} | ||
}, | ||
{ | ||
"customer": { | ||
"source": "", | ||
"type": "categorical", | ||
"padding_idx": 0, | ||
"vocab_size": 98 | ||
} | ||
}, | ||
{ | ||
"brand": { | ||
"source": "", | ||
"type": "categorical", | ||
"padding_idx": 0, | ||
"vocab_size": 67 | ||
} | ||
}, | ||
{ | ||
"cms_segid": { | ||
"source": "", | ||
"type": "categorical", | ||
"padding_idx": 0, | ||
"vocab_size": 11 | ||
} | ||
}, | ||
{ | ||
"cms_group_id": { | ||
"source": "", | ||
"type": "categorical", | ||
"padding_idx": 0, | ||
"vocab_size": 11 | ||
} | ||
}, | ||
{ | ||
"final_gender_code": { | ||
"source": "", | ||
"type": "categorical", | ||
"padding_idx": 0, | ||
"vocab_size": 4 | ||
} | ||
}, | ||
{ | ||
"age_level": { | ||
"source": "", | ||
"type": "categorical", | ||
"padding_idx": 0, | ||
"vocab_size": 7 | ||
} | ||
}, | ||
{ | ||
"pvalue_level": { | ||
"source": "", | ||
"type": "categorical", | ||
"padding_idx": 0, | ||
"vocab_size": 4 | ||
} | ||
}, | ||
{ | ||
"shopping_level": { | ||
"source": "", | ||
"type": "categorical", | ||
"padding_idx": 0, | ||
"vocab_size": 5 | ||
} | ||
}, | ||
{ | ||
"occupation": { | ||
"source": "", | ||
"type": "categorical", | ||
"padding_idx": 0, | ||
"vocab_size": 4 | ||
} | ||
} | ||
] | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
### Tiny data for demo only | ||
tiny_npz: | ||
tiny_parquet: | ||
data_root: ../data/ | ||
data_format: npz | ||
train_data: ../data/tiny_npz/train.npz | ||
valid_data: ../data/tiny_npz/valid.npz | ||
test_data: ../data/tiny_npz/test.npz | ||
data_format: parquet | ||
train_data: ../data/tiny_parquet/train.parquet | ||
valid_data: ../data/tiny_parquet/valid.parquet | ||
test_data: ../data/tiny_parquet/test.parquet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,7 @@ | ||
### Tiny data for demo only | ||
tiny_example3: | ||
tiny_npz: | ||
data_root: ../data/ | ||
data_format: csv | ||
train_data: ../data/tiny_csv/train_sample.csv | ||
valid_data: ../data/tiny_csv/valid_sample.csv | ||
test_data: ../data/tiny_csv/test_sample.csv | ||
min_categr_count: 1 | ||
feature_cols: | ||
[{name: ["userid","adgroup_id","pid","cate_id","campaign_id","customer","brand","cms_segid", | ||
"cms_group_id","final_gender_code","age_level","pvalue_level","shopping_level","occupation"], | ||
active: True, dtype: str, type: categorical}] | ||
label_col: {name: clk, dtype: float} | ||
|
||
data_format: npz | ||
train_data: ../data/tiny_npz/train.npz | ||
valid_data: ../data/tiny_npz/valid.npz | ||
test_data: ../data/tiny_npz/test.npz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,15 @@ | ||
### Tiny data for demo only | ||
tiny_seq: | ||
tiny_example5: | ||
data_root: ../data/ | ||
data_format: npz | ||
train_data: ../data/tiny_seq/train.npz | ||
valid_data: ../data/tiny_seq/valid.npz | ||
test_data: ../data/tiny_seq/test.npz | ||
data_format: csv | ||
train_data: ../data/tiny_csv/train_sample.csv | ||
valid_data: ../data/tiny_csv/valid_sample.csv | ||
test_data: ../data/tiny_csv/test_sample.csv | ||
min_categr_count: 1 | ||
feature_cols: | ||
[{name: "userid", active: True, dtype: str, type: categorical, pretrained_emb: "../data/tiny_csv/userid_emb_dim8.npz", | ||
embedding_dim: 8, freeze_emb: True}, | ||
{name: ["adgroup_id","pid","cate_id","campaign_id","customer","brand","cms_segid", | ||
"cms_group_id","final_gender_code","age_level","pvalue_level","shopping_level","occupation"], | ||
active: True, dtype: str, type: categorical}] | ||
label_col: {name: clk, dtype: float} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,7 @@ | ||
### Tiny data for demo only | ||
tiny_example6: | ||
tiny_seq: | ||
data_root: ../data/ | ||
data_format: csv | ||
train_data: ../data/tiny_csv/custom_preprocess_train_sample.csv | ||
valid_data: ../data/tiny_csv/custom_preprocess_valid_sample.csv | ||
test_data: ../data/tiny_csv/custom_preprocess_test_sample.csv | ||
min_categr_count: 1 | ||
feature_cols: | ||
- active: true | ||
dtype: str | ||
name: [msno, song_id, source_system_tab, source_screen_name, source_type, | ||
city, gender, registered_via, language] | ||
type: categorical | ||
- {active: true, dtype: str, encoder: MaskedSumPooling, max_len: 3, name: genre_ids, | ||
type: sequence} | ||
- {active: true, dtype: str, encoder: MaskedSumPooling, max_len: 3, name: artist_name, | ||
type: sequence} | ||
- {active: true, dtype: str, name: isrc, preprocess: extract_country_code, type: categorical} | ||
- {active: true, dtype: str, name: bd, preprocess: bucketize_age, type: categorical} | ||
label_col: {dtype: float, name: label} | ||
data_format: npz | ||
train_data: ../data/tiny_seq/train.npz | ||
valid_data: ../data/tiny_seq/valid.npz | ||
test_data: ../data/tiny_seq/test.npz |
Oops, something went wrong.