docs: public int[] bestSequence(SequenceModel ts) {
      
      int[] sample = new int[ts.length()+ts.leftWindow()];
  
      for (int pos = ts.leftWindow(); pos < sample.length; pos++) {
        double[] scores = ts.scoresOf(sample, pos);
        double total = 0.0;
        for (int i = 0; i < scores.length; i++) {
          scores[i] = Math.exp(scores[i]);
        }
        ArrayMath.normalize(scores);
        int l = ArrayMath.sampleFromDistribution(scores);
        sample[pos] = ts.getPossibleValues(pos)[l];
      }
  
      return sample;
    }