简体   繁体   English

橙色数据表

[英]Orange data Table

I have a numpy array of numpy arrays and I want to run association rules mining on them by using Orange. 我有一个numpy数组的numpy数组,我想通过使用Orange运行关联规则挖掘它们。 How can I convert numpy arrays to Orange data Table? 如何将numpy数组转换为Orange数据表?

Regarding this link https://orange3-associate.readthedocs.io/en/latest/scripting.html#fpgrowth.frequent_itemsets I tried to do it with the function:fpgrowth.frequent_itemsets(X, min_support=0.2) but I can not install fpgrowth package on my windows machin. 关于这个链接https://orange3-associate.readthedocs.io/en/latest/scripting.html#fpgrowth.frequent_itemsets我尝试使用函数:fpgrowth.frequent_itemsets(X,min_support = 0.2),但我无法安装我的windows machin上的fpgrowth包。

PS: I am using python 2.7 PS:我使用的是python 2.7

Is it possible to be a bit more clear? 有可能更清楚一点吗? If I'm correct you have two questions: 如果我没错,你有两个问题:

Creation of a data table from numpy: 从numpy创建数据表:

The documentation gives you an example ( https://docs.orange.biolab.si/2/reference/rst/Orange.data.table.html ): 该文档为您提供了一个示例( https://docs.orange.biolab.si/2/reference/rst/Orange.data.table.html ):

import numpy
d = Orange.data.Domain([Orange.feature.Continuous('a%i' % x) for x in range(5)])
a = numpy.array([[1, 2, 3, 4, 5], [5, 4, 3, 2, 1]])
t = Orange.data.Table(a)

Installation of orange3-associate 安装orange3-associate

The link provided in your post points to the documentation for Orange 3 (Python 3) but you are using Python 2. Can you provide a reference to this package for Python 2? 您帖子中提供的链接指向Orange 3(Python 3)的文档,但您使用的是Python 2.您是否可以为Python 2提供此包的引用?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM