def resample_dataset(self, arr, weights, sample_fraction=1.0,
                         rng_seed=None):
        idxs = dtu.resample_data(arr, weights, sample_fraction=sample_fraction,
                                 rng_seed=rng_seed)
        self.X = self.X[idxs]
        self.y = self.y[idxs]
        print("[datumio] resampling dataset to len(X) = %s" % len(self.X))
        print("[datumio] ... Note: This is sampled with replacement. An "
              "epoch no longer means a pass through the dataset.")
        return idxs
For the current implementation, the sequence length
dataset/ETHPy150Open longubu/datumio/datumio/datagen.py/BaseGenerator.resample_dataset--crossover with--dataset/ETHPy150Open pybrain/pybrain/pybrain/structure/networks/bidirectional.py/BidirectionalNetwork.__init__