valid_dimensions: Functions to check matrices

Description Usage Arguments Value Note

View source: R/valid_dimensions.R

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

1
2
3

Arguments

y

a label matrix

k

a kernel matrix

g

an optional second kernel matrix or NULL otherwise.

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


xnet documentation built on Feb. 4, 2020, 9:10 a.m.