The detailed print of the argument tree contains a few nodes which exhibit a discrepancy between the default value (as printed) and the default logged in the output. This only affects tol_obj, tol_grad and tol_param.
Description:
The problem affects 2 methods: optimize and pathfinder. For optimize, both the LBFGS and BFGS algorithms are affected. Together, this forms 3 cases in which the same 3 double values are printed with insufficient precision by help-all.
Reproducible Steps:
Assuming that one has the Bernoulli example built:
# Produce the default values which are logged in the output
./bernoulli method=optimize algorithm=lbfgs data file=bernoulli.data.json output file=lbfgs.csv
./bernoulli method=optimize algorithm=bfgs data file=bernoulli.data.json output file=bfgs.csv
./bernoulli method=pathfinder data file=bernoulli.data.json output file=pathfinder.csv
for name in lbfgs bfgs pathfinder ; do
echo ================ ${name} ================
grep -E "tol_(obj|grad|param)" ${name}.csv
done
# Compare against defaults in detailed print -- `rg` is ripgrep (has multiline option)
./bernoulli help-all | rg -U "tol_(obj|grad|param)=<double>\n.*\n.*\n.*Defaults to"
Current Output:
For each case of the 3 cases, this produces the information in the table below.
variable
default value printed by help-all
true default logged by call with no arguments supplied
tol_obj
0.000000
9.9999999999999998e-13
tol_grad
0.000000
1e-08
tol_param
0.000000
1e-08
Expected Output:
help-all should print values with sufficient precision.
Summary:
The detailed print of the argument tree contains a few nodes which exhibit a discrepancy between the default value (as printed) and the default logged in the output. This only affects
tol_obj
,tol_grad
andtol_param
.Description:
The problem affects 2 methods:
optimize
andpathfinder
. Foroptimize
, both the LBFGS and BFGS algorithms are affected. Together, this forms 3 cases in which the same 3double
values are printed with insufficient precision byhelp-all
.Reproducible Steps:
Assuming that one has the Bernoulli example built:
Current Output:
For each case of the 3 cases, this produces the information in the table below.
help-all
tol_obj
0.000000
9.9999999999999998e-13
tol_grad
0.000000
1e-08
tol_param
0.000000
1e-08
Expected Output:
help-all
should print values with sufficient precision.Current Version:
v2.33.1