Update learning examples

For #311
This also fixes a bug when using Select, Apply and ParameterCollection