cross validation for mlp4