Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import numpy as np
- import matplotlib.pyplot as plt
- predicted = list([random.choice([0,1]) for i in range(100)])
- target = np.zeros(100)
- #adding a random value to the predicted and random values
- randomed_predicted = [random.random() for i in range(predicted.count(1))]
- randomed_target = [random.random() for i in range(len(randomed_predicted))]
- plt.scatter(randomed_target, randomed_predicted, c="black")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement