Functional data learning using convolutional neural networks