Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. import numpy as np
  2. import matplotlib.pyplot as plt
  3. predicted = list([random.choice([0,1]) for i in range(100)])
  4. target = np.zeros(100)
  5.  
  6. #adding a random value to the predicted and random values
  7. randomed_predicted = [random.random() for i in range(predicted.count(1))]
  8. randomed_target = [random.random() for i in range(len(randomed_predicted))]
  9. plt.scatter(randomed_target, randomed_predicted, c="black")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement