找回密码
 注册
查看: 659|回复: 0

R语言 Rmagpie包 setFeatureSelectionOptions-methods()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-26 13:02:21 | 显示全部楼层 |阅读模式
setFeatureSelectionOptions-methods(Rmagpie)
setFeatureSelectionOptions-methods()所属R语言包:Rmagpie

                                        getFeatureSelectionOptions<- Method to modify the attributes of a featureSelectionOptions from an assessment
                                         getFeatureSelectionOptions < - 从评估一个featureSelectionOptions的属性修改方法

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

This method provides an easy interface to modify the attributes of the object of class featureSelectionOptions related to a particular assessment, directly from this object assessment. The argument topic specifies which part of the featureSelectionOptions is of interest. This method is only available none of the one-layer CV or two-layers CV have been performed and the final classifier has not been determined yet.
这种方法提供了一个简单的界面修改一个特定的评估,直接从该对象的评估,有关的类featureSelectionOptions对象的属性。参数topic指定的featureSelectionOptions的一部分利益。这种方法是唯一的一个层简历或两个层CV已执行尚未确定最终分类。


参数----------Arguments----------

参数:object
Object of class assessment. Object assessment of interest
Object of class assessment。感兴趣的对象评估


参数:topic
character. Optional argument that specifies which attribute of the featureSelectionOptions must be replaced, the possible values are: "optionValues" (slot optionValues of the featureSelectionOptions), "noOfOptions" (slot noOfOptions of the featureSelectionOptions), if the featureSelectionOptions object is an object of class geneSubsets, then the following values are also available for the argument topic  "subsetsSizes" (slot optionValues of the geneSubsets), "noModels" (slot noOfOptions of the geneSubsets), "maxSubsetSize" (slot maxSelectedFeatures of the geneSubsets), "speed" (slot speed of the featureSelectionOptions), if the featureSelectionOptions object is an object of class thresholds, then the following values are also available for the argument topic  "thresholds" (slot optionValues of the object thresholds), "noThresholds" (slot noOfOptions of the object thresholds)  if the topic is missing then the whole featureSelectionOptions object is replaced.
character。可选参数,指定属性的featureSelectionOptions必须更换,可能的值是:"optionValues"(插槽optionValues的featureSelectionOptions的),"noOfOptions"(槽noOfOptions的featureSelectionOptions ),,如果featureSelectionOptions对象是一个类的对象geneSubsets,然后下面的值也可用参数topic"subsetsSizes"(槽optionValues的geneSubsets), "noModels"(槽noOfOptions的geneSubsets的),"maxSubsetSize"(槽maxSelectedFeatures的geneSubsets的),"speed"(槽speed的featureSelectionOptions的), ,如果featureSelectionOptions对象是一个类的对象thresholds,然后下面的值也为参数topic"thresholds"(槽optionValues对象的阈值),"noThresholds"(noOfOptions对象的阈值),如果插槽topic失踪,然后被替换的整体featureSelectionOptions对象。


值----------Value----------

The methods modifies the object of class assessment and returned the slot modified accordingly to the request provided by topic.
该方法修改评估类的对象,并返回相应的修改要求提供topic插槽。

If topic is missing object of class featureSelectionOptions featureSelectionOptions corresponding to the assessment is replaced by value.
如果topicobject of class featureSelectionOptionsfeatureSelectionOptions相应的评估是由value取代。

If topic is "optionValues" numeric Slot optionValues of the featureSelectionOptions is replaced by value.
如果topic是"optionValues"numeric槽optionValues的featureSelectionOptions,value取代。

If topic is "noOfOptions" numeric Slot noOfOptions of the featureSelectionOptions is replaced by value.
如果topic是“noOfOptions”numeric老虎noOfOptions的featureSelectionOptions,由value取代。

If object is of class geneSubsets and topic is "maxSubsetSize" numeric Slot maxSubsetSize of the geneSubsets is replaced by value.
如果object类geneSubsets和topic是“maxSubsetSize”numeric老虎maxSubsetSize的geneSubsets,由value取代。

