bug fix data type and pipeline

This commit is contained in:
Steve Nyemba 2020-04-12 20:07:15 -05:00
parent 0d0ebee9c0
commit 65a1fadfca
2 changed files with 4 additions and 3 deletions

View File

@ -592,7 +592,8 @@ class Predict(GNet):
# The code below will insure we have some acceptable cardinal relationships between id and synthetic values # The code below will insure we have some acceptable cardinal relationships between id and synthetic values
# #
df = pd.DataFrame(np.round(f)).astype(np.int32) # df = pd.DataFrame(np.round(f)).astype(np.int32)
df = pd.DataFrame(np.round(f),dtype=np.int32)
p = 0 not in df.sum(axis=1).values p = 0 not in df.sum(axis=1).values
x = df.sum(axis=1).values x = df.sum(axis=1).values

View File

@ -125,9 +125,9 @@ class Components :
logger.write({"module":"train","action":"train","input":info}) logger.write({"module":"train","action":"train","input":info})
data.maker.train(**_args) data.maker.train(**_args)
if set(['drone','autopilot']) in set( list(args.keys())) : if 'autopilot' in ( list(args.keys())) :
print (['drone mode enabled ....']) print (['drone mode enabled ....'])
self.generate(**args) self.generate(args)
pass pass