powered by
Add a parameter node to the graph.
numeric vector or array, value of the node (optional).
character scalar, name of the node (optional). In case name is missing, the node is tried to be added to the graph under an auto-generated name.
name
cg_node, parameter.
$parm(value = NULL, name = NULL)
# NOT RUN { # Initialize a new computational graph. x <- cgraph$new() # Add a parameter with value 1 and name 'p' to the graph. x$parm(1, name = "p") # }
Run the code above in your browser using DataLab