-
Notifications
You must be signed in to change notification settings - Fork 714
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
浅梦
authored
Sep 24, 2019
1 parent
328255d
commit d4e671d
Showing
15 changed files
with
130 additions
and
37 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
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
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,2 +1,3 @@ | ||
# History | ||
- 09/24/2019 : [v0.1.1](https://github.com/shenweichen/DeepCTR-Torch/releases/tag/v0.1.1) released. Add [CCPM](./Features.html#ccpm-convolutional-click-prediction-model). | ||
- 09/22/2019 : DeepCTR-Torch first version v0.1.0 is released on [PyPi](https://pypi.org/project/deepctr-torch/) |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
deepctr\_torch.layers.sequence module | ||
======================================== | ||
|
||
.. automodule:: deepctr_torch.layers.sequence | ||
:members: | ||
:no-undoc-members: | ||
:no-show-inheritance: |
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,7 @@ | ||
deepctr\_torch.models.ccpm module | ||
================================ | ||
|
||
.. automodule:: deepctr_torch.models.ccpm | ||
:members: | ||
:no-undoc-members: | ||
:no-show-inheritance: |
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 |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
|
||
setuptools.setup( | ||
name="deepctr-torch", | ||
version="0.1.0", | ||
version="0.1.1", | ||
author="Weichen Shen", | ||
author_email="[email protected]", | ||
description="Easy-to-use,Modular and Extendible package of deep learning based CTR(Click Through Rate) prediction models with PyTorch", | ||
|
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,43 @@ | ||
import pytest | ||
|
||
from deepctr_torch.models import CCPM | ||
from tests.utils import check_model, get_test_data, SAMPLE_SIZE | ||
|
||
|
||
@pytest.mark.parametrize( | ||
'sparse_feature_num,dense_feature_num', | ||
[ (3, 0) | ||
] | ||
) | ||
def test_CCPM(sparse_feature_num, dense_feature_num): | ||
model_name = "CCPM" | ||
|
||
sample_size = SAMPLE_SIZE | ||
x, y, feature_columns = get_test_data( | ||
sample_size, sparse_feature_num, dense_feature_num) | ||
|
||
model = CCPM(feature_columns,feature_columns, conv_kernel_width=(3, 2), conv_filters=( | ||
2, 1), dnn_hidden_units=[32, ], dnn_dropout=0.5) | ||
check_model(model, model_name, x, y) | ||
|
||
|
||
@pytest.mark.parametrize( | ||
'sparse_feature_num,dense_feature_num', | ||
[(2, 0), | ||
] | ||
) | ||
def test_CCPM_without_seq(sparse_feature_num, dense_feature_num): | ||
|
||
model_name = "CCPM" | ||
|
||
sample_size = SAMPLE_SIZE | ||
x, y, feature_columns = get_test_data( | ||
sample_size, sparse_feature_num, dense_feature_num, sequence_feature=()) | ||
|
||
model = CCPM(feature_columns, feature_columns,conv_kernel_width=(3, 2), conv_filters=( | ||
2, 1), dnn_hidden_units=[32, ], dnn_dropout=0.5) | ||
check_model(model, model_name, x, y) | ||
|
||
|
||
if __name__ == "__main__": | ||
pass |