-
Notifications
You must be signed in to change notification settings - Fork 365
[feat]: add rtp fg to support negative sampler and batch sequence feature op #296
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
Open
wwxxzz
wants to merge
22
commits into
master
Choose a base branch
from
fg_seq
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
9168265
add ssr_fg (neg_sampler && batch_seq_op)
wwxxzz fe2b84f
fix bugs
wwxxzz 66ac49b
fix bugs
wwxxzz 188c7ea
Merge branch 'master' of github.com:alibaba/EasyRec into fg_seq
wwxxzz e0e921b
add local op file & bug fix
wwxxzz 2089576
[feat]: add dnn fg test & delete multi tower recall model
wwxxzz db052ab
[bugfix]: modify samples/rtp_fg/fg_test_extensions_final.config
wwxxzz bbcdab1
[bugfix]: add op file to ops/
wwxxzz 443084b
[bugfix]: fix model config
wwxxzz 9a3535b
[bugfix]: modify total steps for test case
wwxxzz 6c3137e
[bugfix]: add tf1.15 op
wwxxzz 0f799a4
[bugfix]: dict_values not support index in py3
wwxxzz 39365d2
[bugfix]:modify dict_values to list
wwxxzz 1cb867b
[bugfix] fix some bugs on fg op
wwxxzz 37c748e
Merge branch 'fg_seq' of github.com:alibaba/EasyRec into fg_seq
wwxxzz 9bc1803
[bugfix] fix bug in main.py about fg_json_path
wwxxzz e210145
[bugfix] fix bug on sequence feature and negative sampler in DSSM
wwxxzz aed3778
[bugfix] fix bug on sequence feature and negative sampler in DSSM
wwxxzz 3f57ea5
[bugfix] fix bug on sequence feature and negative sampler in DSSM
wwxxzz 75d57ac
[bugfix] remove test case of dssm+negative+sequence
wwxxzz 06d56df
fix bugs
wwxxzz e529951
Merge branch 'master' of github.com:alibaba/EasyRec into fg_seq
wwxxzz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,69 @@ | ||
| # MultiTowerRecall | ||
|
|
||
| ### 简介 | ||
|
|
||
| 专为接入RTP FG时加入负采样和序列特征训练准备的DNN模型。 | ||
|
|
||
| ### 配置说明 | ||
|
|
||
| ```protobuf | ||
| fg_json_path: "!samples/model_config/fg_fusion_train_seq.json" | ||
| model_config { | ||
| model_class: "DNNFG" | ||
| feature_groups { | ||
| group_name: "all" | ||
| feature_names: 'adgroup_id' | ||
| feature_names: 'cate_id' | ||
| feature_names: 'campaign_id' | ||
| feature_names: 'customer' | ||
| feature_names: 'brand' | ||
| feature_names: 'user_id' | ||
| feature_names: 'cms_segid' | ||
| feature_names: 'cms_group_id' | ||
| feature_names: 'final_gender_code' | ||
| feature_names: 'age_level' | ||
| feature_names: 'pvalue_level' | ||
| feature_names: 'shopping_level' | ||
| feature_names: 'occupation' | ||
| feature_names: 'new_user_class_level' | ||
| wide_deep: DEEP | ||
| sequence_features: { | ||
| group_name: "seq_fea" | ||
| tf_summary: false | ||
| seq_att_map: { | ||
| key: "cate_id" | ||
| key: "brand" | ||
| hist_seq: "click_seq__cate_id" | ||
| hist_seq: "click_seq__brand" | ||
| } | ||
| } | ||
| } | ||
| dnnfg { | ||
| dnn { | ||
| hidden_units: 256 | ||
| hidden_units: 128 | ||
| hidden_units: 64 | ||
| } | ||
| l2_regularization: 1e-6 | ||
| } | ||
| embedding_regularization: 5e-6 | ||
| } | ||
| ``` | ||
|
|
||
| - fg_json_path: 指定fg json文件目录 | ||
| - model_class: 'DNNFG', 不需要修改 | ||
| - feature_groups: 需要一个feature_group: all, **group name不能变** | ||
| - dnnfg: dnnfg相关的参数 | ||
| - dnn: deep part的参数配置 | ||
| - hidden_units: dnn每一层的channel数目,即神经元的数目 | ||
| - embedding_regularization: 对embedding部分加regularization,防止overfit | ||
|
|
||
| 支持的metric_set包括: | ||
|
|
||
| - auc | ||
| - gauc | ||
| - recall_at_topK | ||
|
|
||
| ### 示例Config | ||
|
|
||
| 见路径:samples/model_config/fg_fusion_train_neg_seq_on_dnn.config | ||
This file contains hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.