def analyze_model_goalprob(): dom_shot = [1 if s == 1 else 0 for s in is_shot] print_scores(get_scores(dom_shot,goalprobdom)) plot_roc_curve(dom_shot,shotprobdom) other_shot = [1 if s==-1 else 0 for s in is_shot] print_scores(get_scores(other_shot,goalprobother)) plot_roc_curve(other_shot,shotprobother)
def analyze_model_shotprob(): dom_shot = [1 if s == 1 else 0 for s in is_shot] print_scores(get_scores(dom_shot,shotprobdom)) plot_roc_curve(dom_shot,shotprobdom) other_shot = [1 if s==-1 else 0 for s in is_shot] print_scores(get_scores(other_shot,shotprobother)) plot_roc_curve(other_shot,shotprobother) shots = [1 if s != 0 else 0 for s in is_shot] probs = [a+b for a,b in zip(shotprobdom,shotprobother)] print_scores(get_scores(shots,probs))