learnBinaryRule: Function to learn a binary classification rule

Description Usage Arguments Value Author(s) References See Also Examples

Description

Function to learn a binary classification rule. For more than two class, use learnPartitionWithLLR instead. The learned rule can be linear or quadratic. There are reduction dimension methods (accessible via argument procedure) to make the procedure efficient when the number of features is larger than the number of observations

Usage

1
2
learnBinaryRule(x, y,type='linear', procedure = "FDRThresh", 
covariance = "diagonal", ql = NULL, qq = NULL,prior=FALSE)

Arguments

x

The Matrix with input data of size pxn (p feature space dimension, and n number of observations)

y

A vector of n factors with 2 LEVELS (labels) associated to observations (can also be numeric)

type

'quadratic' or 'linear' are valid types.

procedure

Procedure gives the used procedure to reduce the dimensionality of the estimated NormalVector and FormVector. use 'noThresh' for no dimensionality reduction. UnivTresh is the universal threshold and FDRThresh is an FDR thresolding procedure. When type=='linear' 'FANThresh' and 'FDRstudent' are also available. For type linear, the thresholding procedures are fully described in the Paper "Fast rate of convergence in high dimensional linear discriminant analysis"

covariance

Unused argument ... further development comming soon

ql

The parameter associated to the thresholding procedure for the estimation of NormalVector. If a vector of values is given a 10 fold cross validation is performed

qq

The parameter associated to the thresholding procedure for the estimation of FormVector (only when type='quadratic'). If a vector of values is given a 10 fold cross validation is performed

prior

Do we put a prior on y (taking into account the proportion of the different class in the learning set to build the classification rule

Value

A classification rule of class LinearRule if type='linear' and of class QuadraticRule if type='quadratic'.

Author(s)

Robin Girard

References

Fast rate of convergence in high dimensional linear discriminant analysis. R. Girard To appear in Journal of Nonparametric Statistics.\ Very high dimensional discriminant analysis with thresholding estimation. R. Girard. Submitted.

See Also

learnPartitionWithLLR

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
p=100; n=50 ; mu=array(0,c(p,2)); mu[1:10,1]=1 ;C=array(c(1,20),p)
x=NULL; y=NULL;

for (k in 1:2){    
  M=matrix(rnorm(p*n),nrow=p,ncol=n)
  x=rbind(x,t(array(C^(1/2),c(p,n))*(M)+array(mu[,k],c(p,n))));
    y=c(y,array(k,n))    }
#Learning
LearnedBinaryRule=learnBinaryRule(x,y)
show(LearnedBinaryRule)

VHDClassification documentation built on May 2, 2019, 2:38 a.m.