Ah, I believe this is answered the FAQs. This is not due to use of scan but rather use of switch. Reparametrizing my problem using sigmoid functions seems to work.
Ah, I believe this is answered the FAQs. This is not due to use of scan but rather use of switch. Reparametrizing my problem using sigmoid functions seems to work.