Skip to content

Commit c9c68b1

Browse files
committed
typo
1 parent 53667b4 commit c9c68b1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/imitation/fenchel_young_loss.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,24 +68,24 @@ end
6868
function compute_F_and_y_samples(
6969
perturbed::AbstractPerturbed{false},
7070
θ::AbstractArray,
71-
η_samples::Vector{<:AbstractArray};
71+
Z_samples::Vector{<:AbstractArray};
7272
kwargs...,
7373
)
7474
F_and_y_samples = [
75-
fenchel_young_F_and_first_part_of_grad(perturbed, θ, η; kwargs...) for
76-
η in η_samples
75+
fenchel_young_F_and_first_part_of_grad(perturbed, θ, Z; kwargs...) for
76+
Z in Z_samples
7777
]
7878
return F_and_y_samples
7979
end
8080

8181
function compute_F_and_y_samples(
8282
perturbed::AbstractPerturbed{true},
8383
θ::AbstractArray,
84-
η_samples::Vector{<:AbstractArray};
84+
Z_samples::Vector{<:AbstractArray};
8585
kwargs...,
8686
)
8787
return ThreadsX.map(
88-
η -> fenchel_young_F_and_first_part_of_grad(perturbed, θ, η; kwargs...), η_samples
88+
Z -> fenchel_young_F_and_first_part_of_grad(perturbed, θ, Z; kwargs...), Z_samples
8989
)
9090
end
9191

0 commit comments

Comments
 (0)