Rank Graduation Accuracy

RGA measures how well model scores rank observations with respect to the target.

Main functions

safeai.rga.rga_score(y_true, y_score, *[, ...])

Compute Rank Graduation Accuracy.

safeai.rga.rga_curve(y_true, y_score, *[, ...])

Compute an RGA curve and normalized AURGA.

safeai.rga.aurga_score(y_true, y_score, *[, ...])

Compute only the area under the RGA curve.

safeai.rga.compare_rga(models, y_true, *[, ...])

Compare multiple models or probability arrays using RGA curves.

safeai.rga.plot_rga(result, *[, model_name, ...])

Plot one RGA curve or several RGA curves.