Learn R Programming

kerntools (version 1.2.0)

KTA: Kernel-target alignment

Description

`KTA()` computes the alignment between a kernel matrix and a target variable.

Usage

KTA(K, y)

Value

Alignment value.

Arguments

K

A kernel matrix (class: "matrix").

y

The target variable. A factor with two levels.

Examples

Run this code
K1 <- RBF(iris[1:100,1:4],g=0.1)
y <- factor(iris[1:100,5])
KTA(K1,y)

Run the code above in your browser using DataLab