Skip to content

Commit 496b575

Browse files
committed
chore: run formatter
1 parent e3c13c7 commit 496b575

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

lib/DataDrivenLux/src/algorithms/reinforce.jl

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@ function Reinforce(reward = RelativeReward(false); populationsize = 100,
1616
distributed = false, threaded = false, rng = Random.default_rng(),
1717
optimizer = LBFGS(), optim_options = Optim.Options(), observed = nothing,
1818
alpha = 0.999f0, optimiser = Adam(), ad_backend = AD.ForwardDiffBackend())
19-
return Reinforce(reward, ad_backend, CommonAlgOptions(;
20-
populationsize, functions, arities, n_layers, skip, simplex = Softmax(), loss,
21-
keep, use_protected, distributed, threaded, rng, optimizer,
22-
optim_options, optimiser, observed, alpha))
19+
return Reinforce(reward,
20+
ad_backend,
21+
CommonAlgOptions(;
22+
populationsize, functions, arities, n_layers, skip, simplex = Softmax(), loss,
23+
keep, use_protected, distributed, threaded, rng, optimizer,
24+
optim_options, optimiser, observed, alpha))
2325
end
2426

2527
Base.print(io::IO, ::Reinforce) = print(io, "Reinforce")

lib/DataDrivenLux/test/runtests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ using Test
77

88
const GROUP = get(ENV, "GROUP", "All")
99

10-
@time begin
10+
@testset "DataDrivenLux" begin
1111
if GROUP == "All" || GROUP == "DataDrivenLux"
1212
@testset "Lux" begin
1313
@safetestset "Nodes" include("nodes.jl")
@@ -16,7 +16,7 @@ const GROUP = get(ENV, "GROUP", "All")
1616
end
1717

1818
@testset "Caches" begin
19-
@safetestset "Candidate" include("candidate.jl") # FIXME
19+
@safetestset "Candidate" include("candidate.jl")
2020
@safetestset "Cache" include("cache.jl")
2121
end
2222

0 commit comments

Comments
 (0)