Advertisement
Guest User

Untitled

a guest
Oct 17th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. import numpy as np
  2. import pandas as pd
  3. import plotly_express as px
  4.  
  5. x = np.arange(0,1,0.001)
  6. y = 1 - x**2 - (1-x)**2
  7. df = pd.DataFrame({'p':x,'Gini Impurity':y})
  8. px.scatter(df,x='p',y='Gini Impurity')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement