Skip to content

Instantly share code, notes, and snippets.

View Blue25GD's full-sized avatar

Alexandru Popescu Blue25GD

View GitHub Profile
from math import *
import image
import time
# Mandelbrot parameters (tune these for performance and resolution)
MAX_ITER = 1000 # Max number of iterations before considering a point to be in the Mandelbrot set
ZOOM = 200 # Zoom factor
WIDTH, HEIGHT = 320, 240 # Screen resolution (adjust as needed)
# Function to compute whether a point is in the Mandelbrot set
{"architecture": "{\"module\": \"keras\", \"class_name\": \"Sequential\", \"config\": {\"name\": \"sequential\", \"trainable\": true, \"dtype\": {\"module\": \"keras\", \"class_name\": \"DTypePolicy\", \"config\": {\"name\": \"float32\"}, \"registered_name\": null}, \"layers\": [{\"module\": \"keras.layers\", \"class_name\": \"InputLayer\", \"config\": {\"batch_shape\": [null, 784], \"dtype\": \"float32\", \"sparse\": false, \"name\": \"input_layer\"}, \"registered_name\": null}, {\"module\": \"keras.layers\", \"class_name\": \"Dense\", \"config\": {\"name\": \"dense\", \"trainable\": true, \"dtype\": {\"module\": \"keras\", \"class_name\": \"DTypePolicy\", \"config\": {\"name\": \"float32\"}, \"registered_name\": null}, \"units\": 10, \"activation\": \"linear\", \"use_bias\": true, \"kernel_initializer\": {\"module\": \"keras.initializers\", \"class_name\": \"GlorotUniform\", \"config\": {\"seed\": null}, \"registered_name\": null}, \"bias_initializer\": {\"module\": \"keras.initializers\", \"class_name\": \