如何将这些数据可视化为Python?

时间:2017-07-16 10:39:21

标签: python plot graph data-science

所以我想将这些数据可视化为Python中的下图。

enter image description here

[('boy', 0.9998371601104736), ('the', 0.9998303651809692), ('s', 0.9998290538787842), ('now', 0.9998087286949158), ('fish', 0.999808669090271), ('up', 0.9998086094856262), ('out', 0.9998055696487427), ('then', 0.9998049736022949), ('him', 0.9998048543930054), ('across', 0.9998047351837158), ('sea', 0.9998030662536621), ('he', 0.999802827835083), ('was', 0.9997997283935547), ('over', 0.9997989535331726), ('head', 0.999798595905304), ('had', 0.999798059463501), ('shark', 0.9997979998588562), ('into', 0.9997978806495667), ('with', 0.9997947216033936), ('man', 0.9997928142547607), ('on', 0.9997923374176025), ('great', 0.9997917413711548), ('water', 0.9997894763946533), ('come', 0.9997884631156921), ('skiff', 0.9997872114181519), ('and', 0.9997856616973877), ('no', 0.9997855424880981), ('when', 0.9997851848602295), ('to', 0.9997830390930176), ('an', 0.9997830390930176)]

1 个答案:

答案 0 :(得分:0)

您可以使用MatplotlibBasic Plotting with Pylab来理解一般的可视化技术。

如果您通过LDA等机器学习技术推导出这些,主题建模可以使用GensimpyLDAvis

您还应该研究此博客Python data visualization: Comparing 7 tools,以了解使用Python进行数据可视化的各种可能性。