Skip to content

Commit

Permalink
update optimizers type
Browse files Browse the repository at this point in the history
  • Loading branch information
prbzrg committed Mar 28, 2024
1 parent 6222b0c commit f509c2c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ model = ICNFModel(
icnf;
batch_size = 256, # have bigger batchs
# n_epochs = 100, # have less epochs
# optimizers = [Lion()], # use a different optimizer
# optimizers = (Lion(),), # use a different optimizer
# adtype = AutoForwardDiff(), # use ForwardDiff
)
mach = machine(model, df)
Expand Down
4 changes: 2 additions & 2 deletions src/cores/core_cond_icnf.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ mutable struct CondICNFModel <: MLJICNF
m::AbstractICNF
loss::Function

optimizers::AbstractVector
optimizers::Tuple
n_epochs::Int
adtype::ADTypes.AbstractADType

Expand All @@ -19,7 +19,7 @@ end
function CondICNFModel(
m::AbstractICNF{<:AbstractFloat, CM},
loss::Function = loss;
optimizers::AbstractVector = Any[PolyOpt(),],
optimizers::Tuple = (PolyOpt(),),
n_epochs::Int = 300,
adtype::ADTypes.AbstractADType = AutoZygote(),
use_batch::Bool = true,
Expand Down
4 changes: 2 additions & 2 deletions src/cores/core_icnf.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ mutable struct ICNFModel <: MLJICNF
m::AbstractICNF
loss::Function

optimizers::AbstractVector
optimizers::Tuple
n_epochs::Int
adtype::ADTypes.AbstractADType

Expand All @@ -19,7 +19,7 @@ end
function ICNFModel(
m::AbstractICNF{<:AbstractFloat, CM},
loss::Function = loss;
optimizers::AbstractVector = Any[PolyOpt(),],
optimizers::Tuple = (PolyOpt(),),
n_epochs::Int = 300,
adtype::ADTypes.AbstractADType = AutoZygote(),
use_batch::Bool = true,
Expand Down

0 comments on commit f509c2c

Please sign in to comment.