|
|
|
@ -219,7 +219,7 @@ class Generator (Learner):
|
|
|
|
|
|
|
|
|
|
index = [ _x not in ['',None,np.nan] for _x in values]
|
|
|
|
|
|
|
|
|
|
if len(index) == len(values):
|
|
|
|
|
if np.sum(index) == 0:
|
|
|
|
|
#
|
|
|
|
|
# Sometimes messy data has unpleasant surprises
|
|
|
|
|
continue
|
|
|
|
@ -228,6 +228,7 @@ class Generator (Learner):
|
|
|
|
|
values[index] = list(values[index] + _values )if np.random.randint(0,2) else list(values[index] - _values)
|
|
|
|
|
values[index] = values[index].astype(_type)
|
|
|
|
|
x += values.tolist()
|
|
|
|
|
print (batches)
|
|
|
|
|
if x :
|
|
|
|
|
_log['input']['identical_percentage'] = 100 * (1 - np.divide( (_df[name].dropna() == x).sum(),_df[name].dropna().size))
|
|
|
|
|
_df[name] = x #np.array(x,dtype=np.int64) if 'int' in _type else np.arry(x,dtype=np.float64)
|
|
|
|
|