Description Usage Arguments Value Author(s)
gets a tensor data structure as a set of frontal slices represented as sparse matrices. The entities as subject has a different id than object and the size of subject and object modes can be different.
1 | getTensor3m(trp, S = NULL, P = NULL, O = NULL)
|
trp |
three columns representing the set of triples (subject, predicate, object). Each row representes one triple. |
S |
the predifined list of subjects |
P |
The set of predicates |
O |
the predifined list of objects |
A LIST containing:
X |
set of sparse matrices with ones in the position of triples, each sparse matix represents one predicate (relationship) |
S |
the set of entities in the subject domain |
O |
the set of entities in the object domain |
P |
the set of predicates |
Abdelmoneim Amer Desouki
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.