@@ -40,7 +40,7 @@ class ClassificationEvaluator():
4040 cumulative_gains : tuple
4141 Data for plotting cumulative gains curve.
4242 evaluation_metrics : dict
43- Map containing various scalar evaluation metrics (precision, recall, accuracy, AUC, F1, etc.)
43+ Map containing various scalar evaluation metrics (precision, recall, accuracy, AUC, F1, etc.).
4444 lift_at : float
4545 Parameter to determine at which top level percentage the lift of the
4646 model should be computed.
@@ -191,7 +191,7 @@ def plot_roc_curve(self, path: str=None, dim: tuple=(12, 8)):
191191 ax .set_xlabel ("False Positive Rate" , fontsize = 15 )
192192 ax .set_ylabel ("True Positive Rate" , fontsize = 15 )
193193 ax .legend (loc = "lower right" )
194- ax .set_title ("ROC Curve " , fontsize = 20 )
194+ ax .set_title ("ROC curve " , fontsize = 20 )
195195
196196 if path :
197197 plt .savefig (path , format = "png" , dpi = 300 , bbox_inches = "tight" )
@@ -274,7 +274,7 @@ def plot_cumulative_response_curve(self, path: str=None, dim: tuple=(12, 8)):
274274 ax .grid (False )
275275
276276 # Description
277- ax .set_title ("Cumulative response " , fontsize = 20 )
277+ ax .set_title ("Cumulative Response curve " , fontsize = 20 )
278278
279279 if path is not None :
280280 plt .savefig (path , format = "png" , dpi = 300 , bbox_inches = "tight" )
@@ -323,7 +323,7 @@ def plot_lift_curve(self, path: str=None, dim: tuple=(12, 8)):
323323 ax .grid (False )
324324
325325 # Description
326- ax .set_title ("Cumulative Lift" , fontsize = 20 )
326+ ax .set_title ("Cumulative Lift curve " , fontsize = 20 )
327327
328328 if path is not None :
329329 plt .savefig (path , format = "png" , dpi = 300 , bbox_inches = "tight" )
@@ -350,7 +350,7 @@ def plot_cumulative_gains(self, path: str=None, dim: tuple=(12, 8)):
350350 ax .plot (ax .get_xlim (), ax .get_ylim (), linewidth = 3 ,
351351 ls = "--" , color = "darkorange" , label = "random selection" )
352352
353- ax .set_title ("Cumulative Gains" , fontsize = 20 )
353+ ax .set_title ("Cumulative Gains curve " , fontsize = 20 )
354354
355355 # Format axes
356356 ax .set_xlim ([0 , 100 ])
@@ -681,7 +681,7 @@ def plot_predictions(self, path: str=None, dim: tuple=(12, 8)):
681681 ax .set_xlabel ("Index" , fontsize = 15 )
682682 ax .set_ylabel ("Value" , fontsize = 15 )
683683 ax .legend (loc = "best" )
684- ax .set_title ("Prediction Plot " , fontsize = 20 )
684+ ax .set_title ("Predictions vs. Actuals " , fontsize = 20 )
685685
686686 if path :
687687 plt .savefig (path , format = "png" , dpi = 300 , bbox_inches = "tight" )
@@ -722,7 +722,7 @@ def plot_qq(self, path: str=None, dim: tuple=(12, 8)):
722722 ax .set_yticks (range (int (np .floor (min (y ))), int (np .ceil (max (y [x < float ("inf" )])))+ 1 , 1 ))
723723
724724 ax .legend (loc = "best" )
725- ax .set_title ("Q-Q Plot " , fontsize = 20 )
725+ ax .set_title ("Q-Q plot " , fontsize = 20 )
726726
727727 if path :
728728 plt .savefig (path , format = "png" , dpi = 300 , bbox_inches = "tight" )
0 commit comments