예제 #1
0
 def test_plot(self):
     synthetic_original = SyntheticDatabase(10, 5)
     synthetic_original.plot(synthetic_original.labels, title='No Noise')
     plt.show()
     synthetic_noise = deepcopy(synthetic_original)
     noise = (np.random.randn(50, 2)*0.02).tolist()
     synthetic_noise.corrupt(noise)
     synthetic_noise.plot(synthetic_noise.labels, title='Even Noise')
     plt.show()