You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using BFGS as optimization method, the R wrapper crashes with cause 'memory not mapped'
MWE
data("unit_square", package="fdaPDE2")
unit_square<- Mesh(unit_square)
df<-## some data...model<- SRPDE(y~f, domain=unit_square, data=df)
## fit with BFGS optimizationmodel$fit(lambda= gcv(
optimizer="bfgs",
lambda=1e-4,
step=1e-6
))
The problem is releated to the R wrapper, as performing a BFGS optimization of the GCV from the C++ layer does not cause any segfault.
You can reproduce the test gcv_srpde_newton_test, laplacian_nonparametric_samplingatnodes_newton_fd_exact with BFGS in place of Netwon, and obtain the correct result using a wolfe line search approach for the adaptive step.
When using BFGS as optimization method, the R wrapper crashes with
cause 'memory not mapped'
MWE
The problem is releated to the
R
wrapper, as performing aBFGS
optimization of the GCV from the C++ layer does not cause any segfault.You can reproduce the test
gcv_srpde_newton_test, laplacian_nonparametric_samplingatnodes_newton_fd_exact
withBFGS
in place ofNetwon
, and obtain the correct result using a wolfe line search approach for the adaptive step.The text was updated successfully, but these errors were encountered: