cross_validation modified for ANN