Description Usage Arguments Details
A vector can be tagged with the attribute inflatable
by
make_inflatable
. This is useful when a vector of adjustable parameters
needs to be re-used across the rows or columns of a matrix (e.g. if each row
of an error distribution has its own standard deviation).
1 2 3 4 5 6 7 8 9 | inflate(x)
## Default S3 method:
inflate(x)
## S3 method for class 'inflatable'
inflate(x)
make_inflatable(x, by, n)
|
x |
a vector |
by |
one of |
n |
number of times to repeat each element |
inflatable
vectors can be inflate
d to repeat their
elements across the rows or columns in a newly-formed matrix, but are
otherwise unchanged. Calling inflate()
on a non-inflatable vector
will leave the vector unchanged. The derivatives of inflatable
vectors
are automatically handled separatly by backprop()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.