normalizetest(sparseLDA)
normalizetest()所属R语言包:sparseLDA
Normalize test data
标准化测试数据
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Normalize test data using output from the normalize() of the training data
规范化使用从归一输出()的测试数据的训练数据
用法----------Usage----------
normalizetest(Xtst,Xn)
参数----------Arguments----------
参数:Xtst
a matrix with the test data with observations down the rows and variables in the columns.
向下的行和列中的变量与观测与测试数据的矩阵。
参数:Xn
List with the output from normalize(Xtr) of the training data.
的训练数据的输出标准化(XTR)的列表。
Details
详细信息----------Details----------
The function can e.g. be used to normalize the testing data in sda or smda.
该功能可以如用于sda或SMDA的检测数据,标准化。
值----------Value----------
Returns the normalized test data
返回标准化的测试数据
参数:Xtst
The normalized data.
规范化的数据。
(作者)----------Author(s)----------
Line Clemmensen
参考文献----------References----------
analysis", Technical report, IMM, Technical University of Denmark
参见----------See Also----------
normalize, sda, smda
normalize, sda, smda
实例----------Examples----------
## Data[#数据]
Xtr<-matrix(sample(seq(3),12,replace=TRUE),nrow=3)
Xtst<-matrix(sample(seq(3),12,replace=TRUE),nrow=3)
## Normalize training data [#标准化的训练数据。]
Nm<-normalize(Xtr)
## Normalize test data[#标准化的测试数据。]
Xtst<-normalizetest(Xtst,Nm)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|