Description Usage Arguments Value
Apply stochastic gradient descent (SGD) to estimate NN. Modified from CASL.
1 | nn_sgd(X, y, sizes, epochs, eta, weights = NULL, f_p = util_mse_p)
|
X |
a numeric matrix |
y |
a numeric vector |
sizes |
an integer vector |
epochs |
an integer value |
eta |
a positive numeric value |
weights |
optional list of starting weights |
f_p |
derivative of the loss function |
a list of trained weights
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.