CreateCombinedPlot: A helper function used by the plot.ModelComparison. This...

Description Usage Arguments Examples

View source: R/Visualization.R

Description

A helper function used by the plot.ModelComparison. This function gathers the data needed for many types of metrics and then plots the chart.

Usage

1
2
CreateCombinedPlot(object, pred.basic, labels,
  metrics.for.plot = c("Accuracy", "Recall", "AUC", "Precision"))

Arguments

object

The ModelComparison object.

pred.basic

The predictions from the models on the testing data.

labels

The labels for the testing data.

Examples

1
2
3
4
# This function is used by plot.ModelComparison. It's usage is as follows:
#  CreateCombinedPlot(object, pred.basic, labels)
# or given specific metrics for Accuracy and AUC:
#  CreateCombinedPlot(object, pred.basic, labels, c("Accuracy", "AUC"))

orionw/BestModel documentation built on Aug. 17, 2019, 7:29 p.m.