Skip to content

Commit

Permalink
Added joint version of the power-loss function
Browse files Browse the repository at this point in the history
  • Loading branch information
msainsburydale committed Nov 13, 2023
1 parent e614116 commit d6fceee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,9 @@ end
θ = arrayn(p, K) * 0.9 |> dvc

@testset "kpowerloss" begin
@test kpowerloss(θ̂, θ, 2; safeorigin = false) mse(θ̂, θ)
@test kpowerloss(θ̂, θ, 1; safeorigin = false) mae(θ̂, θ)
@test kpowerloss(θ̂, θ, 1; safeorigin = true) mae(θ̂, θ)
@test kpowerloss(θ̂, θ, 2; safeorigin = false, joint=false) mse(θ̂, θ)
@test kpowerloss(θ̂, θ, 1; safeorigin = false, joint=false) mae(θ̂, θ)
@test kpowerloss(θ̂, θ, 1; safeorigin = true, joint=false) mae(θ̂, θ)
@test kpowerloss(θ̂, θ, 0.1) >= 0
end

Expand Down

0 comments on commit d6fceee

Please sign in to comment.