Skip to contents

Sum of stereotype embeddings' projections onto the unit gender direction.

Usage

morie_kamath_ch6_gender_projection_reg(W_stereo, g)

Arguments

W_stereo

Stereotype embedding rows.

g

Gender direction.

Value

List with estimate, projections, sum_abs, g_norm.

Examples

morie_kamath_ch6_gender_projection_reg(matrix(c(1, 2, 1, 0),
    2), c(0, 3))
#> $estimate
#> [1] 1
#> 
#> $projections
#> [1] 1 0
#> 
#> $sum_abs
#> [1] 1
#> 
#> $g_norm
#> [1] 3
#> 
#> $n
#> [1] 2
#> 
#> $method
#> [1] "gender-projection regulariser (Kamath Eq 6.20)"
#>