use a ItemSortedDict for the loss in the LearnerND