Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import numpy as np
- import pandas as pd
- import plotly_express as px
- x = np.arange(0,1,0.001)
- y = 1 - x**2 - (1-x)**2
- df = pd.DataFrame({'p':x,'Gini Impurity':y})
- px.scatter(df,x='p',y='Gini Impurity')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement