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

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

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

                                        getFeatureSelectionOptions Method to access the attributes of a featureSelectionOptions from an assessment
                                         getFeatureSelectionOptions访问的一个featureSelectionOptions的属性评估方法

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

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

This method provides an easy interface to access 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.
这种方法提供了一个简单的接口来访问一个特定的评估,直接从该对象的评估,有关的类featureSelectionOptions对象的属性。参数topic指定的featureSelectionOptions的一部分利益。


参数----------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 is requested, the possible values are: "optionValues" (Access the slot optionValues of the featureSelectionOptions), "noOfOptions" (Access the 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" (Access the slot optionValues of the geneSubsets),  "noModels" (Access the slot noOfOptions of the geneSubsets),        "maxSubsetSize" (Access the slot maxSelectedFeatures of the geneSubsets), "speed" (Access the 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" (Access the slot optionValues of the object thresholds),  "noThresholds" (Access the slot noOfOptions of the object thresholds)  if the topic is missing then the whole featureSelectionOptions object is returned.
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 value returned by the method changes accordingly to the 'topic' argument.
该方法返回值的变化相应的“主题”的说法。

If topic is missing object of class featureSelectionOptions the featureSelectionOptions corresponding to the assessment of interest
如果topicobject of class featureSelectionOptions相应的featureSelectionOptions,利益的评估

If topic is "optionValues" numeric corresponding to the optionValues of the featureSelectionOptions
如果topic的是“optionValues”numericoptionValues的featureSelectionOptions

If topic is "noOfOptions" numeric corresponding to the noOfOptions of the featureSelectionOptions
如果topic的是“noOfOptions”numericnoOfOptions的featureSelectionOptions

If object is of class geneSubsets and topic is "maxSubsetSize" numeric corresponding to the maxSubsetSize  of the geneSubsets
object如果类geneSubsets和topic是“maxSubsetSize”numeric相应的的maxSubsetSizegeneSubsets

If object is of class geneSubsets and topic is "subsetsSizes" numeric corresponding to the optionValues of the geneSubsets  
如果object类geneSubsets和topic“subsetsSizes”numericoptionValues的geneSubsets

If object is of class geneSubsets and topic is "noModels" numeric corresponding to the noOfOptions  of the geneSubsets
如果object类geneSubsets和topic“noModels”numericnoOfOptions的geneSubsets

If object is of class geneSubsets and topic is "speed" numeric corresponding to the speed  of the geneSubsets  
如果object类geneSubsets和topic是“速度”numeric相应到speed的,geneSubsets的

If object is of class thresholds and topic is "thresholds" numeric corresponding to the optionValues of the object of class thresholds  
如果object是类thresholds的和topic是“阈值”numeric对应的optionValues类阈值的对象

If object is of class thresholds and topic is "noThresholds" numeric corresponding to the noOfOptions of the object of class thresholds
如果object类thresholds和topic是“noThresholds”numeric相应noOfOptions类阈值的对象,


方法----------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与评估]
#dataPath &lt;- file.path("C:", "Documents and Settings", "c.maumet", "My Documents", "Programmation", "Sources", "SVN", "R package", "data")[数据通路(< -  file.path的“C:”,“文件和设置”,“c.maumet”,“我的文档”,“Programmation”,“源”,“SVN的”,“R包”,“数据” )]
#aDataset &lt;- new("dataset", dataId="vantVeer_70", dataPath=dataPath)[aDataset < - 新(“数据集”,“dataId =”vantVeer_70,数据通路=数据通路)]
#aDataset &lt;- loadData(aDataset)[aDataset < - 的LoadData(aDataset)]

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)

# Return the whole object 'featureSelectionOptions' (an object of class geneSusbsets)[返回整个对象featureSelectionOptions(类geneSusbsets的对象)]
getFeatureSelectionOptions(myExpe)
# Size of the biggest subset[规模最大的子集]
getFeatureSelectionOptions(myExpe, topic='maxSubsetSize')
# All sizes of subsets[所有尺寸的子集]
getFeatureSelectionOptions(myExpe, topic='subsetsSizes')
# Speed[速度]
getFeatureSelectionOptions(myExpe, topic='speed')
# Number of subsets[子集数]
getFeatureSelectionOptions(myExpe, topic='noModels') == getNoModels(mySubsets)

# 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)

# Return the whole object 'featureSelectionOptions' (an object of class geneSusbsets)[返回整个对象featureSelectionOptions(类geneSusbsets的对象)]
getFeatureSelectionOptions(myExpe2)
# vector of thresholds[阈值向量]
getFeatureSelectionOptions(myExpe2, topic='thresholds')
# Number of thresholds[阈值的数目]
getFeatureSelectionOptions(myExpe2, topic='noThresholds')

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-1-28 00:59 , Processed in 0.021810 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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