Skip to content

Commit 7cb2d8e

Browse files
authored
Update Main_min_example.jl
1 parent 6b11fb2 commit 7cb2d8e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

test/Main_min_example.jl

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
include("../src/JGep.jl")
12

2-
using JGep
3+
using .JGep
34
using DynamicExpressions
45
using OrderedCollections
56
using BenchmarkTools
@@ -39,8 +40,8 @@ gep_params = Dict{String, AbstractFloat}(
3940
"dominant_fusion_rate" => 0.2,
4041
"rezessiv_fusion_prob" => 0.1,
4142
"rezessiv_fusion_rate" => 0.2,
42-
"fusion_prob" => 0.1,
43-
"fusion_rate" => 0.2,
43+
"fusion_prob" => 0.0,
44+
"fusion_rate" => 0.0,
4445
"inversion_prob" => 0.1
4546
)
4647

@@ -53,4 +54,4 @@ y_data = @. x_data[1,:] * x_data[1,:] + x_data[1,:] * x_data[2,:] - 2 * x_data[2
5354
best=runGep(1000, 1000,4,10,utilized_syms,operators, callbacks, nodes, x_data,y_data, connection_syms, gep_params;
5455
loss_fun_str="mse", opt_method_const=:cg, hof=1)
5556
@show string(best[1].fitness)
56-
#@show string(best[1].compiled_function)
57+
@show string(best[1].compiled_function)

0 commit comments

Comments
 (0)