Learning code?

Sorry, but at the current stage, there are no functions for learning in Dynare. The manual should be corrected soon.

You would have to write a Matlab loop around resol() and updating the parameters (the learning) in Matlab in the loop.
Your best shot may be the code on aeaweb.org/articles.php?doi=10.1257/mac.4.2.65
You should also check whether it is contained in Volker Wieland’s macromodelbase, which has an adaptive learning team, see macromodelbase.com/editor