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.

Value

a factor with the same levels as the class variable.


bmihaljevic/bnclassify documentation built on March 18, 2024, 8:34 a.m.