Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
gm_strategy_cvr
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
gm_strategy_cvr
Commits
02b10027
Commit
02b10027
authored
Jul 24, 2020
by
赵威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add printer
parent
328dd6a1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
main_portrait.py
src/main_portrait.py
+2
-3
No files found.
src/main_portrait.py
View file @
02b10027
...
@@ -25,9 +25,9 @@ def user_portrait_scan_info(device_dict, diary_dict, predict_fn):
...
@@ -25,9 +25,9 @@ def user_portrait_scan_info(device_dict, diary_dict, predict_fn):
device_id
=
key
.
split
(
":"
)[
-
1
]
device_id
=
key
.
split
(
":"
)[
-
1
]
if
(
user_portrait_tag3_get_candidate_dict
(
device_id
,
"diary"
)):
if
(
user_portrait_tag3_get_candidate_dict
(
device_id
,
"diary"
)):
offline_predict
(
device_id
,
device_dict
,
diary_dict
,
predict_fn
)
all_count
+=
1
all_count
+=
1
print
(
str
(
all_count
)
+
": "
+
device_id
)
offline_predict
(
device_id
,
device_dict
,
diary_dict
,
predict_fn
)
print
(
"all count: "
+
str
(
all_count
))
print
(
"all count: "
+
str
(
all_count
))
print
(
"scan done "
+
str
(
datetime
.
datetime
.
now
()))
print
(
"scan done "
+
str
(
datetime
.
datetime
.
now
()))
...
@@ -36,7 +36,6 @@ def user_portrait_scan_info(device_dict, diary_dict, predict_fn):
...
@@ -36,7 +36,6 @@ def user_portrait_scan_info(device_dict, diary_dict, predict_fn):
def
offline_predict
(
device_id
,
device_dict
,
diary_dict
,
predict_fn
):
def
offline_predict
(
device_id
,
device_dict
,
diary_dict
,
predict_fn
):
print
(
device_id
)
diary_ids
=
user_portrait_tag3_get_candidate_unread_list
(
device_id
,
"diary"
)
diary_ids
=
user_portrait_tag3_get_candidate_unread_list
(
device_id
,
"diary"
)
print
(
"diary_ids: "
+
str
(
len
(
diary_ids
)))
print
(
"diary_ids: "
+
str
(
len
(
diary_ids
)))
# print(diary_ids[:10])
# print(diary_ids[:10])
...
...
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