Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Package imports
- import matplotlib.pyplot as plt
- import numpy as np
- import sklearn
- import sklearn.datasets
- import sklearn.linear_model
- # Generate a dataset and plot it
- np.random.seed(0)
- X, y = sklearn.datasets.make_moons(200, noise=0.20)
- fig, a = plt.subplots(figsize=(10,8))
Advertisement
Add Comment
Please, Sign In to add comment