added a trainer for an mlp on the eigenvalue problem