Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
ffm-baseline
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ML
ffm-baseline
Commits
dc7f3d96
Commit
dc7f3d96
authored
5 years ago
by
Your Name
Browse files
Options
Browse Files
Download
Plain Diff
change predict and sort process
parents
7dd548c6
6219b3d8
master
mr/beta/bug22
offic
rtt
updatedb
zhao
zhao22
No related merge requests found
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
0 deletions
+10
-0
feature_engineering.py
eda/esmm/Model_pipline/feature_engineering.py
+0
-0
train.py
eda/esmm/Model_pipline/train.py
+10
-0
multi.py
tensnsorflow/multi.py
+0
-0
multi_hot.py
tensnsorflow/multi_hot.py
+0
-0
No files found.
eda/esmm/Model_pipline/feature_engineering.py
View file @
dc7f3d96
This diff is collapsed.
Click to expand it.
eda/esmm/Model_pipline/train.py
View file @
dc7f3d96
...
@@ -59,10 +59,14 @@ def input_fn(filenames, batch_size=32, num_epochs=1, perform_shuffle=False):
...
@@ -59,10 +59,14 @@ def input_fn(filenames, batch_size=32, num_epochs=1, perform_shuffle=False):
"tag6_list"
:
tf
.
VarLenFeature
(
tf
.
int64
),
"tag6_list"
:
tf
.
VarLenFeature
(
tf
.
int64
),
"tag7_list"
:
tf
.
VarLenFeature
(
tf
.
int64
),
"tag7_list"
:
tf
.
VarLenFeature
(
tf
.
int64
),
"search_tag2_list"
:
tf
.
VarLenFeature
(
tf
.
int64
),
"search_tag2_list"
:
tf
.
VarLenFeature
(
tf
.
int64
),
<<<<<<<
HEAD
"search_tag3_list"
:
tf
.
VarLenFeature
(
tf
.
int64
),
"search_tag3_list"
:
tf
.
VarLenFeature
(
tf
.
int64
),
"uid"
:
tf
.
VarLenFeature
(
tf
.
string
),
"uid"
:
tf
.
VarLenFeature
(
tf
.
string
),
"city"
:
tf
.
VarLenFeature
(
tf
.
string
),
"city"
:
tf
.
VarLenFeature
(
tf
.
string
),
"cid_id"
:
tf
.
VarLenFeature
(
tf
.
string
)
"cid_id"
:
tf
.
VarLenFeature
(
tf
.
string
)
=======
"search_tag3_list"
:
tf
.
VarLenFeature
(
tf
.
int64
)
>>>>>>>
6219
b3d856f8bfae4b542ea25d6ffb4209e193ad
}
}
parsed
=
tf
.
parse_single_example
(
record
,
features
)
parsed
=
tf
.
parse_single_example
(
record
,
features
)
y
=
parsed
.
pop
(
'y'
)
y
=
parsed
.
pop
(
'y'
)
...
@@ -131,10 +135,13 @@ def model_fn(features, labels, mode, params):
...
@@ -131,10 +135,13 @@ def model_fn(features, labels, mode, params):
tag7_list
=
features
[
'tag7_list'
]
tag7_list
=
features
[
'tag7_list'
]
search_tag2_list
=
features
[
'search_tag2_list'
]
search_tag2_list
=
features
[
'search_tag2_list'
]
search_tag3_list
=
features
[
'search_tag3_list'
]
search_tag3_list
=
features
[
'search_tag3_list'
]
<<<<<<<
HEAD
uid
=
features
[
'uid'
]
uid
=
features
[
'uid'
]
city
=
features
[
'city'
]
city
=
features
[
'city'
]
cid_id
=
features
[
'cid_id'
]
cid_id
=
features
[
'cid_id'
]
=======
>>>>>>>
6219
b3d856f8bfae4b542ea25d6ffb4209e193ad
if
FLAGS
.
task_type
!=
"infer"
:
if
FLAGS
.
task_type
!=
"infer"
:
y
=
labels
[
'y'
]
y
=
labels
[
'y'
]
...
@@ -160,10 +167,13 @@ def model_fn(features, labels, mode, params):
...
@@ -160,10 +167,13 @@ def model_fn(features, labels, mode, params):
# x_concat = tf.reshape(embedding_id,shape=[-1, common_dims]) # None * (F * K)
# x_concat = tf.reshape(embedding_id,shape=[-1, common_dims]) # None * (F * K)
x_concat
=
tf
.
concat
([
tf
.
reshape
(
embedding_id
,
shape
=
[
-
1
,
common_dims
]),
app_id
,
level2
,
level3
,
tag1
,
x_concat
=
tf
.
concat
([
tf
.
reshape
(
embedding_id
,
shape
=
[
-
1
,
common_dims
]),
app_id
,
level2
,
level3
,
tag1
,
tag2
,
tag3
,
tag4
,
tag5
,
tag6
,
tag7
,
search_tag2
,
search_tag3
],
axis
=
1
)
tag2
,
tag3
,
tag4
,
tag5
,
tag6
,
tag7
,
search_tag2
,
search_tag3
],
axis
=
1
)
<<<<<<<
HEAD
uid
=
tf
.
sparse
.
to_dense
(
uid
,
default_value
=
""
)
uid
=
tf
.
sparse
.
to_dense
(
uid
,
default_value
=
""
)
city
=
tf
.
sparse
.
to_dense
(
city
,
default_value
=
""
)
city
=
tf
.
sparse
.
to_dense
(
city
,
default_value
=
""
)
cid_id
=
tf
.
sparse
.
to_dense
(
cid_id
,
default_value
=
""
)
cid_id
=
tf
.
sparse
.
to_dense
(
cid_id
,
default_value
=
""
)
=======
>>>>>>>
6219
b3d856f8bfae4b542ea25d6ffb4209e193ad
with
tf
.
name_scope
(
"CVR_Task"
):
with
tf
.
name_scope
(
"CVR_Task"
):
if
mode
==
tf
.
estimator
.
ModeKeys
.
TRAIN
:
if
mode
==
tf
.
estimator
.
ModeKeys
.
TRAIN
:
...
...
This diff is collapsed.
Click to expand it.
tensnsorflow/multi.py
View file @
dc7f3d96
This diff is collapsed.
Click to expand it.
tensnsorflow/multi_hot.py
deleted
100644 → 0
View file @
7dd548c6
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment