new function: visualizeLearner, not done, not exported