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

Fix to issue #124 #125

Merged
merged 1 commit into from
May 16, 2022
Merged

Conversation

nightdr
Copy link

@nightdr nightdr commented May 16, 2022

I fixed the timeout issue in our source code and added more slack to cases where n<=1000 since ideally the timeout shouldn't be happening.

Also the provided string replacement code has a potential issue: say we have the model X_10 + X_1 with the mapping X_0: 'a', X_1: 'b', ... 'X_10': 'k', the provided code will turn X_10 + X_1 into b0 + b rather than the intended k + b since it will replace all X_1 instances with b. To fix this, I iterated through the variables in reversed order (see the commit). I remember seeing this code used in at least one other submission, so this might be an issue if methods are responsible for doing their own variable name replacement.

@lacava
Copy link
Member

lacava commented May 16, 2022

great, thanks. BTW, if you are able to specify a test_params dict in eval_kwargs that will shorten the CI time, please do so.

@lacava lacava merged commit f4653e6 into cavalab:Competition2022 May 16, 2022
@nightdr
Copy link
Author

nightdr commented May 16, 2022

sorry for the delayed response, busy day. If you would like, I can still add the test_params in another PR.

@lacava
Copy link
Member

lacava commented May 16, 2022 via email

@nightdr
Copy link
Author

nightdr commented May 16, 2022

sounds good, just added a new pull request and the CI times should be significantly shorter now.

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.

None yet

2 participants