Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

What is Reward? #11

Open
MinHongSun opened this issue May 13, 2022 · 1 comment
Open

What is Reward? #11

MinHongSun opened this issue May 13, 2022 · 1 comment

Comments

@MinHongSun
Copy link

Hello.
First of all, thank you for your public source.
I have a question.
I wonder what Reward means in this model.
Usually, the queue is Reward for other models, but I think this model is different.
What does Reward mean?

@TrinhTuanHung2021
Copy link

Hello. First of all, thank you for your public source. I have a question. I wonder what Reward means in this model. Usually, the queue is Reward for other models, but I think this model is different. What does Reward mean?

Hello. This is reward function

    def _get_reward(self):
        if self.time < 4:
            return 0

        self.r_w = 0.85 * self.waiting_time_float_av[-2] - self.waiting_time_float_av[-1]

        # if self.r_w < 0:
        #     self.r_w *= 1.5
        #
        # self.r_av.append(self.r_w)

        return self.r_w

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants