search for: itemmatrix

Displaying 5 results from an estimated 5 matches for "itemmatrix".

2011 Jan 28
1
arules package question- apriori/S4 object export question
.... 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 ... .. .. .. .. ..@ p : int [1:790] 0 0 1 2 3 4 5 6 7...
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 = FALSE,
2011 Oct 10
1
pmml for random forest & rules
...parameter = list(supp = 0.5, conf = 0.9, target = "rules")) pmml(rules) I get this error: > pmml(rules) Error in function (classes, fdef, mtable) : unable to find an inherited method for function "size", for signature "itemMatrix" With this traceback: > traceback() 5: stop("unable to find an inherited method for function \"", fdef at generic, "\", for signature ", cnames) 4: function (classes, fdef, mtable) { methods <- .findInheritedMethods(classes, fdef, mtable)...
2006 Feb 08
1
ARULES --> Filtering Rules by RHS
Dear Colleagues, I would like to only inspect rules that contain a certain label substring on the rhs. In this special case the item labels are built like this: <itemtype>_<itemvalue> e.g. "Artikelgruppe_E0815" what I want to do is only show rules where "Artikelgruppe" is contained in the rhs - has anybody an idea how this could work? Sincerely
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