Description Usage Arguments Value Note Author(s) Examples
Add a parameter node to the active graph.
1 | cg_parameter(value, name = NULL)
|
value |
numerical vector or array, value of the node. |
name |
character scalar, name of the node (optional). In case argument |
cg_node object.
Parameters are assumed to be subject to some optimization process. Hence, their value might change over time. You can use data member value
of a cg_node object to retrieve or change its value.
Ron Triepels
1 2 3 4 5 | # Initialize a computational graph
graph <- cg_graph()
# Add a parameter with value 1 and name 'a' to the graph.
a <- cg_parameter(1, name = "a")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.