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
from collections.abc import MutableSequence | |
from dataclasses import dataclass | |
from typing import Any, Generator | |
@dataclass | |
class LinkedNode(): | |
value: Any | |
next_node: "LinkedNode" = None |
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
import matplotlib.pyplot as plt | |
import numpy as np | |
import tensorflow as tf | |
from matplotlib.animation import FuncAnimation | |
from tensorflow.keras.layers import Conv2D, InputLayer, Layer | |
from tensorflow.keras.models import Sequential | |
size = 128 | |
n_frames = 240 | |
full_size = (1, size, size, 1) |