| clip_prob | R Documentation |
Ensures all values lie in [eps, 1-eps] to avoid log(0)
or division-by-zero issues in downstream computations.
clip_prob(p, eps = 1e-12)
p |
Numeric vector or matrix of probabilities. |
eps |
Small positive value (default |
Numeric vector or matrix with the same dimensions as p.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.