removing all-zero entries from training. fixed non-separatable error when training