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

ModuleSet.calculateEntropy() #23

Open
small-pineapple opened this issue Dec 23, 2024 · 2 comments
Open

ModuleSet.calculateEntropy() #23

small-pineapple opened this issue Dec 23, 2024 · 2 comments

Comments

@small-pineapple
Copy link

small-pineapple commented Dec 23, 2024

It's return is "-1f / total * entropySum + Mathf.Log(total);"
What does this mean? Normalization?
The final effect will be better if just use "-1f * entropySum" or "entropySum", the result generated by normalized version is too flat in height

@marian42
Copy link
Owner

marian42 commented Jan 8, 2025

This formula for entropy is a bit counter intuitive, but it can be derived like this:

image

That being said, you don't have to use entropy, if you get better looking results with a different formula, that's great!

@small-pineapple
Copy link
Author

small-pineapple commented Jan 10, 2025

So ModulePrototype.Probability is relative probability or weight.
However, the entropy value is dominated by the size of p (ModuleSet.Count), those entropies should have been normalized before compare.

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