Skip to content

Commit

Permalink
Moved check weight contraints from internal function to helper for te…
Browse files Browse the repository at this point in the history
…sts as it was currently only being used in a test and not exported.
  • Loading branch information
moralapablo committed Nov 3, 2023
1 parent d987d5c commit 7662d02
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
#' Check weight's vector constraints (including bias)
#'
#' @param weights List of matrices with the weights of each layer.
#' @param maxnorm List of 2 elements: the name of the used norm and its max value.
#'
#' @return List across all layers with a vector containing the norms of each weight vector.
#'
#' @noRd

check_weight_constraints <- function(weights, maxnorm) {
#### Compute the norm for the full matrix ####

n_weights <- length(weights)
# Initialize an empty list of length n_weights, we will add the elements with a name
weights_norms <- vector(mode = "list", length = n_weights)
Expand Down

0 comments on commit 7662d02

Please sign in to comment.