getBinaryRule(VHDClassification)
getBinaryRule()所属R语言包:VHDClassification
Getter set of binary rules (object PartitionWithLLR)
消气的二进制规则(目标PartitionWithLLR的集)
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This function returns the binary rule for discrimination between data from class k and data from class l
这个函数返回的二进制数据从k类和L类的数据之间的歧视规则
用法----------Usage----------
getBinaryRule(object, k, l)
参数----------Arguments----------
参数:object
An object of class PartitionWithLLR as returned by learnPartitionWithLLR
作为一个对象的类PartitionWithLLR的返回learnPartitionWithLLR
参数:k
an existing label
现有的标签
参数:l
an existing label
现有的标签
值----------Value----------
A binary classification rule. Can either be an object of class LinearRule or an object of class QuadraticRule
一个二元分类规则。可以是一个对象的类LinearRule或对象类QuadraticRule
(作者)----------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----------
getLogLikeRatio
getLogLikeRatio
实例----------Examples----------
#try p=1000 , 5000, ...[尝试P = 1000,5000,...]
p=100; n=20 ; mu=array(0,c(p,4)); mu[1:10,1]=2 ;mu[11:20,2]=2;C=array(c(1,20),p)
mu[21:30,3]=2
x=NULL; y=NULL;
for (k in 1:4){
x=rbind(x,t(array(C^(1/2),c(p,n))*(matrix(rnorm(p*n),nrow=p,ncol=n))+array(mu[,k],c(p,n))));
y=c(y,array(k,n))}
#Learning[学习]
LearnedLinearPartitionWithLLR=learnPartitionWithLLR(x,y,procedure='FDRThresh')
Rule=getBinaryRule(LearnedLinearPartitionWithLLR,1,2)
show(Rule)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|