Skip to content

Commit

Permalink
Change to .
Browse files Browse the repository at this point in the history
  • Loading branch information
l0o0 committed May 21, 2019
1 parent 803f54b commit d9aef2b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rosaceae/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def com_count(m, n):
if thresh and test_roc_score < thresh:
continue

row = 0 if pd.isna(result_df.index.max()) else result_df.index.max() + 1
row = 0 if pd.isnull(result_df.index.max()) else result_df.index.max() + 1
result_df.loc[row] = [n, ','.join(t), train_roc_score, test_roc_score, clf.coef_[0], clf.intercept_[0]]

return result_df
Expand All @@ -88,7 +88,7 @@ def model_selector2(x, y, start=1, end=None, verbose=False):
if verbose:
print("%s\t%s\t%s\t%s" % (n, ','.join(t), scores.mean(), scores.std()))

#row = 0 if pd.isna(result_df.index.max()) else result_df.index.max() + 1
#row = 0 if pd.isnull(result_df.index.max()) else result_df.index.max() + 1
result_df.loc[result_df.shape[0]] = [n, ','.join(t), scores.mean(), scores.std()]

return result_df
Expand Down Expand Up @@ -131,7 +131,7 @@ def summary(data, verbose=False):
for i,col in enumerate(data.columns):
datatype = str(data[col].dtype)
recs = len(data[col])
miss = sum(pd.isna(data[col]))
miss = sum(pd.isnull(data[col]))
uniq = len(data[col].unique())
if verbose:
print(col)
Expand Down

0 comments on commit d9aef2b

Please sign in to comment.