|
|
@ -187,6 +187,8 @@ class Learner(Process):
|
|
|
|
no_value = 0 if np.sum(no_value) > 0 else ''
|
|
|
|
no_value = 0 if np.sum(no_value) > 0 else ''
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
self._df[name] = self._df[name].fillna(no_value)
|
|
|
|
self._df[name] = self._df[name].fillna(no_value)
|
|
|
|
|
|
|
|
except Exception as e:
|
|
|
|
|
|
|
|
print (['.... skipping ',name,no_value])
|
|
|
|
finally:
|
|
|
|
finally:
|
|
|
|
pass
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
@ -591,7 +593,7 @@ class Shuffle(Generator):
|
|
|
|
_tmpdf = self._df[_columns].copy()[_columns]
|
|
|
|
_tmpdf = self._df[_columns].copy()[_columns]
|
|
|
|
np.random.seed(1)
|
|
|
|
np.random.seed(1)
|
|
|
|
np.random.shuffle(_index)
|
|
|
|
np.random.shuffle(_index)
|
|
|
|
print (_columns,_index)
|
|
|
|
|
|
|
|
# _values = _tmpdf.values[_index]
|
|
|
|
# _values = _tmpdf.values[_index]
|
|
|
|
#_tmpdf = _tmpdf.iloc[_index]
|
|
|
|
#_tmpdf = _tmpdf.iloc[_index]
|
|
|
|
_tmpdf = pd.DataFrame(_tmpdf.values[_index],columns=_columns)
|
|
|
|
_tmpdf = pd.DataFrame(_tmpdf.values[_index],columns=_columns)
|
|
|
|