def get_probs_for_player(self, player_id):
    try:
        index = list(self.player_ids).index(player_id)
    except ValueError:
        raise RuntimeError(f'Unknown player_id {player_id}')
    prob_score = float(self.samples['probs'][:, index, 0].mean())
    prob_assist = float(self.samples['probs'][:, index, 1].mean())
    prob_neither = float(self.samples['probs'][:, index, 2].mean())
    return (prob_score, prob_assist, prob_neither)
def get_probs_for_player(self, player_id):
    try:
        index = list(self.player_ids).index(player_id)
    except ValueError:
        raise RuntimeError(f'Unknown player_id {player_id}')
    prob_score = float(self.samples['probs'][:, index, 0].mean())
    prob_assist = float(self.samples['probs'][:, index, 1].mean())
    prob_neither = float(self.samples['probs'][:, index, 2].mean())
    return (prob_score, prob_assist, prob_neither)