Exemple #1
0
def test_random_summary():
    """ Just make sure the summary_plot function doesn't crash.
    """

    shap_domino.summary_plot(np.random.randn(20, 5), show=False)
Exemple #2
0
def test_random_summary_with_log_scale():
    shap_domino.summary_plot(np.random.randn(20, 5), use_log_scale=True, show=False)
Exemple #3
0
def test_random_summary_violin_with_data():
    shap_domino.summary_plot(np.random.randn(20, 5), np.random.randn(20, 5), plot_type="violin", show=False)
Exemple #4
0
def test_random_summary_layered_violin_with_data():
    with warnings.catch_warnings():
        warnings.simplefilter("ignore")
        shap_domino.summary_plot(np.random.randn(20, 5), np.random.randn(20, 5), plot_type="layered_violin", show=False)
Exemple #5
0
def test_random_multi_class_summary():
    shap_domino.summary_plot([np.random.randn(20, 5) for i in range(3)], np.random.randn(20, 5), show=False)