SHARE
TWEET

Untitled

a guest Oct 17th, 2019 90 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Listing 1
  2. import numpy as np
  3. import matplotlib.pyplot as plt
  4. from sklearn import linear_model
  5. import sklearn.metrics as metrics
  6.  
  7. x=np.arange(1,51)
  8. y=np.zeros(50)
  9. y[25:50]=1
  10. plt.scatter(x.ravel(), y, color='black', zorder=10)
  11. plt.ylabel('y')
  12. plt.xlabel('X')
  13. plt.ylim(-.25, 1.25)
  14. plt.xlim(0, 51)
  15. plt.show()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top