-
Notifications
You must be signed in to change notification settings - Fork 193
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
Fix agent-mission combination #1868
Conversation
smarts/core/utils/math.py
Outdated
len(first_group) <= len(second_group) the value is padded. | ||
|
||
padded_product('ab', '123') -> a1 b2 a1 b3 a2 b1 a2 b3 a3 b1 a3 b2 | ||
padded_product('ab', '1', default="k") -> a1 bk ak b1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment might be a bit misleading
- Should it be called
ordered_combinations
instead ofpadded_product
? - From the comment it looks like it returns a linear sequence rather than a sequence of products
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have clarified the utility and return values.
It should return groups of pairs, where the pairs use only unique indices from the contributor sequences, within each resulting group.
Co-authored-by: Saul Field <[email protected]> Co-authored-by: adai <[email protected]>
This is intended to ensure that agent and mission combinations are unique and viable across resets.