From d0a6d8059e20d96fee680adadc0e2b31eb9852d6 Mon Sep 17 00:00:00 2001 From: yinhaofeng <1841837261@qq.com> Date: Tue, 22 Sep 2020 07:00:33 +0000 Subject: [PATCH] add some notes --- models/rank/logistic_regression/data/get_slot_data.py | 3 +-- models/rank/logistic_regression/readme.md | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/models/rank/logistic_regression/data/get_slot_data.py b/models/rank/logistic_regression/data/get_slot_data.py index f0b95a79..f9605d50 100644 --- a/models/rank/logistic_regression/data/get_slot_data.py +++ b/models/rank/logistic_regression/data/get_slot_data.py @@ -79,8 +79,7 @@ class Reader(dg.MultiSlotDataGenerator): v = i[1] for j in v: s += " " + k + ":" + str(j) - print(s.strip()) - yield None + print(s.strip()) # add print for data preprocessing return data_iter diff --git a/models/rank/logistic_regression/readme.md b/models/rank/logistic_regression/readme.md index 84237b60..226667c5 100644 --- a/models/rank/logistic_regression/readme.md +++ b/models/rank/logistic_regression/readme.md @@ -156,9 +156,7 @@ class Reader(dg.MultiSlotDataGenerator): v = i[1] for j in v: s += " " + k + ":" + str(j) - print(s.strip()) - yield None - + print(s.strip()) # add print for data preprocessing return data_iter -- GitLab