Lending direction to neural networks