Commit a8148ff7 authored by 赵威's avatar 赵威

add timer

parent c5617cb7
......@@ -97,6 +97,7 @@ def _bytes_feature(value):
@numba.jit(nopython=True, parallel=True)
def _make_example(device_info, diary_lst):
time_1 = timeit.default_timer()
int_columns = [
"active_type", "active_days", "card_id", "is_pure_author", "is_have_reply", "is_have_pure_reply", "content_level",
"topic_num", "favor_num", "vote_num"
......@@ -128,7 +129,6 @@ def _make_example(device_info, diary_lst):
def model_predict2(device_id, diary_ids, device_dict, diary_dict, predict_fn):
time_1 = timeit.default_timer()
device_info, diary_lst = device_diary_fe(device_id, diary_ids, device_dict, diary_dict)
examples = _make_example(device_info, diary_lst)
......
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