Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mxPenaltySearch on a multigroup model throws "tinyformat: Too many conversion specifiers in format string" #399

Open
trbrick opened this issue Nov 15, 2024 · 0 comments
Assignees

Comments

@trbrick
Copy link
Contributor

trbrick commented Nov 15, 2024

Using mxPenaltySearch() on a multigroup model throws a confusing error.

Overly complex reprex follows:
library(OpenMx) jointModel <- mxModel("parent", mxModel("child", type="RAM", manifestVars="X", mxData(data.frame(X=c(1,2,1,2)), "raw"), mxPath("X", arrows=2, values=1, label="B", free=TRUE) ), mxFitFunctionMultigroup("child"), mxMatrix("Full",1,1,values=1, free=T, name="l", labels=c("lambda")), mxPenaltyLASSO("B", "lasso", hyperparams="lambda")) mxPenaltySearch(jointModel)

The problem is the error on lines 2196 and 2197 of Compute.cpp, where mxThrow needs two arguments but only has one. That should be fixed so that it doesn't throw an error, and just only uses the top-level fit function.

@trbrick trbrick self-assigned this Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant