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
3268d3e7
Commit
3268d3e7
authored
Jul 21, 2020
by
赵威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update timer
parent
2f918780
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
requirements.txt
requirements.txt
+1
-0
main.py
src/main.py
+5
-4
No files found.
requirements.txt
View file @
3268d3e7
tensorflow-gpu
==1.15.2
keras
==2.3.1
pandas
==1.0.5
scikit-learn
==0.23.1
redis
==2.10.5
src/main.py
View file @
3268d3e7
import
os
import
shutil
import
time
import
timeit
from
datetime
import
datetime
from
pathlib
import
Path
import
shutil
import
tensorflow
as
tf
from
sklearn.model_selection
import
train_test_split
...
...
@@ -46,10 +47,10 @@ def main():
# print(next(iter(predictions)))
test_300
=
test_df
.
sample
(
300
)
time_1
=
time
.
time
()
time_1
=
time
it
.
default_timer
()
model_predict
(
test_300
,
save_path
)
total_1
=
(
time
.
time
()
-
time_1
)
print
(
"prediction cost {:.5f} s
at {}"
.
format
(
total_1
,
datetime
.
now
()
))
total_1
=
(
time
it
.
default_timer
()
-
time_1
)
print
(
"prediction cost {:.5f} s
"
.
format
(
total_1
))
total_time
=
(
time
.
time
()
-
time_begin
)
/
60
print
(
"cost {:.2f} mins at {}"
.
format
(
total_time
,
datetime
.
now
()))
...
...
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