我正在使用as()
函数生成事务数据。获得的as()
函数的结果具有以下结构:
Formal class 'transactions' [package "arules"] with 3 slots
..@ data :Formal class 'ngCMatrix' [package "Matrix"] with 5 slots
.. .. ..@ i : int [1:24375] 0 5 11 0 5 8 11 12 0 5 ...
.. .. ..@ p : int [1:7992] 0 3 8 12 15 18 20 22 26 32 ...
.. .. ..@ Dim : int [1:2] 13 7991
.. .. ..@ Dimnames:List of 2
.. .. .. ..$ : NULL
.. .. .. ..$ : NULL
.. .. ..@ factors : list()
..@ itemInfo :'data.frame': 13 obs. of 1 variable:
.. ..$ labels: chr [1:13] "ATM" "AUTO" "CCRD" "CD" ...
..@ itemsetInfo:'data.frame': 7991 obs. of 1 variable:
.. ..$ transactionID: chr [1:7991] "500026" "500075" "500129" "500256" ...
我想查看@data字段的内容,这是ngCMatrix类的一个实例。怎么看?任何帮助表示赞赏。
答案 0 :(得分:0)
以下是代码:
Caused by: org.hibernate.QueryException: could not resolve property: publications of: org.wwarn.vivax.manager.domain.Study
at org.hibernate.persister.entity.AbstractPropertyMapping.propertyException(AbstractPropertyMapping.java:83)
at org.hibernate.persister.entity.AbstractPropertyMapping.toType(AbstractPropertyMapping.java:77)
at org.hibernate.persister.entity.AbstractEntityPersister.toType(AbstractEntityPersister.java:1978)
at org.hibernate.hql.internal.ast.tree.FromElementType.getPropertyType(FromElementType.java:367)
一些注意事项:
答案 1 :(得分:0)
summary(ngcmatrix)
将为您提供itemNum及其所属的列(通常的交易集的转置,其中行代表每个交易);