Open moragab1993 opened 3 years ago
I also found the the smaller value of env.eng.get_average_travel_time()
of the episode don't mean the better result, so what does the env.eng.get_average_travel_time()
real stand for?
@moragab1993 can you post a link to the CBEngine code?
the CBEngine coda can be found here in the docker
/usr/local/lib/python3.7/dist-packages/CBEngine/envs/CBEngine.py
the reset function
def reset(self):
del self.eng
gc.collect()
self.eng = citypb.Engine(self.simulator_cfg_file, self.thread_num)
self.now_step = 0
self.vehicles.clear()
return self._get_observations(),self._get_info()
@moragab1993 That's only a thin wrapper. I mean the real source code of the engine (package citypb)
they did't provide the source code of citypb as it is only a build .so file
Thanks. I was hoping someone found the code online.
env.eng.get_average_travel_time() will return different values even if we do not change anything.
i notice that env.eng.get_average_travel_time() only return 0 at episode 0 but from episode 1 and so on it return a value
digging into the CBEngine and looking at how the reset function works, shouldn't it return zero at each new episode ?
thanks