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
0cd940b7
Commit
0cd940b7
authored
Jul 29, 2020
by
赵威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update defun
parent
3253f8fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
main_portrait.py
src/main_portrait.py
+4
-3
No files found.
src/main_portrait.py
View file @
0cd940b7
...
...
@@ -5,7 +5,8 @@ import time
import
tensorflow
as
tf
from
models.esmm.fe
import
(
get_device_dict_from_redis
,
get_diary_dict_from_redis
)
from
models.esmm
import
device_fe
as
device_fe
from
models.esmm
import
diary_fe
as
diary_fe
from
models.esmm.model
import
model_predict_diary
from
utils.cache
import
redis_client2
from
utils.grey
import
recommed_service_category_device_id_by_tail
...
...
@@ -56,8 +57,8 @@ def offline_predict(device_id, device_dict, diary_dict, predict_fn):
def
main
():
tf
.
compat
.
v1
.
logging
.
set_verbosity
(
tf
.
compat
.
v1
.
logging
.
INFO
)
device_dict
=
get_device_dict_from_redis
()
diary_dict
=
get_diary_dict_from_redis
()
device_dict
=
device_fe
.
get_device_dict_from_redis
()
diary_dict
=
diary_fe
.
get_diary_dict_from_redis
()
print
(
"redis data: "
+
str
(
len
(
device_dict
))
+
" "
+
str
(
len
(
diary_dict
)))
save_path
=
"/home/gmuser/data/models/1596018742"
...
...
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