Skip to content

Commit 844241e

Browse files
author
Maximilian Reißmann
committed
adjusting for more optimal setup
1 parent cbd3240 commit 844241e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

paper/ConstraintViaSBP.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ function main()
8888
if case_name in keys(case_data)
8989
@show ("Current case: ", case_name)
9090
#gep_params
91-
epochs = 1000
92-
population_size = 1500
91+
epochs = 500
92+
population_size = 1000
9393

9494
results = DataFrame(Seed=[],
9595
Name=String[], NoiseLeve=String[], Fitness=Float64[], Equation=String[], R2_test=Float64[],
@@ -122,7 +122,7 @@ function main()
122122
regressor = GepRegressor(num_cols - 1;
123123
considered_dimensions=phy_dims, gene_count=3, head_len=6,
124124
entered_non_terminals=[:+, :-, :*, :/, :sqrt, :sin, :cos, :exp, :log],
125-
max_permutations_lib=10000, rounds=5, number_of_objectives=1)
125+
max_permutations_lib=20000, rounds=5, number_of_objectives=1)
126126

127127

128128
@inline function loss_new_(elem, validate::Bool)
@@ -140,7 +140,7 @@ function main()
140140

141141
#perform the regression by entering epochs, population_size, the feature cols, the target col and the loss function
142142
fit!(regressor, epochs, population_size, loss_new_; target_dimension=target_dim,
143-
break_condition=break_condition, correction_amount=0.5, cycles=30)
143+
break_condition=break_condition, correction_amount=0.7, cycles=30)
144144

145145
end_time = (time_ns() - start_time) / 1e9
146146
elem = regressor.best_models_[1]

0 commit comments

Comments
 (0)