Skip to content

Commit 7d2cc02

Browse files
committed
Update
1 parent 1ef3b37 commit 7d2cc02

File tree

2 files changed

+114
-88
lines changed

2 files changed

+114
-88
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Then the first iteration starts:
1313
```discard_previous_expr``` will discard previous expressions at each level of iteration, avoiding combinatory explosion. To avoid too this explosion, ```maxloss```, ```maxexpr```, ```group_expr_size``` and ```maxtask``` are provided. Use ```process_sym_expr``` to process only target expressions.
1414
We can define the depth of operators with ```operator_depth``` and the maximal complexity of searched expressions with ```maxcomplexity```.
1515
We can apply some weights to operators for depth with ```op_weights```.
16-
At each combination, we compute an optimal expression. If ```discrete_param_values``` is empty, we search optimal parameters with ```scipy.fit_curve``` (```maxfev``` is used), else we use brute force algorithm if possible (```brute_force_limit``` is used), else a smallest brute force problem, else a curve fit algorithm. ```discrete_param_values``` accept integer or float values for each parameter, str to define integer ranges like "(3, 5)" for ```range(3, 5)```, or "(3, 6, 2)" for ```range(3, 6, 2)```, or real ranges like "[3, 5, 1]" for ```np.linspace(3, 5, 1)```.
16+
At each combination, we compute an optimal expression. If ```discrete_param_values``` is empty, we search optimal parameters with ```scipy.fit_curve``` (```maxfev``` is used), else we use brute force algorithm if possible (```brute_force_limit``` is used), else a smallest brute force problem, else a curve fit algorithm followed by genetic algorithm with ```deap```. ```discrete_param_values``` accept integer or float values for each parameter, str to define integer ranges like "(3, 5)" for ```range(3, 5)```, or "(3, 6, 2)" for ```range(3, 6, 2)```, or real ranges like "[3, 5, 1]" for ```np.linspace(3, 5, 1)```.
1717
We process like that until the computed loss is less than ```epsloss```.
1818
```eps``` is used to round numeric values and compare with other expressions for example.
1919
We can subsitute some target expressions with ```subs_expr```. We can also avoid some expressions with ```avoided_expr```.

0 commit comments

Comments
 (0)