|
325 | 325 | columns=feature_names
|
326 | 326 | )
|
327 | 327 | plt.figure(figsize=(9, 7))
|
328 |
| -sns.swarmplot(data=coefs, orient='h', color='k', alpha=0.5) |
| 328 | +sns.stripplot(data=coefs, orient='h', color='k', alpha=0.5) |
329 | 329 | sns.boxplot(data=coefs, orient='h', color='cyan', saturation=0.5)
|
330 | 330 | plt.axvline(x=0, color='.5')
|
331 | 331 | plt.xlabel('Coefficient importance')
|
|
376 | 376 | columns=feature_names[:-1]
|
377 | 377 | )
|
378 | 378 | plt.figure(figsize=(9, 7))
|
379 |
| -sns.swarmplot(data=coefs, orient='h', color='k', alpha=0.5) |
| 379 | +sns.stripplot(data=coefs, orient='h', color='k', alpha=0.5) |
380 | 380 | sns.boxplot(data=coefs, orient='h', color='cyan', saturation=0.5)
|
381 | 381 | plt.axvline(x=0, color='.5')
|
382 | 382 | plt.title('Coefficient importance and its variability')
|
|
469 | 469 | columns=feature_names
|
470 | 470 | )
|
471 | 471 | plt.figure(figsize=(9, 7))
|
472 |
| -sns.swarmplot(data=coefs, orient='h', color='k', alpha=0.5) |
| 472 | +sns.stripplot(data=coefs, orient='h', color='k', alpha=0.5) |
473 | 473 | sns.boxplot(data=coefs, orient='h', color='cyan', saturation=0.5)
|
474 | 474 | plt.axvline(x=0, color='.5')
|
475 | 475 | plt.title('Coefficient variability')
|
|
0 commit comments