Skip to content

Commit

Permalink
Update issue templates
Browse files Browse the repository at this point in the history
  • Loading branch information
Weichen Shen committed Jan 25, 2019
1 parent d97e9cd commit 024da0a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Steps to reproduce the behavior:
**Operating environment(运行环境):**
- python version [e.g. 3.4, 3.6]
- tensorflow version [e.g. 1.4.0, 1.12.0]
- deepctr version [e.g. 0.2.3,]

**Additional context**
Add any other context about the problem here.
7 changes: 6 additions & 1 deletion .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@ assignees: ''
---

**Describe the question(问题描述)**
A clear and concise description of what the bug is.
A clear and concise description of what the question is.

**Additional context**
Add any other context about the problem here.

**Operating environment(运行环境):**
- python version [e.g. 3.4, 3.6]
- tensorflow version [e.g. 1.4.0, 1.12.0]
- deepctr version [e.g. 0.2.3,]
5 changes: 3 additions & 2 deletions examples/run_regression_movielens.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from sklearn.model_selection import train_test_split
from sklearn.metrics import mean_squared_error
from deepctr.models import DeepFM
from deepctr import VarLenFeat,SingleFeat
from deepctr import SingleFeat

if __name__ == "__main__":

Expand All @@ -17,7 +17,8 @@
lbe = LabelEncoder()
data[feat] = lbe.fit_transform(data[feat])
# 2.count #unique features for each sparse field
sparse_feat_list = [SingleFeat(feat,data[feat].nunique()) for feat in sparse_features]
sparse_feat_list = [SingleFeat(feat, data[feat].nunique())
for feat in sparse_features]

# 3.generate input data for model
train, test = train_test_split(data, test_size=0.2)
Expand Down

0 comments on commit 024da0a

Please sign in to comment.