Skip to contents

a = phi(w . x + b); phi in step, sign, sigmoid, tanh, relu, identity.

Usage

morie_geron_biological_neuron(x, w, b, activation = "step")

Arguments

x

Input vector or (n, d) matrix.

w

Weights.

b

Bias.

activation

Activation name.

Value

List with a, z, fires, threshold.

Examples

morie_geron_biological_neuron(x = c(1, 2, 3, 4, 5, 6, 7, 8), w = c(1, 2, 3, 4, 5, 6, 7, 8), b = 5L)
#> $a
#> [1] 1
#> 
#> $z
#> [1] 209
#> 
#> $fires
#> [1] TRUE
#> 
#> $threshold
#> [1] -5
#> 
#> $activation
#> [1] "step"
#> 
#> $estimate
#> [1] 1
#> 
#> $n
#> [1] 1
#> 
#> $method
#> [1] "McCulloch-Pitts neuron a = phi(w.x + b)"
#>