我最近发现了 plotly 并发现它非常适合绘图,现在我有一个问题,我想将多个 plot 保存到一个 html 中,请问怎么做?
*我想保存多个情节,即无花果,无花果1,无花果2等等,而不是一个有多个情节的子情节,因为我发现子情节中的情节太小了。
我无法在 Azure Data Studio Notebook 中运行 shap.initjs()。放弃在 Azure 社区论坛或其他地方查找问题。
shap.initjs()
test_sample = test_x.iloc[:2000,:]
shap_values_sample = explainer.shap_values(test_sample)
shap.force_plot(explainer.expected_value[1], shap_values_sample[1], test_sample, link="logit")
Run Code Online (Sandbox Code Playgroud)