Added dataset.clamp to HMM training