A Neural Network for Semi-Supervised Learning on Manifolds