map {bnclassify}R Documentation

Assigns instances to the most likely class.

Description

Ties are resolved randomly.

Usage

map(pred)

Arguments

pred

A numeric matrix. Each row corresponds to class posterior probabilities for an instance.

x

a bnc_fit object.

Value

a factor with the same levels as the class variable.


[Package bnclassify version 0.4.2 Index]