Skip to content

Commit f7ba788

Browse files
committed
Error in subtitle of Gain Curve plot - fixed to accurately report Gini Score
1 parent 9b69bfc commit f7ba788

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/GainCurve.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ GainCurvePlot = function(frame, xvar, truthVar, title,
252252
xvar),
253253
subtitle=paste0(
254254
'Gini score: ',
255-
format(idealArea, digits = 2),
255+
format(modelArea, digits = 2),
256256
', relative Gini score: ',
257257
format(relGiniScore, digits = 2),
258258
pString
@@ -483,7 +483,7 @@ GainCurvePlotC = function(frame, xvar, costVar, truthVar, title,
483483
xvar),
484484
subtitle=paste0(
485485
'Gini score: ',
486-
format(idealArea, digits = 2),
486+
format(modelArea, digits = 2),
487487
', relative Gini score: ',
488488
format(relGiniScore, digits = 2),
489489
pString

0 commit comments

Comments
 (0)