View source: R/evaluate_scorematching_loss.R
evaluate_scorematching_loss | R Documentation |
Evaluates the score matching loss function at new_data
.
evaluate_scorematching_loss(scorematching_logconcave, new_data)
scorematching_logconcave |
An object of class "LogConcaveDESM",
usually the output of |
new_data |
A numeric vector of real numbers at which the score matching loss function should be evaluated. |
A numeric of the score matching loss function evaluated at the new_data.
set.seed(1119)
N <- 100
data <- rnorm(N)
domain <- c(-5, 5)
result <- lcd_scorematching(data, domain, penalty_param = 1e-10)
evaluate_scorematching_loss(scorematching_logconcave = result, new_data = result$data)
evaluate_scorematching_loss(scorematching_logconcave = result,
new_data = seq(-5, 5, by = 0.01))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.