多个置信度值

时间:2019-04-09 05:02:53

标签: python apriori

我已将apriori应用于我的数据集并获得了历史记录。我包含多个信心值。有人可以给我详细解释吗? 以下是我得到的输出。

[RelationRecord(items=frozenset({'   android.software.live_wallpaper\n', '   location.gps\n'}), support=0.010211027910142955, ordered_statistics=[OrderedStatistic(items_base=frozenset({'   android.software.live_wallpaper\n'}), items_add=frozenset({'   location.gps\n'}), confidence=0.6818181818181819, lift=2.1964712918660285), OrderedStatistic(items_base=frozenset({'   location.gps\n'}), items_add=frozenset({'   android.software.live_wallpaper\n'}), confidence=0.03289473684210526, lift=2.1964712918660285)]),

我尝试了以下代码:

store_data = pd.read_csv('Trivial_Hardware.csv', header=None)
records = []  
for i in range(0, 1469):  
    records.append([str(store_data.values[i,j]) for j in range(0, 9)])
association_rules = apriori(records, min_support=0.01, 
min_confidence=0.01, min_lift=2, min_length=4) 
association_result = list(association_rules)
print(association_result)

0 个答案:

没有答案