Generalization testing

Added the possibility to exclude trials from the training set, and to
test the generalization of learning on this set afterwards.