Function Classification with Neural Networks