Rewrite learner performance

what if it's undefined?