Learn R Programming

bnclassify (version 0.4.8)

map: Assigns instances to the most likely class.

Description

Ties are resolved randomly.

Usage

map(pred)

Value

a factor with the same levels as the class variable.

Arguments

pred

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