R/gevcdn.reshape.R

gevcdn.reshape <-
function (x, weights, n.hidden)
{
    N11 <- ncol(x) + 1
    N12 <- n.hidden
    N1 <- N11*N12
    W1 <- weights[1:N1]
    W1 <- matrix(W1, nrow = N11, ncol = N12)
    N21 <- n.hidden + 1
    N22 <- 3
    N2 <- N1 + N21*N22
    W2 <- weights[(N1 + 1):N2]
    W2 <- matrix(W2, nrow = N21, ncol = N22)
    list(W1 = W1, W2 = W2)
}

Try the GEVcdn package in your browser

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

GEVcdn documentation built on April 24, 2020, 9:05 a.m.