data_utils.py
def preprocess_train(self):
        """preprocess training data, constructing train loaders
        """
        self.train_loaders = {}
        self.train_dataset_sizes = {}
        self.train_class_sizes = {}
        self.client_list = []
        
        for dataset in self.datasets:
            self.client_list.append(dataset)
          
            loader, image_dataset = self.preprocess_one_train_dataset(dataset)

            self.train_dataset_sizes[dataset] = len(image_dataset)
            self.train_class_sizes[dataset] = len(image_dataset.classes)
            self.train_loaders[dataset] = loader
            
        print('Train dataset sizes:', self.train_dataset_sizes)
        print('Train class sizes:', self.train_class_sizes)
preprocess training data, constructing train loaders
        
preprocess training data, constructing train loaders
preprocess training data constructing train loaders
def preprocess_train(self):
        self.train_loaders = {}
        self.train_dataset_sizes = {}
        self.train_class_sizes = {}
        self.client_list = []
        for dataset in self.datasets:
            self.client_list.append(dataset)
            loader, image_dataset = self.preprocess_one_train_dataset(dataset)
            self.train_dataset_sizes[dataset] = len(image_dataset)
            self.train_class_sizes[dataset] = len(image_dataset.classes)
            self.train_loaders[dataset] = loader
        print('Train dataset sizes:', self.train_dataset_sizes)
        print('Train class sizes:', self.train_class_sizes)
def preprocess_train ( self ) : self . train_loaders = { } self . train_dataset_sizes = { } self . train_class_sizes = { } self . client_list = [ ] for dataset in self . datasets : self . client_list . append ( dataset ) loader , image_dataset = self . preprocess_one_train_dataset ( dataset ) self . train_dataset_sizes [ dataset ] = len ( image_dataset ) self . train_class_sizes [ dataset ] = len ( image_dataset . classes ) self . train_loaders [ dataset ] = loader print ( 'Train dataset sizes:' , self . train_dataset_sizes ) print ( 'Train class sizes:' , self . train_class_sizes )
preprocess training data, constructing train loaders
preprocess training data constructing train loaders
"""preprocess training data, constructing train loaders
        """
self