R/multiLayerIntialiser.R

Defines functions multiLayerIntialiser

#' Multi Layer Initialisation for deepforest
#'
#' @param layerChoice
#' @param unitsChoice
#' @param networkCount
#' @param seed
#'
#' @return
#' @noRd
#'
#' @examples
#'
multiLayerIntialiser<-function(layerChoice,
                               unitsChoice,
                               networkCount,seed){
  set.seed(seed)
  allnets<- sample(layerChoice,networkCount,replace = T)
  multiLayerList<-lapply(allnets, function(l){sample(unitsChoice,l,replace = T)})

  return(multiLayerList)
}

Try the deepdive package in your browser

Any scripts or data that you put into this service are public.

deepdive documentation built on July 10, 2021, 5:08 p.m.