predict.beefedUpKNN: fSVA and k-Nearest Neighbor prediction

Description Usage Arguments Value Examples

Description

Predict labels or probabilities for new samples.

Usage

1
2
## S3 method for class 'beefedUpKNN'
predict(object, x, k = NULL, type = "class", ...)

Arguments

object

beefedUpKNN object.

x

matrix: Normalized and log-transformed expression values (samples in rows, features in columns).

k

integer: Number of nearest neighbors casting votes.

type

character: Either "class" for labels or "prob" for class probabilities.

...

additional arguments, currently not used.

Value

factor if type = "class" or matrix of class probabilities if type = "posterior"

Examples

1
# ADD_EXAMPLES_HERE

MalteThodberg/BEEF documentation built on May 7, 2019, 2:09 p.m.