Entering edit mode
Craddock, Richard C. CDC/NCID/VR CTR
▴
50
@craddock-richard-c-cdcncidvr-ctr-1816
Last seen 10.4 years ago
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