Learn R Programming

kerntools (version 1.2.0)

vonNeumann: Von Neumann entropy

Description

`vonNeumann()` computes the von Neumann entropy of a kernel matrix. Entropy values close to 0 indicate that all its elements are very similar, which may result in underfitting when training a prediction model. Instead, values close to 1 indicate a high variability which may produce overfitting.

Usage

vonNeumann(K)

Value

Von Neumann entropy (a single value).

Arguments

K

Kernel matrix (class "matrix").

References

Belanche-Muñoz, L.A. and Wiejacha, M. (2023) Analysis of Kernel Matrices via the von Neumann Entropy and Its Relation to RVM Performances. Entropy, 25, 154. doi:10.3390/e25010154. Link

Examples

Run this code
data <- matrix(rnorm(150),ncol=50,nrow=30)
K <- Linear(data)
vonNeumann(K)

Run the code above in your browser using DataLab