Description Usage Arguments Value Examples
This function will compute the logistic loss when a binary data set and its natural parameter matrix is avaliable.
1 | obj_logistic(X, Theta)
|
X |
a binary matrix |
Theta |
a natual parameter (log-odds) matrix |
The logistic loss
1 2 3 4 5 6 7 | ## Not run:
Theta <- matrix(rnorm(3*4),3,4)
X <- matrix(data=0,3,4)
X[Theta>0] <- 1
obj_logistic(X,Theta)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.