@@ -192,8 +192,8 @@ def dual_density_plot(
192192 * ,
193193 truth_target = True ,
194194 positive_label = "positive examples" ,
195- negative_lable = "negative examples" ,
196- ylable = "density of examples" ,
195+ negative_label = "negative examples" ,
196+ ylabel = "density of examples" ,
197197 xlabel = "model score"
198198):
199199 """
@@ -204,8 +204,8 @@ def dual_density_plot(
204204 :param title: tiotle of plot
205205 :param truth_target: value considerd true
206206 :param positive_label=label for positive class
207- :param negative_lable =label for negative class
208- :param ylable =y axis label
207+ :param negative_label =label for negative class
208+ :param ylabel =y axis label
209209 :param xlabel=x axis label
210210 :return: None, plot produced by function call.
211211
@@ -234,8 +234,8 @@ def dual_density_plot(
234234 probs [i ] for i in range (len (probs )) if not istrue [i ] == truth_target
235235 ]
236236 seaborn .kdeplot (preds_on_positive , label = positive_label , shade = True )
237- seaborn .kdeplot (preds_on_negative , label = negative_lable , shade = True )
238- matplotlib .pyplot .ylabel (ylable )
237+ seaborn .kdeplot (preds_on_negative , label = negative_label , shade = True )
238+ matplotlib .pyplot .ylabel (ylabel )
239239 matplotlib .pyplot .xlabel (xlabel )
240240 matplotlib .pyplot .title (title )
241241 matplotlib .pyplot .show ()
@@ -261,8 +261,8 @@ def dual_density_plot_proba1(
261261 * ,
262262 truth_target = True ,
263263 positive_label = "positive examples" ,
264- negative_lable = "negative examples" ,
265- ylable = "density of examples" ,
264+ negative_label = "negative examples" ,
265+ ylabel = "density of examples" ,
266266 xlabel = "model score"
267267):
268268 """
@@ -273,8 +273,8 @@ def dual_density_plot_proba1(
273273 :param title: title of plot
274274 :param truth_target: value considered true
275275 :param positive_label=label for positive class
276- :param negative_lable =label for negative class
277- :param ylable =y axis label
276+ :param negative_label =label for negative class
277+ :param ylabel =y axis label
278278 :param xlabel=x axis label
279279 :return: None, plot produced by call.
280280 """
@@ -287,8 +287,8 @@ def dual_density_plot_proba1(
287287 probs [i , 1 ] for i in range (len (probs )) if not istrue [i ] == truth_target
288288 ]
289289 seaborn .kdeplot (preds_on_positive , label = positive_label , shade = True )
290- seaborn .kdeplot (preds_on_negative , label = negative_lable , shade = True )
291- matplotlib .pyplot .ylabel (ylable )
290+ seaborn .kdeplot (preds_on_negative , label = negative_label , shade = True )
291+ matplotlib .pyplot .ylabel (ylabel )
292292 matplotlib .pyplot .xlabel (xlabel )
293293 matplotlib .pyplot .title (title )
294294 matplotlib .pyplot .show ()
0 commit comments