Description Usage Arguments Value Author(s) See Also Examples
View source: R/rescal_Trp_Val.R
Calculate score values corresponding to triples in tensor from RESCAL factorization.
1 | rescal_Trp_Val(R, A, ntnsr, Sl_ix = NULL, verbose = 1)
|
R |
core tensor resulting from RESCAL factorization (r by r by m ). |
A |
Embedding matrix part resulting from RESCAL factorization. |
ntnsr |
sparse tensor containing the triples to be reconstructed (i.e. to calculate scores for). |
Sl_ix |
Optional: indexes of slices to be processed. |
verbose |
the level of messages to be displayed, 0 is minimal. |
Returns a data frame containing four columns:
Subj |
index(es) of subject(s) |
P |
index(es) of predicate |
Obj |
index(es) of object(s) |
val |
the score resuling from A[Subj,]%*% R_p * A[Obj,]. |
Abdelmoneim Amer Desouki
rescal
scRescal
RescalReconstructBack
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.