thresholds-class(Rmagpie)
thresholds-class()所属R语言包:Rmagpie
thresholds: A class to handle the thresholds to be tested during training of the Nearest
阈值:A级处理的阈值,将在最近的训练测试
译者:生物统计家园网 机器人LoveR
描述----------Description----------
The Nearest Shrunken Centroid is computed using a threshold. This threshold is usually determined by finding the best threshold value over a set of values by finding the threshold leading to the best error rate assessed by cross-validation. This class stores the values of thresholds to be tried. If the user wants to use default
最近萎缩的重心计算使用的阈值。此阈值通常取决于找到最好的一组值超过阈值,通过寻找导致交叉验证评估的错误率的阈值值。这个类存储阈值的尝试。如果用户要使用默认
创建对象----------Creating objects----------
new("thresholds")
new("thresholds")
Create an empty thresholds. The default thresholds values will be computed and this object updated as soon as it is linked in an assessment.
创建一个空的阈值。默认阈值将被计算和更新这个对象,只要它是在评估挂钩。
new("thresholds", optionValues)
new("thresholds", optionValues)
Create a thresholds, containing the thresholds values defined by optionValues. The slot noOfOptions is automatically updated.
创建一个阈值,包含阈值optionValues定义的值。槽noOfOptions会自动更新。
插槽----------Slots----------
optionValues: numeric Values of the thresholds, if
optionValues:numeric值的阈值,如果
noOfOptions: numeric Number of thresholds.
noOfOptions:numeric数的阈值。
延伸----------Extends----------
Class "featureSelectionOptions", directly.
类"featureSelectionOptions",直接。
方法----------Methods----------
getNoThresholds(thresholds) Retreive
getNoThresholds(thresholds)Retreive
getOptionValues(thresholds), getOptionValues(thresholds)<- Retreive
getOptionValues(thresholds),getOptionValues(thresholds)<-Retreive
作者(S)----------Author(s)----------
Camille Maumet
参见----------See Also----------
geneSubsets, assessment
geneSubsets,assessment
举例----------Examples----------
# Empty thresholds, the default values will be used when added to an assessment[空阈值,默认值将被添加到评估时使用]
emptThresholds <- new("thresholds")
getOptionValues(emptThresholds)
getNoThresholds(emptThresholds)
# Another thresholds[另一个阈值]
thresholds <- new("thresholds", optionValues=c(0,0.1,0.2,1,2))
getOptionValues(thresholds)
getNoThresholds(thresholds)
# Set the thresholds[设置阈值]
newThresholds <- c(0.1,0.2,0.5,0.6,1)
getOptionValues(thresholds) <- newThresholds
getOptionValues(thresholds)
getNoThresholds(thresholds)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|