Displaying 20 results from an estimated 79 matches for "arules".
Did you mean:
rules
2011 Dec 07
2
arules package intsallation
I'm using R version 2.13.0 (2011-04-13) on Mac OS X and I get the following error message with library(arules):
Loading required package: Matrix
Loading required package: lattice
Attaching package: 'Matrix'
The following object(s) are masked from 'package:base':
det
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/Library/Frameworks/R.framewor...
2006 Jul 28
1
arules package: using image() deliveres unexpected results
Dear Collegues,
it seems like there is a problem with the image()-method in the package arules.
Using an ordninary matrix works fine:
image(matrix(rnorm(200), 10, 20), axes = FALSE, col=brewer.pal(9, "Blues") )
delivers an image with blue colors and no axes.
Using an object of the class "associations" (arules package) does not work:
image(items(ta.eclat), axes = FAL...
2013 Mar 11
2
Función Inspect() en "arules" package
Buenas tardes,
Necesito ayuda con la función inspect() del paquete "arules".
Mis comandos son:
r1 <- apriori(tran, parameter=list(support=0.012, confidence=0.7))
r1
summary(r1)
#todo bien, tengo 5 reglas y todo claro en el resume
#pero al pedir
inspect(r1)
inspect(sort(r1, by = "confidence"))
me arroja el error:
Error en UseMethod("inspect"...
2008 Jul 24
1
How to get rule number in arules
Dear R experts
I generated rules using apriori method in arules package. Though I can access rules using %in% function but I am unable to access a specific rule by its unique identifier number. I want to use rule number for further analysis..
Thanking you in advance.
Daniel
Amsterdam
Send instant messages to your onlin...
2011 Jun 03
2
Arules: R Crashes when running eclat with tidLists=TRUE
Hello,
I'm using the eclat function of the arules package (1.0-6) for the
identification of frequent itemsets. I need the tidLists, but if I set
in the function tidLists=TRUE R crashes (Windows XP Professional SP3,
32 bit, R version 2.12.1 (2010-12-16), reproducible on two different
computers) with two different error messages or non at all. Minim...
2011 Jan 28
1
arules package question- apriori/S4 object export question
...t results. My question
concerns how to export these results. I have read lots about write.csv
functions and exporting data frames and other standard objects. Im having
difficulty working with these S4 objects. My object looks as follows.
> str(rules)
Formal class 'rules' [package "arules"] with 4 slots
..@ lhs :Formal class 'itemMatrix' [package "arules"] with 3 slots
.. .. ..@ data :Formal class 'ngCMatrix' [package "Matrix"] with 5
slots
.. .. .. .. ..@ i : int [1:2133] 3907 3519 4172 3519 4182 3519 4172
4182 4172 4182...
2007 Oct 17
1
How to save association rules generated by arules package
Hi,
I have been able to generate association rules for Market Basket Analysis
using the following codes:
****************************************************************************
*******************************************
library("arules")
rules <- read.csv("write1.csv",na.strings=c(".", "NA", "", "?"),header=TRUE)
transactions <- as(split(rules$Item, rules$ID), "transactions")
getrules <- apriori(transactions, parameter = list(support=0.100,
confidence=0....
2008 Mar 04
1
Error in Arules
Hi everyone,
This is my first posting and I am just starting to fumble my way thru R.
I have been working thru the Arules package, and I used to be able to
use the image function and I get the following message:
Error in image.default(basket2) : 'z' must be a matrix
I used to be able to plot the image. I only started to get this error
when I tried to add x and y axis labels. Any ideas?
Many thank...
2008 Jul 16
1
Help regarding arules package
Dear R experts,
I need help to make my little program efficient which now takes 2hrs to complete.
Using arules package I developed set of rules consisted of 900 rules. Now I want to check whether a lower rule is a subset of a higher premises rule. And if it is a subset of higher premises rule then drop this rule. I am using following code but it takes too much time.
nor<-length(rules)
k<-rep(T, n...
2009 Feb 28
0
arules: rules are built on item ordering in the dataframe, rather than
Hi,
I'm trying out the package arules and I'm having a bit of trouble
getting my data to work properly. I have a set of transactions with
the purchased products but each product could appear in a different
column in the data frame. This causes the rules to be built based on
the ordering, which is not significant.
Here is an exampl...
2010 Feb 18
1
how to change number of itemes appeare in right-hand-side of the rule with apriori in R(arules)?
Hi All,
I use arules library, and try to create an association rules for this
transaction file:
a,c,f,3,4,5
b,e,1,2,4
a,c,e,f,1,3,4,5
d,5
b,c,e,f,1,2,3,4
a,c,e,f,1,3,4,5
b,c,e,f,1,3,4
b,e,1,2,4
a,c,e,f,1,3,4,5
a,b,c,e,f,1,3,4
a,c,d,f,3,4,5
I want to get the rule such:
{c,e,f}=> {3,4,5}
I used this command:
ar=...
2012 Jan 17
1
arules "killed"
Hi, I recently got a bizarre message when running arules. It just said
"Killed" and quit. Anyone know why this might have happened? I am running R
on an AWS quad xl ubuntu instance.
Here is some information, including dataset size and the parameters:
parameter specification:
confidence minval smax arem aval originalSupport support mi...
2012 Jun 25
1
Arules - predict function issues - subscript out of bounds
...t when I'm trying to predict this on the larger set it keeps throwing an
subscript out of bound error
Label<-predict(s[clustering$mediods],txn,method="Jaccard")
Can anyone explain to me why this keeps happening ?? I've tried this on
other datasets like Groceries/ Adult in the arules package and it seems to
work fine !!
Thanks,
Ankur
[[alternative HTML version deleted]]
2009 Dec 02
2
Arules - Association Rules
Hello everybody!
I'm trying some datamining, but i'm having some problems with arule
package, in the end of processing R "had to be closed". I already
tryied to reinstall the 2.10 version, change the computer and
realocated more virtual memory.
Does anyone had this problem to?
I had a hiphoteses that i have to prepare the data, somehow i don't
know.
Thanks for helping!!!
2007 Jan 23
0
error in arules package
Hi,
we noticed there was a error in the "arules" package.
After reading the source code, we saw that the Dice similarity index was
"miscalculated" in "dissimilarity" function : an copy-paste from Jaccard
Index was not corrected (2* a_b_c, ie 2*(a+b+c) in the code instead of
2*a +b + c !!!).
After our mail to R-help...
2008 Mar 17
0
arules - getting transaction data in
...ons data type? I wish to get all the
apriori() stats for each salesman, and see who's good at selling add-ons and
up-selling (and how salespeople react when certain items are discounted).
For this analysis, I need to filter on salesman and date_time.
I realise that the EPubs dataset in the arules package has a few extra
fields apart from the transaction_ids and the actual items, but I can't
figure out how to get the additional fields (in my case store, salesman,
date_time) in.
(PS: it would not be too hard for me to binary-ise the items fields if this
would help.)
[[alternative H...
2006 Oct 05
0
a question on using arules package
hi, there:
I have a question on use of arules package:
suppose i have a classification problem with class id = 1 or 0.
i put predictors and class ids together and tranform all of them into
binary thus i got a binary matrix. When I build the rules from it, I
subset the rules to 2 by defining rhs %in% "classid = 1" or "2"....
2013 May 21
0
Arules: getting rules with only one item in the left-hand side
Hello,
I am using the package arules to generate association rules. I would like
to restrict the rules so that in the left-hand side there's only one
particular element, let's call it "potatoe".
If I do this:
rules <- apriori(dtm.mat, parameter = list(sup = 0.4, conf =
0.9,target="rules"), appearance =...
2013 Oct 31
0
arules package apriori() fn error message XXXX
Hi everybody,
I am using the apriori() fn in the arules package and am encountered an error.
rules <- apriori(rdayst,parameter = list(support = 0.01, confidence = 0.6))
"You chose a very low absolute support count of 0. You might run of memory."
I assume this is related to the value of .01 specified for the support
= argument. If so, wha...
2010 Dec 20
2
package "arules" - 'transpose' of the transactions
Suppose this is my list of transactions:
set.seed(200)
tran=random.transactions(100,3)
inspect(tran)
items transactionID
1 {item80} trans1
2 {item8,
item20} trans2
3 {item28} trans3
I want to get the 'transpose' of the data, i.e.
transactionID items
1 {trans2} item8
2 {trans2} item20
3 {trans3} item28
4 {trans1} item80
I