Description Usage Arguments Value Note Author(s) Examples
Add a parameter to the active graph whose value is initialized by a uniform distribution.
1 |
... |
numerical scalars, the dimensions of the parameter. |
min |
numerical scalar, the lower bound of the uniform distribution (optional). |
max |
numerical scalar, the upper bound of the uniform distribution (optional). |
name |
character scalar, name of the node (optional). In case argument |
cg_node object.
The dimensions provided to ...
must be non-negative whole numbers.
Ron Triepels
1 2 3 4 5 | # Initialize a computational graph
graph <- cg_graph()
# Add a parameter to the graph
a <- cg_init_uniform(2, 3, min = -1, max = 1, name = "a")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.