Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
strategy_embedding
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rank
strategy_embedding
Commits
e1f21fe3
Commit
e1f21fe3
authored
Dec 22, 2020
by
赵威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add printer
parent
b93421ed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
answer.py
word_vector/answer.py
+2
-2
No files found.
word_vector/answer.py
View file @
e1f21fe3
...
...
@@ -151,8 +151,8 @@ def get_device_click_answer_ids_dict(click_df):
for
i
in
cols
:
card_id
=
i
[
"card_id"
]
session_id
=
i
[
"app_session_id"
]
print
(
"card_id: {} {}"
.
format
(
int
(
card_id
),
int
(
card_id
)
in
online_ids
))
if
(
card_id
not
in
res
[
session_id
])
and
(
int
(
card_id
)
in
online_ids
):
#
print("card_id: {} {}".format(int(card_id), int(card_id) in online_ids))
if
(
int
(
card_id
)
in
online_ids
)
and
(
card_id
not
in
res
[
session_id
]
):
res
[
session_id
]
.
append
(
card_id
)
return
res
...
...
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