-
Notifications
You must be signed in to change notification settings - Fork 4
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
Batches and multiprocess #6
base: main
Are you sure you want to change the base?
Conversation
Big ask, but can you try and rebase it on https://github.com/cms-patatrack/The-Optimizer/tree/split-objective? |
@rsreds hopefully it's done! |
Rebase on main, I pulled the changes in the split-objective branch. If you feel that the "default" objective should behave as a batch=1 then BatchObjective is not needed. |
@rsreds Ok, I'll rebase on main, and I agree, we can keep the two separated for now! |
@rsreds ok I think I rebased it. I just have to fix |
* First implementation of FileManager * Fix tests for File Manager * Fix examples * Changed module name to snake_case * Format and lint * Format and lint * Changed FileManager to static class * Delegate all IO to FileManager * Update example to previous commit
* First implementation of FileManager * Fix tests for File Manager * Fix examples * Changed module name to snake_case * Format and lint * Format and lint * Changed FileManager to static class * Delegate all IO to FileManager * Update example to previous commit
d30ba76
to
dbfd03a
Compare
@rsreds Almost done, I just rebased, going to do some tests to check if everything works fine after the rebase |
@waredjeb did you test it? Can we fix the conflicts and merge? |
698ca99
to
44acf9d
Compare
This is a first draft to run the optimizer in batches and use multiprocess to process each batch separately. This setup was needed for start looking at how we can do the same thing but using HTCondor instead of the local machine.
I am opening the PR mostly for suggestion, I leave it as draft
Little changes are needed in the user interface, below an example
The
reco_and_validate
function would need an additional parameter to write the results on different files for each process.MOPSO initialization: additional parameter to set the number of batches