
AlignScore joint loss (Kamath Eq 6.3)
Source:R/kamath_llm2_native.R
morie_kamath_ch6_alignscore_total_loss.Rdlam1 L_3way + lam2 L_bin + lam3 L_reg.
Examples
morie_kamath_ch6_alignscore_total_loss(1, 2, 3, c(0.5, 0.25,
0.25))
#> $estimate
#> [1] 1.75
#>
#> $contributions
#> [1] 0.50 0.50 0.75
#>
#> $losses
#> [1] 1 2 3
#>
#> $lambdas
#> [1] 0.50 0.25 0.25
#>
#> $n
#> [1] 3
#>
#> $method
#> [1] "AlignScore joint loss (Kamath Eq 6.3)"
#>