def generate(self):
        '''
        Generate noise samples.
        
        Returns:
            `np.ndarray` of samples.
        '''
        generated_arr = np.random.uniform(
            low=0.1,
            high=0.9,
            size=((self.__batch_size, self.__seq_len, self.__dim))
        )

        if self.noise_sampler is not None:
            self.noise_sampler.output_shape = generated_arr.shape
            generated_arr += self.noise_sampler.generate()

        return generated_arr
def generate ( self ) : generated_arr = np . random . uniform ( low = 0.1 , high = 0.9 , size = ( ( self . __batch_size , self . __seq_len , self . __dim ) ) ) if self . noise_sampler is not None : self . noise_sampler . output_shape = generated_arr . shape generated_arr += self . noise_sampler . generate ( ) return generated_arr
Generate noise samples.
        
        Returns:
            `np.ndarray` of samples.