Created
December 24, 2021 15:10
-
-
Save shepai/994495e602319dce5c85af55e45e792f to your computer and use it in GitHub Desktop.
Mandelbrot generation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
m = train_X.shape[1] | |
n = train_X.shape[2] | |
def mandelbrot(height, width, x_from=0, x_to=0.1, y_from=0, y_to=0.1, max_iterations=100): | |
x = np.linspace(x_from, x_to, width).reshape((1, width)) | |
y = np.linspace(y_from, y_to, height).reshape((height, 1)) | |
c = x + 1j * y | |
return c | |
C=mandelbrot(1,28*28).reshape(28,28) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment