Train a CNN model to classify digits based on a 1500 samples dataset.