Cognitivemodels is an open-source R library to create, fit, test, and compare computational cognitive models based on machine-learning principles.
25
stars
4
forks
source link
ebm_j: error in utils_constraints #49
Closed
FlorianSeitz closed 4 years ago
Error in apply(A[, 1:m], 1, function(x) max(abs(x)) <= tol) : dim(X) must have a positive length
dt <- data.frame( f1 = c(1, 1, 2, 2), f2 = c(1, 2, 1, 2), rp = c(12, 14, 14, 16), c = c(10, 20, 5, 15), c2 = c(1, 1, 2, 2)) M <- ebm_j(rp ~ f1 + f2, ~c, data = dt, fix = NULL, choicerule = "none", options = list(fit = FALSE))