Graph
less than a minute
class Graph
W&B class for graphs.
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.
Attributes:
format
(string): Format to help wandb display the graph nicely.nodes
([wandb.Node]): List ofwandb.Nodes
.nodes_by_id
(dict): dict of ids -> nodesedges
([(wandb.Node, wandb.Node)]): List of pairs of nodes interpreted as edges.loaded
(boolean): Flag to tell whether the graph is completely loaded.root
(wandb.Node): Root node of the graph.
Examples: Import a keras model.
import wandb
wandb.Graph.from_keras(keras_model)
method Graph.__init__
__init__(format='keras')
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.