powered by
Add parameters to the graph.
numeric vectors or arrays, the values of the parameters. Is ignored when parms is not NULL.
parms
NULL
named list, the parameters that are to be added to the graph.
nothing.
$add_parms(..., parms = NULL)
# NOT RUN { # Initialize a new computational graph. x <- cgraph$new() # Add some parameters. x$add_parms(prm1 = 1, prm2 = 2, prm3 = 3) # List the parameters. x$get_parms() # }
Run the code above in your browser using DataLab