ODE parameter estimation using neural nets

Objective functions need to output a scalar cost value. sol_.u .- sol.u is a Vector{Float64} for the loss of each value at each time point. Did you instead mean sum(abs2,Array(sol_) .- Array(sol))?