running SPN training and testing on small data set