Skip to contents

A step of the cdaeRC_native implementation. No other function in the package calls it. See the file header for the source the module follows.

Usage

morie_cdaeRC_decode(z, Wp, bp, items = NULL, activation = "sigmoid")

Arguments

z

A vector; its length is taken and its elements indexed.

Wp

A matrix; indexed by row and column.

bp

A vector; its length is taken and its elements indexed.

items

Optional; may be NULL. Coerced to integer by the body, with as.integer.

activation

Passed to .cdae_act. Defaults to "sigmoid".

Value

The value of out, as built in the body.

Examples

morie_cdaeRC_decode(z = c(0.5, -0.5), Wp = matrix(1, 3, 2), bp = c(0, 0, 0))
#>   1   2   3 
#> 0.5 0.5 0.5