Non-zero return value of a callback function is used as a return value of lbfgs()
Opened this issue · 0 comments
msakai commented
I noticed that when a callback function returns non-zero value, the value is used as a return value of lbfgs()
.
Lines 495 to 500 in 5ad02fb
But this behavior is not documented, e.g. at
Lines 403 to 404 in 5ad02fb
or
Lines 461 to 465 in 5ad02fb
The current situation is not desirable as a user might write a callback function that returns a value that is not intended to be used as the return value of lbfgs()
.
I think it's better to either: