R 先天记忆不足
我正在使用R,我使用下面的命令,我得到的错误是R 先天记忆不足,r,apriori,arules,R,Apriori,Arules,我正在使用R,我使用下面的命令,我得到的错误是内存不足。增加最低限度的支持我尝试将支持增加到0.5,但仍然收到相同的错误。任何帮助都将不胜感激。我的数据是(5000,2) 您需要2个以上的事务。关联规则挖掘通常用于数千个事务 > x=apriori(d,parameter = list(support=0.5,confidence=0.8,maxlen=5)) Apriori Parameter specification: confidence minval smax arem
内存不足。增加最低限度的支持代码>我尝试将支持增加到0.5,但仍然收到相同的错误。任何帮助都将不胜感激。我的数据是(5000,2)
您需要2个以上的事务。关联规则挖掘通常用于数千个事务
> x=apriori(d,parameter = list(support=0.5,confidence=0.8,maxlen=5))
Apriori
Parameter specification:
confidence minval smax arem aval originalSupport maxtime support minlen maxlen target ext
0.8 0.1 1 none FALSE TRUE 5 0.3 1 5 rules FALSE
Algorithmic control:
filter tree heap memopt load sort verbose
0.1 TRUE TRUE FALSE TRUE 2 TRUE
Absolute minimum support count: 0
set item appearances ...[0 item(s)] done [0.00s].
set transactions ...[2856 item(s), 2 transaction(s)] done [0.00s].
sorting and recoding items ... [2856 item(s)] done [0.00s].
creating transaction tree ... done [0.00s].
checking subsets of size 1 2 3 done [183.38s].
writing ... Error in apriori(d, parameter = list(support = 0.3, confidence = 0.8, :
not enough memory. Increase minimum support!
In addition: Warning messages:
1: In asMethod(object) : removing duplicated items in transactions
2: In apriori(d, parameter = list(support = 0.3, confidence = 0.8, :
Mining stopped (time limit reached). Only patterns up to a length of 3 returned!