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
c43db5e0
Commit
c43db5e0
authored
Jul 21, 2020
by
赵威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add printer
parent
30c48f55
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
main.py
src/main.py
+5
-5
No files found.
src/main.py
View file @
c43db5e0
...
...
@@ -94,7 +94,7 @@ def main():
time_1
=
timeit
.
default_timer
()
model_predict
(
user1
,
predict_fn
)
total_1
=
(
timeit
.
default_timer
()
-
time_1
)
print
(
"total prediction cost {:.5f}s"
.
format
(
total_1
))
print
(
"total prediction cost {:.5f}s"
.
format
(
total_1
)
,
"
\n
"
)
def
test2
():
time_1
=
timeit
.
default_timer
()
...
...
@@ -105,7 +105,7 @@ def main():
time_1
=
timeit
.
default_timer
()
model_predict
(
user1
,
predict_fn
)
total_1
=
(
timeit
.
default_timer
()
-
time_1
)
print
(
"total prediction cost {:.5f}s"
.
format
(
total_1
))
print
(
"total prediction cost {:.5f}s"
.
format
(
total_1
)
,
"
\n
"
)
def
test3
():
time_1
=
timeit
.
default_timer
()
...
...
@@ -116,7 +116,7 @@ def main():
time_1
=
timeit
.
default_timer
()
model_predict
(
user1
,
predict_fn
)
total_1
=
(
timeit
.
default_timer
()
-
time_1
)
print
(
"total prediction cost {:.5f}s"
.
format
(
total_1
))
print
(
"total prediction cost {:.5f}s"
.
format
(
total_1
)
,
"
\n
"
)
def
test4
():
time_1
=
timeit
.
default_timer
()
...
...
@@ -127,7 +127,7 @@ def main():
time_1
=
timeit
.
default_timer
()
model_predict
(
user1
,
predict_fn
)
total_1
=
(
timeit
.
default_timer
()
-
time_1
)
print
(
"total prediction cost {:.5f}s"
.
format
(
total_1
))
print
(
"total prediction cost {:.5f}s"
.
format
(
total_1
)
,
"
\n
"
)
def
test5
():
time_1
=
timeit
.
default_timer
()
...
...
@@ -138,7 +138,7 @@ def main():
time_1
=
timeit
.
default_timer
()
model_predict
(
user1
,
predict_fn
)
total_1
=
(
timeit
.
default_timer
()
-
time_1
)
print
(
"total prediction cost {:.5f}s"
.
format
(
total_1
))
print
(
"total prediction cost {:.5f}s"
.
format
(
total_1
)
,
"
\n
"
)
test1
()
test2
()
...
...
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