cyrilzhang
commited on
Commit
·
6bdd70f
1
Parent(s):
be8b808
Update automata.py
Browse files- automata.py +4 -0
automata.py
CHANGED
@@ -137,6 +137,10 @@ class FlipFlopSampler(AutomatonSampler):
|
|
137 |
self.name = 'flipflop'
|
138 |
self.data_config = data_config
|
139 |
|
|
|
|
|
|
|
|
|
140 |
self.n_actions = self.n_states + 1
|
141 |
self.transition = np.array([list(range(self.n_actions))] + [[i+1]*self.n_actions for i in range(self.n_states)]).T
|
142 |
|
|
|
137 |
self.name = 'flipflop'
|
138 |
self.data_config = data_config
|
139 |
|
140 |
+
if 'n' not in data_config:
|
141 |
+
data_config['n'] = 2
|
142 |
+
|
143 |
+
self.n_states = data_config['n']
|
144 |
self.n_actions = self.n_states + 1
|
145 |
self.transition = np.array([list(range(self.n_actions))] + [[i+1]*self.n_actions for i in range(self.n_states)]).T
|
146 |
|