Description Usage Arguments Value Examples
This function optimizes the log-likelihood of the given location-scale
regression model by gradient descent. It has a side effect on the model
object.
1 2 3 4 5 6 7 | gradient_descent(
model,
stepsize = 0.001,
maxit = 1000,
abstol = 0.001,
verbose = FALSE
)
|
model |
A |
stepsize |
The scaling factor for the gradient. |
maxit |
The maximum number of iterations. |
abstol |
The absolute convergence tolerance. The algorithm stops if the absolute value of the gradient drops below this value. |
verbose |
Whether to print the progress of the algorithm. |
The updated model, invisibly.
1 2 3 | y <- rnorm(30)
model <- LocationScaleRegression$new(y ~ 1)
gradient_descent(model)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.