Skip to content

Commit

Permalink
Update visualize.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jim-schwoebel authored Aug 14, 2020
1 parent 43df4f3 commit f13388f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions visualize/visualize.py
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ def visualize_features(classes, problem_type, curdir, default_features, balance_
fig=sns.violinplot(x=newdata['classes'], y=newdata[new_labels_[j]])
fig = fig.get_figure()
fig.tight_layout()
fig.savefig('%s_%s.png'%(str(j), feature_labels[0][j]))
fig.savefig('%s_%s.png'%(str(j), new_labels_[j]))
plt.close(fig)

os.mkdir('feature_plots_transformed')
Expand All @@ -586,7 +586,7 @@ def visualize_features(classes, problem_type, curdir, default_features, balance_
fig=sns.violinplot(x=newdata['classes'], y=newdata[new_labels[j]])
fig = fig.get_figure()
fig.tight_layout()
fig.savefig('%s_%s.png'%(str(j), feature_labels[0][j]))
fig.savefig('%s_%s.png'%(str(j), new_labels[j]))
plt.close(fig)

##################################################
Expand Down

0 comments on commit f13388f

Please sign in to comment.