Skip to contents

Heaviside step activation (Geron Ch 10, morie.fn grhev)

Usage

morie_geron_heaviside_step(z, threshold = 0)

Arguments

z

Numeric input.

threshold

Finite threshold; the step is closed at it.

Value

List with output, fraction_active, threshold.

Examples

V <- c(1, 2, 3, 4, 5, 6, 7, 8)
morie_geron_heaviside_step(V)
#> $output
#> [1] 1 1 1 1 1 1 1 1
#> 
#> $fraction_active
#> [1] 1
#> 
#> $threshold
#> [1] 0
#> 
#> $estimate
#> [1] 1 1 1 1 1 1 1 1
#> 
#> $n
#> [1] 8
#>