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
17409684
Commit
17409684
authored
Aug 04, 2020
by
赵威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update path
parent
90662af1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
main_portrait.py
src/main_portrait.py
+5
-5
No files found.
src/main_portrait.py
View file @
17409684
...
@@ -77,15 +77,15 @@ def main():
...
@@ -77,15 +77,15 @@ def main():
tractate_dict
=
tractate_fe
.
get_tractate_dict_from_redis
()
tractate_dict
=
tractate_fe
.
get_tractate_dict_from_redis
()
print
(
"redis data: "
+
str
(
len
(
device_dict
))
+
" "
+
str
(
len
(
diary_dict
))
+
" "
+
str
(
len
(
tractate_dict
)))
print
(
"redis data: "
+
str
(
len
(
device_dict
))
+
" "
+
str
(
len
(
diary_dict
))
+
" "
+
str
(
len
(
tractate_dict
)))
diary_save_path
=
"/home/gmuser/data/models/diary/1596
423214
"
diary_save_path
=
"/home/gmuser/data/models/diary/1596
509008
"
diary_predict_fn
=
tf
.
contrib
.
predictor
.
from_saved_model
(
diary_save_path
)
diary_predict_fn
=
tf
.
contrib
.
predictor
.
from_saved_model
(
diary_save_path
)
tractate_save_path
=
"/home/gmuser/data/models/tractate/1596
426037
"
tractate_save_path
=
"/home/gmuser/data/models/tractate/1596
509299
"
tractate_predict_fn
=
tf
.
contrib
.
predictor
.
from_saved_model
(
tractate_save_path
)
tractate_predict_fn
=
tf
.
contrib
.
predictor
.
from_saved_model
(
tractate_save_path
)
device_id
=
"androidid_a25a1129c0b38f7b"
#
device_id = "androidid_a25a1129c0b38f7b"
offline_predict_diary
(
device_id
,
device_dict
,
diary_dict
,
diary_predict_fn
)
#
offline_predict_diary(device_id, device_dict, diary_dict, diary_predict_fn)
offline_predict_tractate
(
device_id
,
device_dict
,
tractate_dict
,
tractate_predict_fn
)
#
offline_predict_tractate(device_id, device_dict, tractate_dict, tractate_predict_fn)
# res = user_portrait_tag3_get_candidate_unread_list(device_id, "diary")
# res = user_portrait_tag3_get_candidate_unread_list(device_id, "diary")
# print(len(res))
# print(len(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