diff --git a/R/constraints.R b/R/constraints.R index 400801e..764bd96 100644 --- a/R/constraints.R +++ b/R/constraints.R @@ -37,7 +37,6 @@ #' # Check that class of the constrained nn is "nn2poly" #' class(nn_constrained)[1] #' } -#' } #' #' if (requireNamespace("luz", quietly=TRUE)) { #' # ---- Example with a luz/torch network ---- @@ -61,6 +60,7 @@ #' # Check that class of the constrained nn is "nn2poly" #' class(nn)[1] #' } +#' } #' #' @export add_constraints <- function(object, type = c("l1_norm", "l2_norm"), ...) { diff --git a/man/add_constraints.Rd b/man/add_constraints.Rd index 7a1a5b0..72632c4 100644 --- a/man/add_constraints.Rd +++ b/man/add_constraints.Rd @@ -46,7 +46,6 @@ if (requireNamespace("keras", quietly=TRUE)) { # Check that class of the constrained nn is "nn2poly" class(nn_constrained)[1] } -} if (requireNamespace("luz", quietly=TRUE)) { # ---- Example with a luz/torch network ---- @@ -70,6 +69,7 @@ if (requireNamespace("luz", quietly=TRUE)) { # Check that class of the constrained nn is "nn2poly" class(nn)[1] } +} } \seealso{