Search found 1 match

by argho33
Tue Aug 18, 2020 7:41 am
Forum: Deep Learning Prerequisites: The Numpy Stack in Python
Topic: Matplotlib exercise
Replies: 9
Views: 2694

Re: Matplotlib exercise

Found a really easy 4 lines of code solution to this problem. import numpy as np import matplotlib.pyplot as plt #Generate random 2D array with 2000 elements and dimensionality of 2 and values between -1 to 1 x = np.random.uniform(-1, 1, size=(2000,2)) #Generate a new 2D array of just 0's and 1's us...

Go to advanced search