Nothing
testthat::context("Utility functions")
testthat::test_that("softmax", {
X <- cbind(1, 1)
testthat::expect_equivalent(softmax(X, ref=FALSE),
cbind(.5, .5))
X <- rnorm(10)
testthat::expect_equivalent(softmax(X), lava::expit(X))
X <- cbind(1,2,3)
testthat::expect_equivalent(softmax(X),
exp(c(0,X))/sum(exp(c(0,X))))
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.