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
2e712198
Commit
2e712198
authored
Jul 24, 2020
by
赵威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
write data
parent
c6d355aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
main_portrait.py
src/main_portrait.py
+4
-4
No files found.
src/main_portrait.py
View file @
2e712198
...
...
@@ -41,7 +41,7 @@ def offline_predict(device_id, device_dict, diary_dict, predict_fn):
print
(
diary_ids
[:
10
])
res
=
model_predict_diary
(
device_id
,
diary_ids
,
device_dict
,
diary_dict
,
predict_fn
)
print
(
"res: "
+
str
(
len
(
res
))
+
"
\n
"
)
#
user_portrait_tag3_write_ctcvr_data(device_id, "diary", res[:500])
user_portrait_tag3_write_ctcvr_data
(
device_id
,
"diary"
,
res
[:
500
])
def
main
():
...
...
@@ -54,10 +54,10 @@ def main():
save_path
=
"/home/gmuser/data/models/1595501144"
predict_fn
=
tf
.
contrib
.
predictor
.
from_saved_model
(
save_path
)
#
device_id = "androidid_a25a1129c0b38f7b"
#
offline_predict(device_id, device_dict, diary_dict, predict_fn)
device_id
=
"androidid_a25a1129c0b38f7b"
offline_predict
(
device_id
,
device_dict
,
diary_dict
,
predict_fn
)
user_portrait_scan_info
(
device_dict
,
diary_dict
,
predict_fn
)
#
user_portrait_scan_info(device_dict, diary_dict, predict_fn)
if
__name__
==
"__main__"
:
...
...
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