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

summary(M) #53

Open FlorianSeitz opened 4 years ago

FlorianSeitz commented 4 years ago

Hey Jana

When creating a model (I tried it with the cpt), that has no free parameter at all:

https://github.com/JanaJarecki/cognitivemodels/blob/ad0c0eb29fde15ce18a912000dcd037fdc2c0b59/tests/testthat/test_cpt.R#L14

the function summary(M) does not show me the parameters (it only says: no free parameters). However, when I create a model with free parameters (e.g., change choicerule to softmax), calling summary(M) shows me the complete list of constrained and free parameters (which is really, really nice!). Maybe we could do the same for the case we have no free parameters? Because it's really helpful and well done :)