loss_exponential <- function(w, x, y) {
z <- y * x
loss_exponential2(w, z)
}
loss_exponential2 <- function(w, z) {
mean(exp(-z %*% w))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.