質問

I think the question is clear enough. I want to make a hidden Markov model in Python and draw a vizualization model of it. So, it's something like this picture:

model

Is there any module to do that? I've googled it and found nothing.

役に立ちましたか?

解決 2

Though I've never worked with Hidden Markov Models, when I need to visualize a graph (directed, with labels, colors, etc.), I use Gephi, a GUI graph browser/editor and generate the graphs programmatically as GraphML files, which is an XML-based format. Python has good XML-handling tools (in the standard library and lxml). Gephi recognizes some of the <data> sub-elements as positions, colors, and labels for nodes and edges.

他のヒント

The dot package from graphviz is the best I've found. The syntax is simple, simpler than xml.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top