| nmfkc.net.ecv | R Documentation |
k-fold CV with folds taken over the upper triangle of the
symmetric Y (mirrored to the lower triangle) to prevent information
leakage through symmetry. A single entry point covers all three symmetric
NMF variants; type selects the fitting function:
"tri" (default): nmfkc.net with C \ge 0
"bi": nmfkc.net with C = I_Q
"signed": nmfkc.net with signed C = C_{+} - C_{-}
nmfkc.net.ecv(Y, rank = 1:3, type = c("tri", "bi", "signed"), ...)
Y |
Symmetric N x N non-negative matrix. |
rank |
Integer vector of ranks to evaluate. Default |
type |
Model type: |
... |
Passed to the underlying fitter; also accepts:
|
A list with objfunc, sigma, objfunc.fold,
folds, Q.grid, type, and
r.squared.cvHeld-out R^2 per rank, pooled over
the folds: 1 - \sum (y - \hat y)^2 / \sum (y - \bar y)^2 over
all held-out upper-triangle entries (weighted when Y.weights
is given). Unlike the r.squared of a fit (a squared
correlation), it can be negative.
predWith pred = TRUE: N \times N \times
(ranks) array of held-out predictions, mirrored to the lower triangle;
NA where an entry was never held out.
diag.excludeTRUE, present only when used.
seeds, objfunc.rep, objfunc.sd,
r.squared.cv.rep, r.squared.cv.sd, folds.repPresent only with two or more seeds: the per-seed values
(ranks x seeds), their standard deviations, and each seed's folds.
objfunc.fold, folds and pred are those of the
first seed.
This function is experimental. The interface may change in future versions; details are to be described in an upcoming paper.
nmfkc.net
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.