Learn R Programming

lares (version 4.7)

conf_mat: Confussion Matrix

Description

This function calculates a Confussion Matrix using crosstab for 2 or more categories. You can either set the score and threshold or the labels you wish to cross with.

Usage

conf_mat(tag, score, thresh = 0.5, plot = FALSE)

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 when binary.

plot

Boolean. Plot result?

See Also

Other Machine Learning: ROC, clusterKmeans, 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_conf, 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 Calculus: ROC, corr, deg2num, dist2d, errors, loglossBinary, mae, mape, model_metrics, mse, quants, rmse, rsqa, rsq