The following formula is used to classify points from two-dimensional space:
f(x1,x2) = np.sign(x1^2+x2^2-.6)
All points are in the space X = [-1,1] x [-1,1] with a uniform probability of choosing each x.
Now I would like to visualize a circle that is equal to:
0 = x1^2+x2^2-.6
The x1 values ββmust be on the x axis and the x2 values ββon the y axis.
It should be possible, but it's hard for me to convert the equation into a graph.
python numpy matplotlib plot equation
Elyakim
source share