gamma_to_theta | R Documentation |
Converts raw intercept function, which is the output of
mod_baseline
, to the valid intercept function, which
is used to evaluate the likelihood and it's gradient.
Namely, theta_1 = gamma_1, theta_k = theta_1 + sum_i = 1^k-1
exp(gamma_i) and by convention theta_0 = -Inf, theta_K = Inf.
gamma_to_theta(gammas)
Returns a tf.tensor
containing theta_0 to theta_K
gammas <- tf$constant(c(0, -1, -1, -1), shape = c(1L, 4L), dtype = "float32")
gamma_to_theta(gammas)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.