# Help on Lotka Voltera model Parameter Estimation

**URL:** <https://discourse.julialang.org/t/help-on-lotka-voltera-model-parameter-estimation/90860>\
**Category:** New to Julia\
**Created:** [November 26, 2022, 5:43pm UTC](https://discourse.julialang.org/t/help-on-lotka-voltera-model-parameter-estimation/90860 "2022-11-26T17:43:10Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Post date:** [December 3, 2022, 1:12am UTC](https://discourse.julialang.org/t/help-on-lotka-voltera-model-parameter-estimation/90860/6 "2022-12-03T01:12:05Z")

</div>

It looks like you posted it in the wrong thread, which is why no one here saw that there was a response and thus we couldn’t help you. Let me copy it over to here:

> Hello ChrisRackauckas,  
> Thank you very much for coming to my rescue:  
> This is exactly where my problems start:

```julia
cb()
Flux.train!(loss_rd, [p], data, opt, cb = cb)

```

> whenever I run the callback function, I get the following errors:::

```julia
MethodError: no method matching init(::Vector{Float64}, ::ODEProblem{Vector{Float64}, Tuple{Float64, Float64}, true, Vector{Float64}, ODEFunction{true, SciMLBase.AutoSpecialize, typeof(lotka_volterra), LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing}, Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}, SciMLBase.StandardODEProblem}, ::Tsit5{typeof(OrdinaryDiffEq.trivial_limiter!), typeof(OrdinaryDiffEq.trivial_limiter!), Static.False}; saveat=0.1)
Closest candidates are:
init(!Matched::OptimizationProblem, ::Any, ::Any…; kwargs…) at ~/.julia/packages/SciMLBase/wEAy7/src/solve.jl:144
init(!Matched::SciMLBase.AbstractJumpProblem, ::Any…; kwargs…) at ~/.julia/packages/DiffEqBase/g4OeQ/src/solve.jl:406
init(!Matched::SciMLBase.AbstractDEProblem, ::Any…; sensealg, u0, p, kwargs…) at ~/.julia/packages/DiffEqBase/g4OeQ/src/solve.jl:394
…
solve(::Vector{Float64}, ::Vararg{Any}; kwargs::Base.Pairs{Symbol, Float64, Tuple{Symbol}, NamedTuple{(:saveat,), Tuple{Float64}}}) at CommonSolve.jl:23
(::CommonSolve.var”#solve##kw")(::NamedTuple{(:saveat,), Tuple{Float64}}, ::typeof(solve), ::Vector{Float64}, ::ODEProblem{Vector{Float64}, Tuple{Float64, Float64}, true, Vector{Float64}, ODEFunction{true, SciMLBase.AutoSpecialize, typeof(lotka_volterra), LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing}, Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}, SciMLBase.StandardODEProblem}, ::Tsit5{typeof(OrdinaryDiffEq.trivial_limiter!), typeof(OrdinaryDiffEq.trivial_limiter!), Static.False}) at CommonSolve.jl:23
predict_rd() at Tst.jl:30
loss_rd() at Tst.jl:32
(::var"#32#33")() at Tst.jl:40
top-level scope at Tst.jl:45
eval at boot.jl:368 [inlined]

```

> And I also use julia\> v"1.8.1".  
> Thank you.

---

_[View the full topic](https://discourse.julialang.org/t/help-on-lotka-voltera-model-parameter-estimation/90860)._
