生成和可视化决策树

时间:2022-06-27 02:40:59

I wonder if anyone is able to help or advise with the following; I have to be able to take data from a data source and to be able to visualise that data as a decision trees on a web page all. This will be a single process which is seamless to an end user.

我想知道是否有人能够提供以下帮助或建议;我必须能够从数据源获取数据,并能够将该数据可视化为网页上的决策树。这将是一个对最终用户无缝的单一过程。

This will be done using JSPs and Java servlets but what concerns me are the underlying products. I'm thinking of passing the data to a Weka classifier and then doing something with the .dot file it creates, i.e. maybe feeding it to GraphViz or trying to use the Google Visualization API to present an interactive display.

这将使用JSP和Java servlet完成,但我关注的是底层产品。我正在考虑将数据传递给Weka分类器,然后使用它创建的.dot文件执行某些操作,即可能将其提供给GraphViz或尝试使用Google Visualization API来呈现交互式显示。

But, can anyone tell me if this is a viable approach or suggest alternatives?

但是,有人能告诉我这是一种可行的方法还是建议替代方案?

Thanks

Martin O'Shea.

2 个解决方案

#1


I've had a lot of success creating data flow graphs with graphviz (I uploaded them with a script to a MoinMoin wiki and used the graphviz plugin). That plugin even allowed to have links in the graphs, so we could keep the individual graphs small.

我使用graphviz创建数据流图表已经取得了很大的成功(我将它们上传了一个脚本到MoinMoin wiki并使用了graphviz插件)。该插件甚至允许在图表中包含链接,因此我们可以保持各个图形较小。

#2


For the UI we have added the JS stuff from http://www.mxgraph.com/ to display larger graphs to the user.

对于UI,我们已经从http://www.mxgraph.com/添加了JS的东西,以向用户显示更大的图形。

Your approach is viable however. GraphViz is a good tool.

然而,你的方法是可行的。 GraphViz是一个很好的工具。

#1


I've had a lot of success creating data flow graphs with graphviz (I uploaded them with a script to a MoinMoin wiki and used the graphviz plugin). That plugin even allowed to have links in the graphs, so we could keep the individual graphs small.

我使用graphviz创建数据流图表已经取得了很大的成功(我将它们上传了一个脚本到MoinMoin wiki并使用了graphviz插件)。该插件甚至允许在图表中包含链接,因此我们可以保持各个图形较小。

#2


For the UI we have added the JS stuff from http://www.mxgraph.com/ to display larger graphs to the user.

对于UI,我们已经从http://www.mxgraph.com/添加了JS的东西,以向用户显示更大的图形。

Your approach is viable however. GraphViz is a good tool.

然而,你的方法是可行的。 GraphViz是一个很好的工具。