Add functionality for taking weighting average using get_score_window with teacher input in matlab