Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Code block for "Building a Neural Network to Predict Loan Risk"
import matplotlib.pyplot as plt
%matplotlib inline
import seaborn as sns
sns.kdeplot(
data=loans["fraction_recovered"][loans["loan_status"] == "Charged Off"],
label="Charged Off",
shade=True,
)
plt.axis(xmin=0, xmax=1)
plt.title('Distribution of "fraction recovered"')
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.