Calculates general statistics of SR trees for model selection.
stack install
srtree-stats -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 test/feynman_III_17_37.tsv
). It also simplifies the expressions using equality saturation prior to optimizing.
srtree-opt -f hl -i test/feynman-III-17-37_expressions_heuristiclab.txt -d test/feynman_III_17_37_train.csv -r 50 --test test/feynman_III_17_37.tsv -c 0,1,2 --niter 10 --hasheader --simplify
By default the fitted expressions will be printed in stdout but you can specify the output files with the -o
flag.