cyrilzhang commited on
Commit
7945e24
·
1 Parent(s): e5af3c1

remove silly code

Browse files
Files changed (1) hide show
  1. automata.py +2 -4
automata.py CHANGED
@@ -742,11 +742,9 @@ class PermutationResetSampler(AutomatonSampler):
742
  x = self.np_rng.choice(range(self.n_generators), p=self.perm_probs, size=T) + self.vocab_size
743
 
744
  i = 0
745
- reset_in = 0 # always start with reset
746
  while i < T:
747
- if reset_in == 0:
748
- x[i] = self.np_rng.choice(range(self.vocab_size))
749
- i += self.np_rng.choice(self.lags)
750
 
751
  return x, self.f(x)
752
 
 
742
  x = self.np_rng.choice(range(self.n_generators), p=self.perm_probs, size=T) + self.vocab_size
743
 
744
  i = 0
 
745
  while i < T:
746
+ x[i] = self.np_rng.choice(range(self.vocab_size))
747
+ i += self.np_rng.choice(self.lags)
 
748
 
749
  return x, self.f(x)
750