cart-elc

Source code for CART-ELC
git clone git://git.laack.co/cart-elc.git
Log | Files | Refs | README | LICENSE

generateDiabetes.py (381B)


      1 import matplotlib.pyplot as plt
      2 import seaborn as sns
      3 
      4 x = [249 , 286 , 380 , 112 , 385 , 163 , 208 , 121 , 166 , 218]
      5 y = [0 ,1 ,1 ,0 ,1 ,0 ,0 , 0 ,0 ,0]
      6 
      7 plt.scatter(x,y, c=y, cmap='bwr')
      8 plt.show()
      9 
     10 
     11 x = [249 , 286 , 380 , 112 , 385 , 163 , 208 , 121 , 166 , 218]
     12 y = [0 ,1 ,1 ,0 ,1 ,0 ,0 , 0 ,0 ,0]
     13 
     14 plt.scatter(x,y, c=y, cmap='bwr')
     15 plt.axvline((286-249)/2 + 249)
     16 
     17 plt.show()