예제 #1
0
        public static SabotenCache PrefetchAll(this SabotenCache dataSample, TanukiTransformers tanukiTransformers)
        {
            for (int featureIndex = 0; featureIndex < dataSample.Data.Count(); featureIndex++)
            {
                dataSample = dataSample.Prefetch(featureIndex, tanukiTransformers);
            }

            return(dataSample);
        }
예제 #2
0
        private static SabotenCache PrefetchAll(this SabotenCache dataSample, ImmutableList <Tuple <Range, Converter <IEnumerable <double>, IEnumerable <double> > > > dataTransformers)
        {
            for (int featureIndex = 0; featureIndex < dataTransformers.Count(); featureIndex++)
            {
                dataSample = dataSample.Prefetch(featureIndex, dataTransformers[featureIndex]);
            }

            return(dataSample);
        }