Search found 1 match

by ceaduar
Sun Jul 26, 2020 5:42 pm
Forum: Deep Learning Prerequisites: The Numpy Stack in Python
Topic: Matplotlib exercise
Replies: 9
Views: 1047

Re: Matplotlib exercise

Hello, Mine is similar to what EFortier has come up with. # Determine the vector length vector_length = 2000 # create dataset x = (np.random.random((vector_length,2))-0.5) * 2 x1 = x[:,0] # column 1 x2 = x[:,1] # column 2 y = np.zeros(vector_length) # assign 0s and 1s based on XOR for i in range(len...

Go to advanced search