If object is of class geneSubsets and topic is "subsetsSizes" numeric Slot optionValues of the geneSubsets is replaced by value.
如果object类geneSubsets和topic是“subsetsSizes”numeric老虎optionValues的geneSubsets,由value取代。

If object is of class geneSubsets and topic is "noModels" numericSlot noOfOptions  of the geneSubsets is replaced by value.
如果object类geneSubsets和topic是“noModels”numeric老虎noOfOptions的geneSubsets,由value取代。

If object is of class geneSubsets and topic is "speed" numeric Slot speed  of the geneSubsets is replaced by value.
如果object类geneSubsets和topic是“速度”numeric老虎speed的geneSubsets,value取代。

If object is of class thresholds and topic is "thresholds" numeric Slot optionValues of the object of class thresholds is replaced by value.
object如果类thresholds和topic是“阈值”numeric槽optionValues类阈值的对象换成value 。

If object is of class thresholds and topic is "noThresholds" numeric Slot noOfOptions of the object of class thresholds is replaced by value.
如果object类thresholds和topic是“noThresholds的”numeric老虎noOfOptions类阈值的对象是由value取代 。


方法----------Methods----------




object = "assessment" The method is only applicable on objects of class
对象=“评估”的方法只适用于类对象


作者(S)----------Author(s)----------


Camille Maumet



参见----------See Also----------

featureSelectionOptions, assessment
featureSelectionOptions,assessment


举例----------Examples----------



# With an assessment using RFE[使用RFE与评估]
data('vV70genesDataset')

mySubsets <- new("geneSubsets", optionValues=c(1,2,3,4,5,6))
myExpe <- new("assessment", dataset=vV70genes,
                                   noFolds1stLayer=10,
                                   noFolds2ndLayer=9,
                                   classifierName="svm",
                                   typeFoldCreation="original",
                                   svmKernel="linear",
                                   noOfRepeat=2,
                                   featureSelectionOptions=mySubsets)

# Modify the size of the biggest subset[修改的规模最大的子集]
getFeatureSelectionOptions(myExpe, topic='maxSubsetSize') <- 70
getFeatureSelectionOptions(myExpe, topic='maxSubsetSize')
# Modify all the sizes of subsets[修改子集的所有大小]
getFeatureSelectionOptions(myExpe, topic='subsetsSizes') <- c(1,5,10,25,30)
getFeatureSelectionOptions(myExpe, topic='subsetsSizes')
# Modify the speed[修改速度]
getFeatureSelectionOptions(myExpe, topic='speed') <- 'slow'
getFeatureSelectionOptions(myExpe, topic='speed')
# Modify the entire geneSubsets[修改整个geneSubsets“]
getFeatureSelectionOptions(myExpe) <- mySubsets
getFeatureSelectionOptions(myExpe, topic='maxSubsetSize')
getFeatureSelectionOptions(myExpe, topic='subsetsSizes')
getFeatureSelectionOptions(myExpe, topic='speed')
getFeatureSelectionOptions(myExpe, topic='noModels')


# With an assessment using NSC as a feature selection method[国科会作为特征选择方法与评估]
myThresholds <- new("thresholds", optionValues=c(0.1,0.2,0.3))
myExpe2 <- new("assessment", dataset=vV70genes,
                                   noFolds1stLayer=10,
                                   noFolds2ndLayer=9,
                                   classifierName="nsc",
                                   featureSelectionMethod='nsc',
                                   typeFoldCreation="original",
                                   svmKernel="linear",
                                   noOfRepeat=2,
                                   featureSelectionOptions=myThresholds)

otherThresholds <- new("thresholds", optionValues=c(0,0.5,1,1.5,2,2.5,3))
# Modify the whole object 'featureSelectionOptions' (an object of class thresholds)[修改的整个对象featureSelectionOptions的(类阈值的对象)]
getFeatureSelectionOptions(myExpe2) <- otherThresholds
getFeatureSelectionOptions(myExpe2, topic='thresholds')
getFeatureSelectionOptions(myExpe2, topic='noThresholds')

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-1-27 12:41 , Processed in 0.020935 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表