added momentum
Showing 1 of 6 files from the diff.
Newly tracked file
R/param_momentum.R
created.
Other files ignored by Codecov
DESCRIPTION
has changed.
NAMESPACE
has changed.
tests/testthat/test_params.R
has changed.
man/momentum.Rd
is new.
man/grid_regular.Rd
has changed.
@@ -0,0 +1,18 @@
Loading
1 | + | #' Gradient descent momentum parameter |
|
2 | + | #' |
|
3 | + | #' A useful parameter for neural network models using gradient descent |
|
4 | + | #' |
|
5 | + | #' @inheritParams Laplace |
|
6 | + | #' @examples |
|
7 | + | #' momentum() |
|
8 | + | #' @export |
|
9 | + | momentum <- function (range = c(0, 1), trans = NULL) { |
|
10 | + | new_quant_param( |
|
11 | + | type = "double", |
|
12 | + | range = range, |
|
13 | + | inclusive = c(TRUE, TRUE), |
|
14 | + | trans = trans, |
|
15 | + | label = c(momentum = "Gradient Descent Momentum"), |
|
16 | + | finalize = NULL |
|
17 | + | ) |
|
18 | + | } |
Files | Coverage |
---|---|
R | 86.19% |
Project Totals (58 files) | 86.19% |
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file.
The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files.
The size and color of each slice is representing the number of statements and the coverage, respectively.