Априори Недостаточно памяти - PullRequest
0 голосов
/ 12 марта 2019

Я использую R, и я использую следующую команду, и я получаю ошибку not enough memory. Increase minimum support! Я попытался увеличить поддержку до 0,5, но я все еще получаю ту же ошибку. Любая помощь будет оценена. Мои данные (5000,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!

1 Ответ

0 голосов
/ 14 марта 2019

Вам нужно более 2 транзакций.Анализ правил ассоциации обычно используется для тысяч транзакций.

...