|
|
@ -66,10 +66,14 @@ class CtrReader(object):
|
|
|
|
pass
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
def _reader_creator(self, filelist):
|
|
|
|
def _reader_creator(self, filelist):
|
|
|
|
|
|
|
|
def get_rand(low=0.0, high=1.0):
|
|
|
|
|
|
|
|
return random.random()
|
|
|
|
|
|
|
|
|
|
|
|
def reader():
|
|
|
|
def reader():
|
|
|
|
for file in filelist:
|
|
|
|
for file in filelist:
|
|
|
|
with open(file, 'r') as f:
|
|
|
|
with open(file, 'r') as f:
|
|
|
|
for line in f:
|
|
|
|
for line in f:
|
|
|
|
|
|
|
|
if get_rand() < 0.05:
|
|
|
|
fs = line.strip().split('\t')
|
|
|
|
fs = line.strip().split('\t')
|
|
|
|
dnn_input = load_dnn_input_record(fs[0])
|
|
|
|
dnn_input = load_dnn_input_record(fs[0])
|
|
|
|
lr_input = load_lr_input_record(fs[1])
|
|
|
|
lr_input = load_lr_input_record(fs[1])
|
|
|
|