bayesclass(z)
z
|
An object of class "mlbench" .
|
If the classes of the problem do not overlap, then the Bayes
decision is identical to the true classification, which is
implemented as the dummy function bayesclass.noerr
(which
simply returns z$classes
and is used for all problems with
disjunct classes).
# 6 overlapping classes p <- mlbench.2dnormals(500,6) plot(p) plot(p$x, col=bayesclass(p))