Edited to make AI work

Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
This commit is contained in:
Jeroen Oudshoorn
2023-07-24 19:47:15 +02:00
parent 702d32292f
commit 27da741005
3 changed files with 5 additions and 6 deletions

View File

@ -36,7 +36,7 @@ class Environment(gym.Env):
# see https://github.com/evilsocket/pwnagotchi/issues/583
self._supported_channels = agent.supported_channels()
self._extended_spectrum = any(ch > 140 for ch in self._supported_channels)
self._extended_spectrum = any(ch > 150 for ch in self._supported_channels)
self._histogram_size, self._observation_shape = featurizer.describe(self._extended_spectrum)
Environment.params += [
@ -147,4 +147,4 @@ class Environment(gym.Env):
for name, value in self.last['state'].items():
if 'histogram' in name:
logging.info(" %s" % name.replace('_histogram', ''))
self._render_histogram(value)
self._render_histogram(value)