Description Usage Arguments Value Note Author(s) Examples
Add a parameter to the active graph whose value is initialized by a Gaussian distribution.
1 |
... |
numerical scalars, the dimensions of the parameter. |
mean |
numerical scalar, the mean of the Gaussian distribution (optional). |
sd |
numerical scalar, the standard deviation of the Gaussian 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_gaussian(2, 3, mean = 0, sd = 1, name = "a")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.