Skip to content

Commit

Permalink
fixup! refactor: Quadrature Training with Integrals.jl@v4
Browse files Browse the repository at this point in the history
  • Loading branch information
sathvikbhagavan committed Jan 19, 2024
1 parent 8c0e659 commit 9b916bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/training_strategies.jl
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ function get_loss_function(loss_function, lb, ub, eltypeθ, strategy::Quadrature
# mean(abs2,loss_(x,θ), dims=2)
# size_x = fill(size(x)[2],(1,1))
x = adapt(parameterless_type(ComponentArrays.getdata(θ)), x)
vec(sum(abs2, loss_(x, θ), dims = 2)) #./ size_x
sum(abs2, view(loss_(x, θ), 1, :), dims = 2) #./ size_x
end
integral_function = BatchIntegralFunction(integrand, max_batch = strategy.batch)
prob = IntegralProblem(integral_function, lb, ub, θ)
Expand Down

0 comments on commit 9b916bc

Please sign in to comment.