Learn R Programming

lares (version 4.7)

mplot_conf: Confussion Matrix Plot

Description

This function plots a confussion matrix.

Usage

mplot_conf(tag, score, thresh = 0.5, abc = TRUE, subtitle = NA,
  save = FALSE, subdir = NA, file_name = "viz_conf_mat.png")

Arguments

tag

Vector. Real known label

score

Vector. Predicted value or model's result

thresh

Numeric. Value which splits the results for the confusion matrix.

abc

Boolean. Arrange columns and rows alphabetically?

subtitle

Character. Subtitle to show in plot

save

Boolean. Save output plot into working directory

subdir

Character. Sub directory on which you wish to save the plot

file_name

Character. File name as you wish to save the plot

See Also

Other Machine Learning: ROC, clusterKmeans, conf_mat, export_results, gain_lift, h2o_automl, h2o_predict_API, h2o_predict_MOJO, h2o_predict_binary, h2o_predict_model, h2o_selectmodel, impute, iter_seeds, model_metrics, mplot_cuts_error, mplot_cuts, mplot_density, mplot_full, mplot_gain, mplot_importance, mplot_lineal, mplot_metrics, mplot_response, mplot_roc, mplot_splits, msplit

Other Visualization: corr_plot, distr, freqs_df, freqs, mplot_cuts_error, mplot_cuts, mplot_density, mplot_full, mplot_gain, mplot_importance, mplot_lineal, mplot_metrics, mplot_response, mplot_roc, mplot_splits, noPlot, plot_survey, theme_lares2, theme_lares, tree_var