map: Assigns instances to the most likely class.

View source: R/predict.R

mapR 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.


bnclassify documentation built on Nov. 16, 2022, 5:08 p.m.