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

adjust weight for atributes paramaters #3

Open
dpny518 opened this issue Oct 25, 2021 · 4 comments
Open

adjust weight for atributes paramaters #3

dpny518 opened this issue Oct 25, 2021 · 4 comments

Comments

@dpny518
Copy link

dpny518 commented Oct 25, 2021

Can you explain these parameters

                "att_chance": 1.0,
                "black_list_att": []
                
@kosmosmo
Copy link
Owner

"att_chance" is the weight, if you have 4 traits under the same type, each one of them are 1.0, that means you have 25% chance for getting each trait.
"black_list_att" is just for myself, you can ignore it.

@dpny518
Copy link
Author

dpny518 commented Oct 29, 2021

Thank you, so what is the range 0 to anything?
Lets say I have 4 objects a b c d
and I want a to be 50%, b to 40%, c to 9 % and d to 1 %
What would be the att_chance for each

@kosmosmo
Copy link
Owner

Thank you, so what is the range 0 to anything? Lets say I have 4 objects a b c d and I want a to be 50%, b to 40%, c to 9 % and d to 1 % What would be the att_chance for each

a: 50/(50+40+9+1) or 50 (since your weight can sum up to 100, so 50 will work as well)
b: 40/(50+40+9+1) or 40
c: 9/(50+40+9+1) or 9
d: 1/(50+40+9+1) or 1

@dpny518
Copy link
Author

dpny518 commented Nov 1, 2021

Do you think using % is much easier than weights?

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