R/multiActivationList.R

Defines functions multiActivationList

#' Activation List for Deepforest

#' @return
#' @noRd

multiActivationList<-function(multiLayerList,activation,seed){

layerLengths<-sapply(multiLayerList , function(l){
       length(l)})


activationList<-lapply(1:length(layerLengths), function(m){
  set.seed(m*seed)
  sample(activation,layerLengths[m],replace = T)
})


return(activationList)

}

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.