Skip to content

Instantly share code, notes, and snippets.

View 1WorldCapture's full-sized avatar

1WorldCapture

View GitHub Profile
@1WorldCapture
1WorldCapture / neural_netowrk_graphviz.py
Last active March 3, 2024 01:53
[AI DIY] general python import statements in jupyter #python #jupyter
from graphviz import Digraph
def trace(root):
# builds a set of all nodes and edges in a graph
nodes,edges = set(), set()
def build(v):
if v not in nodes:
nodes.add(v)
for child in v._prev: