JanaJarecki / cognitivemodels

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

Constraints not working for alpha = "beta" #48

Closed JanaJarecki closed 4 years ago

FlorianSeitz commented 4 years ago

Hi @JanaJarecki , I was trying to fit the parameters in cpt, but I was still not able to implement the constraint alpha = "beta". Did you solve this issue and I missed somehow to update/recompile the package or is the issue still on the todo list? :)

FlorianSeitz commented 4 years ago

I'm afraid I'll have to reopen this issue, as I still get an error when conducting line 93 of test_cpt.R

res <- cpttest[subject < 1, list(fit_soft = list(fit_cpt_soft(dt = .SD))), by = list(repetition, subject)]

Error in x[.rowid, ] : subscript out of bounds (line 118 in model-cpt.R)