Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why choose the probability of the first four phases of a neighbor? #48

Open
twodog0508 opened this issue Oct 11, 2023 · 1 comment
Open

Comments

@twodog0508
Copy link

Sorry, I would like to ask for some advice。
In each step, the AC algorithm is used to obtain the probability of the latest 5 phases of the neighbor. Why remove the probability of the last phase?
code:
def update_fingerprint(self, policy):
for node_name, pi in zip(self.node_names, policy):
self.nodes[node_name].fingerprint = np.array(pi)[:-1]

@JamesPsh
Copy link

JamesPsh commented Jun 27, 2024

@twodog0508
Hi,

I wanted to share my thoughts on why the probability of the last phase is removed in the code you mentioned.

In algorithms, the sum of all action probabilities is always 1.
Removing one probability doesn't affect this sum.
This increases the efficiency of the algorithm and reduces unnecessary calculations.

By removing the last probability, the overall distribution remains unchanged, allowing the algorithm to work smoothly.

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

No branches or pull requests

2 participants