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
6737a753
Commit
6737a753
authored
Jul 29, 2020
by
赵威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update path
parent
ba84c715
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
main.py
src/main.py
+4
-3
No files found.
src/main.py
View file @
6737a753
...
...
@@ -62,9 +62,9 @@ def main():
# save_path = model_export(model, all_features, model_export_path)
# print("save to: " + save_path)
# save_path = "/home/gmuser/data/models/159531724
7"
save_path
=
"/home/gmuser/data/models/159601282
7"
save_path
=
str
(
Path
(
"~/Desktop/models/1596012827"
)
.
expanduser
())
#
save_path = str(Path("~/Desktop/models/1596012827").expanduser())
# tf.saved_model.load
...
...
@@ -84,7 +84,8 @@ def main():
for
i
in
range
(
5
):
time_1
=
timeit
.
default_timer
()
model_predict_diary
(
random
.
sample
(
device_ids
,
1
)[
0
],
random
.
sample
(
diary_ids
,
200
),
device_dict
,
diary_dict
,
predict_fn
)
res
=
model_predict_diary
(
random
.
sample
(
device_ids
,
1
)[
0
],
random
.
sample
(
diary_ids
,
200
),
device_dict
,
diary_dict
,
predict_fn
)
print
(
res
[:
10
])
total_1
=
(
timeit
.
default_timer
()
-
time_1
)
print
(
"total prediction cost {:.5f}s"
.
format
(
total_1
),
"
\n
"
)
...
...
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