Skip to content

Commit

Permalink
Added a change of depth for one of the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ancorso committed Oct 21, 2020
1 parent fa23247 commit a86b330
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/optimization_tests.jl
Expand Up @@ -57,9 +57,9 @@ g = create_stl_grammar(length(mvts), comparison_distribution, comparisons)
set_global_grammar_params(N, comparison_distribution, comparisons, rng)
ev(t::Dict{Symbol, Array}) = sum(sum.(values(t)))
ev(rand(mvts))
rn = rand(RuleNode, g, :R, 3)
rn = rand(RuleNode, g, :R, 30)
loss = loss_fn(ev, mvts)
@test loss(rn, g) > 0
@test loss(rn, g) isa Real

results = optimize_timed_stl((x) -> rand(), mvts, Npop=10, Niter=3, verbose = false)
@test results.loss > 0
Expand Down

0 comments on commit a86b330

Please sign in to comment.