plot.multiclass: Plot of Metrics for Multiclass Classification Models

View source: R/plot_multiclass.R

plot.multiclassR Documentation

Plot of Metrics for Multiclass Classification Models

Description

Function plot.multiclass plots measure of quality of regression models.

Usage

## S3 method for class 'multiclass'
plot(x, models = NULL, type = "comparison", metric = "accuracy", ...)

Arguments

x

An object, returned from train() function.

models

A character or numeric that indicates which models will be presented. If 'NULL' (the default option) then the three best models will be presented.

type

A character one of 'comparison', 'confusion-matrix', 'train-test' indicates the type of chart.

metric

A character such as 'accuracy' indicates the metric on the plots.

...

Other parameters that are necessary for consistency with generic plot function.

Value

a ggplot2 object

Examples

## Not run: 
library('forester')
data('iris')

x <- train(iris, 'Species', bayes_iter = 0, random_evals = 0)
plot(x)

## End(Not run)


ModelOriented/forester documentation built on June 6, 2024, 7:29 a.m.