Once you make the change above to the vector class, this will just be `ratingIndex = probabilities.largestDimension()`.