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); }
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); }