on.auc: AUC from model built with KnowGRRF

Description Usage Arguments Value Author(s) References Examples

View source: R/on.auc.R

Description

User can directly get model performance (AUC: Area under Curve) by providing weights and regularization term. Feature selection will be done by RRF and RF model will be built.

Usage

1
on.auc(par, wt, num = 1, iter = 1)

Arguments

par

A scaler or a vector of parameters to adjust proportion of weights. The length of parameters is equal to the number of domain.

wt

A vector or a matrix of weights corresponding to each of predictors from one or multiple domains.

num

The number of domains the weights come from

iter

The number of RF model built to evaluate AUC (Area under Curve)

Value

mean of AUC from a number of RF model using feature selected by RRF

Author(s)

Li Liu, Xin Guan

References

Guan, X., & Liu, L. (2018). Know-GRRF: Domain-Knowledge Informed Biomarker Discovery with Random Forests.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (par, wt, num = 1, iter = 1) 
{
    if (num == 1) {
        return(rrf.opt.1(par, wt, iter)[2])
    }
    else {
        return(rrf.opt.m(par, wt, iter)[2])
    }
  }

guanxin1121/Know_GRRF documentation built on May 21, 2019, 11:10 a.m.