且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在Orange中创建新的数据表?

更新时间:2023-12-01 15:00:34

这花了我几个小时才弄清楚.在python中,执行以下操作:

This took me hours to figure out. In python, do this:

Import Orange
List, Of, Column, Variables = [Orange.feature.Discrete(x) for x in ['What','Theyre','Called','AsStrings']]
Domain = Orange.data.Domain([List, Of, Column, Variables])
Table = Orange.data.Table(Domain)
Table.save('NewTable.tab')

我会告诉您每一段代码的作用,但是到目前为止,我还不确定.如此强大的工具包应该具有如此难以理解的文档,这很可笑,但是我怀疑这是因为它的整个用户群都有博士学位.

I'd tell you what each bit of code does, but as of now I'm not really sure. It's funny that such a powerful toolkit should have such hard to understand documentation, but I suspect it's because it's entire user base has doctorates.