fixed learn/predict invocation of reduction