bug fix , generator

This commit is contained in:
Steve Nyemba 2020-02-20 23:08:35 -06:00
parent cd88a9660a
commit c1a500fe4c
1 changed files with 3 additions and 2 deletions

View File

@ -568,8 +568,9 @@ class Predict(GNet):
#
df = ( pd.DataFrame(np.round(f).astype(np.int32)))
p = 0 not in df.sum(axis=1).values
if p:
x = df.sum(axis=1).values
print ( [np.sum(x),x.size])
if np.divide( np.sum(x), x.size) :
found.append(df)
if len(found) == NTH_VALID_CANDIDATE or i == CANDIDATE_COUNT:
break