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

Optimize memory hog at combination creation + fix autopep8 issue on >= py3.10 #54

Merged
merged 7 commits into from
Oct 24, 2023

Conversation

miha-jenko
Copy link
Collaborator

No description provided.

@miha-jenko miha-jenko requested review from SkBlaz and bmramor October 24, 2023 12:40
@miha-jenko miha-jenko self-assigned this Oct 24, 2023
@SkBlaz
Copy link
Collaborator

SkBlaz commented Oct 24, 2023

@miha-jenko builds fail

@miha-jenko
Copy link
Collaborator Author

@miha-jenko builds fail

Thanks @SkBlaz , try now.

)
combinations += [(column, args.label_column) for column in rel_columns]
else:
_combinations = itertools.combinations_with_replacement(all_columns, 2)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could also just overwrite combinations in case target_ranking_only, this would remove the else part alltogether (and unburden the gc a bit I guess)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mypy checks prevented the commit.

@miha-jenko miha-jenko merged commit 78c205b into main Oct 24, 2023
5 checks passed
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

Successfully merging this pull request may close these issues.

2 participants