Commit 3268d3e7 authored by 赵威's avatar 赵威

update timer

parent 2f918780
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 = timeit.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 = (timeit.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()))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment