clone(self, keys: set, seed: Hashable, bind_to: Hashable = None) -> 'tuple[Layer, bool]'
This method should be overridden by subclasses to avoid materializing the layer.
Keys to be replaced. This never includes keys not listed by get_output_keys
. It must also include any keys that are outside of this layer that may be referenced by it.
Common hashable used to alter the keys; see dask.base.clone_key
Optional key to bind the leaf nodes to. A leaf node here is one that does not reference any replaced keys; in other words it's a node where the replacement graph traversal stops; it may still have dependencies on non-replaced nodes. A bound node will not be computed until after bind_to
has been computed.
Clone selected keys in the layer, as well as references to keys in other layers
Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.
Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)
SVG is more flexible but power hungry; and does not scale well to 50 + nodes.
All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them