Skip to content

Commit

Permalink
ufffffffffffffffffffff
Browse files Browse the repository at this point in the history
  • Loading branch information
pasq-cat committed Oct 30, 2024
1 parent 6a5f26f commit 12f2584
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/direct_mlj.jl
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ function default_build(seed::Int, shape)
chain = Chain(
Dense(n_input, 20, relu),
Dense(20, 20, relu),
#Dense(20, 20, relu),
Dense(20, 20, relu),
Dense(20, n_output)
)

Expand Down Expand Up @@ -140,7 +140,7 @@ function MMI.fit(m::LaplaceModels, verbosity, X, y)
y, decode = y

if (m.model === nothing)
@warn "Warning: no Flux model has been provided in the model. LaplaceRedux will use a standard MLP with 3 hidden layers with 20 neurons each and input and output layers compatible with the dataset."
@warn "Warning: no Flux model has been provided in the model. LaplaceRedux will use a standard MLP with 2 hidden layers with 20 neurons each and input and output layers compatible with the dataset."
shape = dataset_shape(m, X, y)

m.model = default_build(11, shape)
Expand Down Expand Up @@ -605,7 +605,7 @@ Train the machine using `fit!(mach, rows=...)`.
# Hyperparameters (format: name-type-default value-restrictions)
- `model::Union{Flux.Chain,Nothing} = nothing`: Either nothing or a Flux model provided by the user and compatible with the dataset. In the former case, LaplaceRedux will use a standard MLP with 3 hidden layer with 20 neurons each.
- `model::Union{Flux.Chain,Nothing} = nothing`: Either nothing or a Flux model provided by the user and compatible with the dataset. In the former case, LaplaceRedux will use a standard MLP with 2 hidden layer with 20 neurons each.
- `flux_loss = Flux.Losses.logitcrossentropy` : a Flux loss function
Expand Down Expand Up @@ -743,7 +743,7 @@ Train the machine using `fit!(mach, rows=...)`.
# Hyperparameters (format: name-type-default value-restrictions)
- `model::Union{Flux.Chain,Nothing} = nothing`: Either nothing or a Flux model provided by the user and compatible with the dataset. In the former case, LaplaceRedux will use a standard MLP with 3 hidden layer with 20 neurons each.
- `model::Union{Flux.Chain,Nothing} = nothing`: Either nothing or a Flux model provided by the user and compatible with the dataset. In the former case, LaplaceRedux will use a standard MLP with 2 hidden layer with 20 neurons each.
- `flux_loss = Flux.Losses.logitcrossentropy` : a Flux loss function
- `optimiser = Adam()` a Flux optimiser
Expand Down

0 comments on commit 12f2584

Please sign in to comment.