We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3c13c7 commit 496b575Copy full SHA for 496b575
lib/DataDrivenLux/src/algorithms/reinforce.jl
@@ -16,10 +16,12 @@ function Reinforce(reward = RelativeReward(false); populationsize = 100,
16
distributed = false, threaded = false, rng = Random.default_rng(),
17
optimizer = LBFGS(), optim_options = Optim.Options(), observed = nothing,
18
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))
+ return Reinforce(reward,
+ ad_backend,
+ CommonAlgOptions(;
+ populationsize, functions, arities, n_layers, skip, simplex = Softmax(), loss,
23
+ keep, use_protected, distributed, threaded, rng, optimizer,
24
+ optim_options, optimiser, observed, alpha))
25
end
26
27
Base.print(io::IO, ::Reinforce) = print(io, "Reinforce")
lib/DataDrivenLux/test/runtests.jl
@@ -7,7 +7,7 @@ using Test
7
8
const GROUP = get(ENV, "GROUP", "All")
9
10
-@time begin
+@testset "DataDrivenLux" begin
11
if GROUP == "All" || GROUP == "DataDrivenLux"
12
@testset "Lux" begin
13
@safetestset "Nodes" include("nodes.jl")
@@ -16,7 +16,7 @@ const GROUP = get(ENV, "GROUP", "All")
@testset "Caches" begin
- @safetestset "Candidate" include("candidate.jl") # FIXME
+ @safetestset "Candidate" include("candidate.jl")
@safetestset "Cache" include("cache.jl")
0 commit comments