Subsequence Weighting