da_risk_estimator: Double Asymptotic Risk Estimator

Description Usage Arguments Value Reference See Also Examples

View source: R/abc_grid.R

Description

This function implements the generalized (double asymptotic) consistent estimator of risk.

Usage

1

Arguments

object

An object of class "abcrlda".

Value

Calculates risk based on estimated class error rates and misclassification costs

R = e_0 * C_10 + e_1 * C_01)

Reference

A. Zollanvari, M. Abdirash, A. Dadlani and B. Abibullaev, "Asymptotically Bias-Corrected Regularized Linear Discriminant Analysis for Cost-Sensitive Binary Classification," in IEEE Signal Processing Letters, vol. 26, no. 9, pp. 1300-1304, Sept. 2019. doi: 10.1109/LSP.2019.2918485 URL: https://ieeexplore.ieee.org/document/8720003

See Also

Other functions in the package: abcrlda(), cross_validation(), grid_search(), predict.abcrlda(), risk_calculate()

Examples

1
2
3
4
5
6
7
data(iris)
train_data <- iris[which(iris[, ncol(iris)] == "virginica" |
                         iris[, ncol(iris)] == "versicolor"), 1:4]
train_label <- factor(iris[which(iris[, ncol(iris)] == "virginica" |
                                 iris[, ncol(iris)] == "versicolor"), 5])
model <- abcrlda(train_data, train_label, gamma = 0.5, cost = 0.75)
da_risk_estimator(model)

abcrlda documentation built on July 2, 2020, 4:13 a.m.