rfho/datasets.py
def generate_visiting_scheme(self):
        """
        Generates and stores example visiting scheme, as a numpy array of integers.

        :return: self
        """

        def all_indices_shuffled():
            _res = list(range(self.dataset.num_examples))
            np.random.shuffle(_res)
            return _res

        # noinspection PyUnusedLocal
        self.training_schedule = np.concatenate([all_indices_shuffled()
                                                 for _ in range(self.epochs or 1)])
        return self

        Generates and stores example visiting scheme, as a numpy array of integers.

        :return: self
        
Generates and stores example visiting scheme, as a numpy array of integers.
Generates and stores example visiting scheme as a numpy array of integers .
def generate_visiting_scheme(self):
        def all_indices_shuffled():
            _res = list(range(self.dataset.num_examples))
            np.random.shuffle(_res)
            return _res
        self.training_schedule = np.concatenate([all_indices_shuffled()
                                                 for _ in range(self.epochs or 1)])
        return self
def generate_visiting_scheme ( self ) : def all_indices_shuffled ( ) : _res = list ( range ( self . dataset . num_examples ) ) np . random . shuffle ( _res ) return _res self . training_schedule = np . concatenate ( [ all_indices_shuffled ( ) for _ in range ( self . epochs or 1 ) ] ) return self
Generates and stores example visiting scheme, as a numpy array of integers.
Generates and stores example visiting scheme as a numpy array of integers .
"""
        Generates and stores example visiting scheme, as a numpy array of integers.

        :return: self
        """ # noinspection PyUnusedLocal
None
self