dgpage_fit | R Documentation |
This function implements the main training procedure of DGPAGE, which jointly learns
the adaptive graph W
and the projection matrix P
by minimizing
Eq. (12) in an alternating fashion.
dgpage_fit(
X,
S,
D,
r = 10,
alpha = 0.001,
beta = 1e-05,
maxiter = 20,
tol = 1e-05,
verbose = TRUE
)
X |
A numeric matrix of size |
S |
The |
D |
The |
r |
Target dimension (number of embedding directions to learn). |
alpha |
The hyper-parameter in Eq. (12). Typical range: |
beta |
The hyper-parameter in Eq. (12). Typical range: |
maxiter |
Maximum number of iterations for the alternating updates. |
tol |
Convergence tolerance on the objective value. |
verbose |
Whether to print progress information. |
Steps:
Initialize P
randomly (size d \times r
).
For each iteration:
Update W
via Eq. (18) (closed-form).
Update P
by solving the generalized eigenvalue problem in Eq. (23).
Repeat until convergence or maxiter
is reached.
Dimensions (in internal notation):
Let Z = t(X)
be d x n
,
P
is d x r
,
Y = P^\top Z
is r x n
.
W
is n x n
.
S
, D
are n x n
.
A list with:
P
: the d \times r
projection matrix,
W
: the n \times n
learned adjacency matrix (adaptive graph),
objective
: the final objective value,
iter
: number of iterations taken,
Z
: stored internally (d x n
) = t(X)
(just for reference).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.