hongzimao / pensieve

Neural Adaptive Video Streaming with Pensieve (SIGCOMM '17)
http://web.mit.edu/pensieve/
MIT License
516 stars 279 forks source link

fixed_env vs env #145

Open ahmad-hl opened 2 years ago

ahmad-hl commented 2 years ago

What is the difference between env.py and fixed_env.py? I feel they are doing the same job!

hongzimao commented 2 years ago

Doing a diff env.py fixed_env.py you will see something like

33c31
<         self.trace_idx = np.random.randint(len(self.all_cooked_time))
---
>         self.trace_idx = 0
36a35
>         self.mahimahi_start_ptr = 1
39c38
<         self.mahimahi_ptr = np.random.randint(1, len(self.cooked_bw))
---
>         self.mahimahi_ptr = 1

fixed_env.py is loading traces sequentially in order. It's just for easier testing and comparing results after training.