bug fix , generator

dev
Steve L. Nyemba 5 years ago
parent 74c1f9d511
commit cd88a9660a

@ -581,6 +581,7 @@ class Predict(GNet):
#
# In case we are dealing with actual values like diagnosis codes we can perform
#
df = found[np.random.choice(np.arange(len(found)),1)[0]]
columns = self.ATTRIBUTES['synthetic'] if isinstance(self.ATTRIBUTES['synthetic'],list)else [self.ATTRIBUTES['synthetic']]

@ -38,7 +38,7 @@ def train (**args) :
# args['label'] = handler.Export(df[[column_id]])
# args['label'] = np.ones(df.shape[0]).reshape(df.shape[0],1)
for col in column :
args['real'] = pd.get_dummies(df[col]).astype(np.float32).values
args['real'] = pd.get_dummies(df[col].fillna('')).astype(np.float32).values
# args['real'] = handler.Export(df[[col]])
args['column'] = col
args['context'] = col

Loading…
Cancel
Save