Description Usage Arguments Details Author(s) Examples
View source: R/summary_function.R
Function to display a graph that contains the loss value computed in each iteration of
the optimization process performed using the mle_tf
function or using the mlereg_tf
function.
1 |
object |
an object of class |
... |
additional arguments affecting the constructed graph. |
plot_loss.MLEtf
function displays a graph of the loss value, which correspond to the
negative log-likelihood computed in each iteration of the optimization process.
Sara Garcés Céspedes sgarcesc@unal.edu.co
1 2 3 4 5 6 7 8 9 10 11 12 | #---------------------------------------------------------------
# Estimation of both normal distrubution parameters
# Generate a sample from the normal distribution
x <- rnorm(n = 1000, mean = 10, sd = 3)
# Use the plot_loss function
plot_loss(mle_tf(x,
xdist = "Normal",
optimizer = "AdamOptimizer",
initparam = list(mean = 1.0, sd = 1.0),
hyperparameters = list(learning_rate = 0.1)))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.