aggregator(Biobase)
aggregator()所属R语言包:Biobase
A Simple Class for Aggregators
一类简单的聚合
译者:生物统计家园网 机器人LoveR
描述----------Description----------
A class of objects designed to help aggregate calculations over an iterative computation. The aggregator consists of three objects. An environment to hold the values. A function that sets up an initial value the first time an object is seen. An aggregate function that increments the value of an object
A类,旨在帮助超过一个迭代计算聚合计算的对象。汇集包括三个对象。的环境下举行的价值观。一个功能,设置了一个初始值第一次看到一个对象。聚合函数,增加值对象
Details
详情----------Details----------
This class is used to help aggregate different values over function calls. A very simple example is to use leave one out cross-validation for prediction. At each stage we first perform feature selection and then cross-validate. To keep track of how often each feature is selected we can use an aggregator. At the end of the cross-validation we can extract the names of the features chosen from aggenv.
这个类是用来帮助函数调用的聚合不同的价值观。一个很简单的例子是用留一交叉验证的预测。在每一个阶段,我们首先进行功能选择,然后交叉验证。保持通常每个功能如何被选中的轨道,我们可以使用一个聚合。在交叉验证中,我们可以提取从aggenv选择功能的名称。
创建对象----------Creating Objects----------
new('aggregator', aggenv = [environment], initfun = [function], aggfun = [function])
new('aggregator', aggenv = [environment], initfun = [function], aggfun = [function])
插槽----------Slots----------
aggenv: Object of class 'environment', holds the values between iterations
aggenv:类环境的对象,持有迭代之间的值
initfun: Object of class 'function' specifies how to initialize the value for a name the first time it is encountered
initfun:“功能”类的对象指定如何初始化一个名字的价值,这是第一次遇到
aggfun: Object of class 'function' used to increment (or perform any other function) on a name
aggfun上一个名字:对象类的功能,用于增加(或执行任何其他功能)
方法----------Methods----------
aggenv(aggregator): Used to access the environment of the aggregator
aggenv(aggregator):用于访问聚合环境
aggfun(aggregator): Used to access the function that aggregates
aggfun(aggregator):用于访问功能聚合
initfun(aggregator): Used to access the initializer function
initfun(aggregator):用于访问初始化函数
参见----------See Also----------
Aggregate
Aggregate
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|