Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change default sol_kwargs #284

Merged
merged 1 commit into from
Sep 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ ComponentArrays = "b0b7db55-cfe3-40fc-9ded-d10e2dbeff66"
ComputationalResources = "ed09eef8-17a6-5b46-8889-db040fac31e3"
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
DifferentialEquations = "0c46a032-eb83-5123-abaf-570d42b7fbaa"
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
DistributionsAD = "ced4e74d-a319-5a8a-b0ac-84af2272839c"
FillArrays = "1a297f60-69ca-5386-bcde-b61e274b549b"
Expand Down Expand Up @@ -53,7 +52,6 @@ ChainRulesCore = "1"
ComponentArrays = "0.14"
ComputationalResources = "0.3"
DataFrames = "1"
DifferentialEquations = "7"
Distributions = "0.25"
DistributionsAD = "0.6"
FillArrays = "1"
Expand Down
1 change: 0 additions & 1 deletion src/ContinuousNormalizingFlows.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ using AbstractDifferentiation,
ComputationalResources,
DataFrames,
Dates,
DifferentialEquations,
Distributions,
DistributionsAD,
FillArrays,
Expand Down
8 changes: 6 additions & 2 deletions src/base.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@ function construct(
autodiff_backend::ADTypes.AbstractADType = AutoZygote(),
sol_args::Tuple = (),
sol_kwargs::Dict = Dict(
:alg_hints => [:nonstiff, :memorybound],
:reltol => 1e-2 + eps(1e-2),
:alg_hints => [:nonstiff],
:alg => VCABM(),
:sensealg => InterpolatingAdjoint(; autodiff = true, autojacvec = ZygoteVJP()),
:reltol => sqrt(eps(one(Float32))),
:abstol => eps(one(Float32)),
:maxiters => typemax(Int32),
),
rng::AbstractRNG = Random.default_rng(),
)
Expand Down
8 changes: 6 additions & 2 deletions src/cond_rnode.jl
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,12 @@ function construct(
autodiff_backend::ADTypes.AbstractADType = AutoZygote(),
sol_args::Tuple = (),
sol_kwargs::Dict = Dict(
:alg_hints => [:nonstiff, :memorybound],
:reltol => 1e-2 + eps(1e-2),
:alg_hints => [:nonstiff],
:alg => VCABM(),
:sensealg => InterpolatingAdjoint(; autodiff = true, autojacvec = ZygoteVJP()),
:reltol => sqrt(eps(one(Float32))),
:abstol => eps(one(Float32)),
:maxiters => typemax(Int32),
),
rng::AbstractRNG = Random.default_rng(),
λ₁::AbstractFloat = convert(data_type, 1e-2),
Expand Down
8 changes: 6 additions & 2 deletions src/rnode.jl
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,12 @@ function construct(
autodiff_backend::ADTypes.AbstractADType = AutoZygote(),
sol_args::Tuple = (),
sol_kwargs::Dict = Dict(
:alg_hints => [:nonstiff, :memorybound],
:reltol => 1e-2 + eps(1e-2),
:alg_hints => [:nonstiff],
:alg => VCABM(),
:sensealg => InterpolatingAdjoint(; autodiff = true, autojacvec = ZygoteVJP()),
:reltol => sqrt(eps(one(Float32))),
:abstol => eps(one(Float32)),
:maxiters => typemax(Int32),
),
rng::AbstractRNG = Random.default_rng(),
λ₁::AbstractFloat = convert(data_type, 1e-2),
Expand Down
Loading