Graph

Wandb class for graphs.

Graph(
    format="keras"
)
Python

This class is typically used for saving and displaying neural net models. It represents the graph as an array of nodes and edges. The nodes can have labels that can be visualized by wandb.

Examples:

Import a keras model:

Graph.from_keras(keras_model)

Methods

add_edge

View source

add_edge(
    from_node, to_node
)
Python

add_node

View source

add_node(
    node=None, **node_kwargs
)
Python

from_keras

View source

@classmethod
from_keras(
    model
)
Python

pprint

View source

pprint()
Python

__getitem__

View source

__getitem__(
    nid
)
Python

Last modified March 7, 2025: 564de3b