Displaying 20 results from an estimated 20000 matches similar to: "arules package apriori() fn error message XXXX"
2011 Jan 28
1
arules package question- apriori/S4 object export question
I am new to R( but quickly being awed by the range of this it can accomplish,
you have one more convert to the useR universe). I have successfully
implemented the apriori function and are getting great 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
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=apriori(tr, parameter=list(support=.4, confidence=0.8, maxlen=11),
appearance
2008 Mar 14
0
arules package (apriori)
hello,
I want to perform the Apriori association rules algorithm to my data. The set of data contains missing values and consists in a combination of continuous and categorical variables.
After discretizing the continuous variables, I wrote the following instruiction to perform Apriori, but I obtained the following error message:
> rules <- apriori(dd_new,parameter=list(supp=0.5, conf=0.9,
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 example:
# # Code:
my.df <- data.frame(
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 minlen
maxlen
0.0003581251 0.1 1 none
2011 Nov 11
0
predictive apriori
Dear list members,
I know that there is the arules package with the implementation of the
apriori algorithm. However i want to use the "predictive apriori" instead.
These algorithm can mine as rules as i want and there is an implementation
on weka.
There is some implementation on R?
--
Att,
Flávio Barros
[[alternative HTML version deleted]]
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 online friends
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", x) :
no
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)
2009 Jul 17
1
Arules questions. I need some help please
Question 2a)
I am also working with arules package and I have the following problem
let suppose the matrix b like:
b<-matrix(c(1,1,1,1,1,1,0,0,1,1,1,1,0,0,1,1,0,1,1,1,1,1,1,1),nrow=6)
rownames(b)=c("T1", "T2", "T3", "T4", "T5", "T6")
colnames(b)=c("It1", "It2", "It3", "It4")
bt<-as(b,
2012 Jun 25
1
Arules - predict function issues - subscript out of bounds
Hi,
I'm doing a Market Basket Analysis in which I have a list of transaction
id's in column 2 and transactions(product names) in column 1. I read this
into a transaction file using a
txn<-read.transaction(file="data.csv",format='single', rm.duplicates=F,
cols=c(1,2))
If I want to use the apriori algorithm everything seems to be running fine.
However it is when I want
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 = list(lhs = c("potatoe")))
I get "potatoe"
2008 Mar 17
0
arules - getting transaction data in
Hi All
Hoping someone can help me with the "transactions" object. I am struggling
to get my data in. I know the answer is in the help somewhere I'm sure, I
just cannot find it. Essentially, I have data in this format (though I can
change it if it particularly unsuitable)
Transaction_id, store , salesman, date_time , items
1 , waterfront, john ,
2011 Jul 17
1
Plot fn, xlim when x is a date. XXXX
Hello everyone,
I have the following x variable:
DATE<-as.Date(as.character(data12$DATE),"%m/%d/%Y")
This works fine, however, I want to plot multiple years of data on separate
plots by month. All years have all 12 months data except 2011; HOWEVER I
need the x axis limits to remain the same. I tried using xlim=c(1,12) and
that did not work.
Can someone please advise?
Thank you!
2013 Oct 08
1
Summary functions in sqldf() XXXX
Hi everyone,
Is it possible to obtain the 1st & 3rd quartiles & the median in a sqldf()
select statement? If so, can you please provide the summary fn code?
Thanks!
Dan
[[alternative HTML version deleted]]
2011 Aug 24
3
Importing data from MS EXCEL (.xls) to R XXXX
Hello everyone,
What is the simplest, most RELIABLE way to import data from MS EXCEL (.xls)
format to R? In the past I have used the read.xls() function from the
xlsReadWrite package, however, I have been wrestling with it all afternoon
long with no success. I continue to receive the following error message:
> {widge<-read.xls("F:\\Classes\\Z1.Data\\stat.3010\\WidgeOne.xls",
+
2011 Nov 28
1
2 Y-AXIS labels on the same (left-hand side) Y-AXIS XXXX
Hello everyone,
Is it possible to specify a 2 line y-axis label on the same lef-hand side
y-axis? I am using the \n regular expression, but only the 2nd line appears
(I assume the 1st line is printed off the page...)
plot(PRE_SHB,R1,
main="Figure 1.1: Scatterplot of Residualized
Post Score",
xlab = "Pre Score",
ylab = "Residualized Post Score \n
(Adjusted for Age
2012 Mar 02
3
Memory issue. XXXX
Hi everyone,
Any ideas on troubleshooting this memory issue:
> d1<-read.csv("arrears.csv")
Error: cannot allocate vector of size 77.3 Mb
In addition: Warning messages:
1: In class(data) <- "data.frame" :
Reached total allocation of 1535Mb: see help(memory.size)
2: In class(data) <- "data.frame" :
Reached total allocation of 1535Mb: see
2011 Aug 27
2
Placing a column name in a variable XXXX
Hi everyone,
How does one place an object name (in this case a vector name) into another
object (while essentially masking the values of the first object?
For example:
> JOBSAT<-rnorm(40)
>
> CI<-function(x,alpha){
+ result<-cbind(x,mean=mean(x),alpha)
+ print(result)
+ }
> CI(JOBSAT,.05)
I want this to return:
Variable mean alpha
JOBSTAT 0.02844131 0.05
2012 Jul 06
2
Problem with Apriori
Good morning
When I try to run an Apriori, I keep often the following message:
checking subsets of size 1Error in apriori(tr, parameter = list(supp =
3e-05, conf = 0.05, minlen = 2, :
internal error in trio library
Other time it works fine on the same data. What can be the reason for this?
--
Jolinda Bartlett
Eighty20 Consulting
Tel: 021 460 0440
Fax: 087 625 0649
3.1 East Wing
The Palms