[BioC] Using aggregators

Craddock, Richard C. (CDC/CCID/NCZVED) (CTR) cmi5 at cdc.gov
Tue Oct 24 18:09:41 CEST 2006


Hello all,

I am having an issue with using an aggregator.  My goal is to perform
cross validation on several different datasets.  I would like to use an
aggregator to keep track of the results from a single dataset, but not
across datasets.  

Here is the code that I have written:

for(i in 1:niters)
{
    agg<-new("aggregator")
    fs<-fsCV( data[,i], gfun, class[,i], agg)
    rm( agg )
}

The problem is that every time I run the line agg<-new("aggregator") it
returns the old aggregator.  So I end up aggregating the results across
datasets, which I do not want to do.  

What am I missing here?  Is there a function for clearing the
aggregator?  I haven't been able to find one.

Thanks,
Cameron



More information about the Bioconductor mailing list