Optimize SR expressions using Levenberg-Marquardt.
stack install
srtree-opt -h
Parse the Heuristic Lab expressions in test/feynman-III-17-37_expressions_heuristiclab.txt
file using the training data in test/feynman_III_17_37_train.csv
(with variable names in the header) taking the first
srtree-opt -f hl -i test/feynman-III-17-37_expressions_heuristiclab.txt -d test/feynman_III_17_37_train.csv -r 50 -c 0,1,2 --niter 10 --hasheader --simplify
Same as above but using column
srtree-opt -f hl -i test/feynman-III-17-37_expressions_heuristiclab.txt -d test/feynman_III_17_37_train.csv -r 50 -c 0,1,2 -t 4 --niter 10 --hasheader --simplify
By default the fitted expressions will be printed in stdout and the stats (sse of training and validation prior to optimization and after optimization) will be printed to stderr. You can specify the output files with the -o, -s
flags.