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

ebm_j partial feedback: if first trial is NA, predictions are not correct #63

Closed FlorianSeitz closed 4 years ago

FlorianSeitz commented 4 years ago

https://github.com/JanaJarecki/cognitivemodels/blob/dd3ab9757f1c25a5373f8acd29fe5a841165d6a6/tests/testthat/test_ebmj.R#L228

JanaJarecki commented 4 years ago

test rcpp function with init arg, the reason is the Na to 0 conversion