Skip to content

Instantly share code, notes, and snippets.

@douglaspsteen
Created August 29, 2020 21:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save douglaspsteen/98e0193b01d6e3c2cfb462225737971b to your computer and use it in GitHub Desktop.
Save douglaspsteen/98e0193b01d6e3c2cfb462225737971b to your computer and use it in GitHub Desktop.
# Visualize class distribution
y_train.value_counts().plot(kind='bar')
plt.xticks([0,1], ['No Complication', 'Complication'])
plt.ylabel('Count');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment