Description Usage Arguments See Also Examples
threshold
sets values of a vector/matrix below
min
to min
; values above max
are set
to max
.
threshold
is mainly used to project sparsified
weight vectors (sparsify_weights
) back onto
the probability simplex (thus min = 0
and then
normalize
).
1 |
x |
a numeric matrix(like object) |
min |
minimum value |
max |
maximum value |
1 |
[1] 1 4 2 0 10
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.