有没有办法可视化 Spark mllib 随机森林模型?

is there a way to visualize Spark mllib Random Forest Model?

我似乎找不到一种方法来可视化我的 RF 模型,该模型是使用 Spark 的 MLLib RandomForestModel 获得的。打印为字符串的模型只是一堆嵌套的 IF 语句。想要在 R 中进行可视化似乎很自然。我正在使用 Spark Python API 和 Java API.. 开放使用任何会产生我的 RF 模型类似 R 可视化的东西。

来自 Databricks(2015 年 10 月): "The plots listed above as Scala-only will soon be available in Python notebooks as well. There are also other machine learning model visualizations on the way. Stay tuned for Decision Tree and Machine Learning Pipeline visualizations!"

有一个图书馆可以帮助解决这个问题,EurekaTrees。基本上它只需要调试字符串构建一棵树,然后使用 d3.js

将其显示为网页