(self)
return train_size + test_size
Number samples for this client.

        Return:
            int: Number of samples for this client
Number samples for this client.
Number samples for this client .
def num_samples(self):
        """Number samples for this client.

        Return:
            int: Number of samples for this client
        """
        train_size = 0
        if self.train_data is not None:
            train_size = len(self.train_data['y'])

        test_size = 0 
        if self.eval_data is not  None:
            test_size = len(self.eval_data['y'])
        return train_size + test_size
def num_samples ( self ) : train_size = 0 if self . train_data is not None : train_size = len ( self . train_data [ 'y' ] ) test_size = 0 if self . eval_data is not None : test_size = len ( self . eval_data [ 'y' ] ) return train_size + test_size