lagrange | R Documentation |
Use lagrange_ent
for the unnormalized relative entropy.
lagrange_ent(coefs, constraint, target, base_weights)
lagrange_bent(coefs, constraint, target, base_weights)
lagrange_sent(coefs, constraint, target, base_weights)
coefs |
vector of Lagrangian multipliers (also known as the dual vector). |
constraint |
a matrix that determines the basis of a linear subspace which define the equality constraints of the optimization problem. |
target |
the target margins of the linear equality constraints. This vector
should have a length equal to the number of columns in |
base_weights |
a vector of base weights with length equal to the
number of rows in |
Use lagrange_bent
for the binary relative entropy.
Use lagrange_sent
for the shifted unnormalized relative entropy.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.