valid_dimensions {xnet} | R Documentation |
Functions to check matrices
Description
These functions allow you to check whether the dimensions of the
label matrix and the kernel matrix (matrices) are compatible.
valid_dimensions
checks whether both k and g are square matrices,
whether y has as many rows as k and whether y has as many columns as g.
is_square
checks whether both dimensions are the same.
Usage
valid_dimensions(y, k, g = NULL)
is_square(x)
Arguments
y |
a label matrix |
k |
a kernel matrix |
g |
an optional second kernel matrix or |
x |
any matrix |
Value
a logical value indicating whether the dimensions of the matrices are compatible for a two step kernel ridge regression.
Note
The function is_square
is not exported
[Package xnet version 0.1.11 Index]