baotrung217

nn-scratch

Dec 21st, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. # Package imports
  2. import matplotlib.pyplot as plt
  3. import numpy as np
  4. import sklearn
  5. import sklearn.datasets
  6. import sklearn.linear_model
  7.  
  8. # Generate a dataset and plot it
  9. np.random.seed(0)
  10. X, y = sklearn.datasets.make_moons(200, noise=0.20)
  11. fig, a = plt.subplots(figsize=(10,8))
Advertisement
Add Comment
Please, Sign In to add comment