smoothing, diffs, training and testing of SNB