文件名称:fair-xg
文件大小:6.92MB
文件格式:ZIP
更新时间:2024-04-19 13:57:07
JupyterNotebook
公平xg from fairness . fairness import FairnessEvaluator fe = FairnessEvaluator ( df = df , target = 'target' , pred = 'shot_statsbomb_xg' ) fe . fit ( sensitives = [ 'gender' ], metric_names = [ 'tpr' , 'tnr' ], thresholds = [ 0.2 , 0.5 , 0.8 ], alpha = 0.05 )