changing hf code to allow smaller traingn size for svm than network