Description Usage Arguments Examples
constructor for Optimizer
1 2 3 4 5 |
p |
optimization problem class |
direction |
character c("gradient", "newton", "stochastic gradient") |
stepsize |
character c("wolfe", "backtrack") |
wtol |
coefficient criteria for stop iteration |
gtol |
gradient tolerance |
ftol |
function value tolerance |
w0 |
initialization coefficient matrix |
maxiter |
maximum iteration; default = 100 |
1 2 3 | data(mini_mnist)
LR <- new("logisticRegression", X=mini_mnist$train$images, Y=mini_mnist$train$labels, lambda=0.5)
O <- new("Optimizer", p = LR, w = matrix(0, nrow = 784, ncol = 10), iter = 1000)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.