-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add automatic calibration #293
Conversation
…to config and tests, also refactor optimizers
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.
LGTM
optimization_manager_config = { | ||
"ms1_error": self.config["search_initial"]["initial_ms1_tolerance"], | ||
"ms2_error": self.config["search_initial"]["initial_ms2_tolerance"], | ||
"rt_error": self.config["search_initial"]["initial_rt_tolerance"], | ||
"mobility_error": self.config["search_initial"][ | ||
"initial_mobility_tolerance" | ||
], | ||
"column_type": "library", | ||
"num_candidates": self.config["search_initial"]["initial_num_candidates"], | ||
"classifier_version": -1, | ||
"fwhm_rt": self.config["optimization_manager"]["fwhm_rt"], | ||
"fwhm_mobility": self.config["optimization_manager"]["fwhm_mobility"], | ||
"score_cutoff": self.config["optimization_manager"]["score_cutoff"], | ||
} | ||
self._optimization_manager = manager.OptimizationManager( | ||
self.config["optimization_manager"], | ||
optimization_manager_config, |
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 seems to me like OptimizationManager
-specific logic that is outside of OptimizationManager
:-)
suggestion:
pass the self.config
to the OptimizationManager
and do this mapping during initialization. Also, I suggest separating between constant values (probable fwhm_rt
does not change?) and dynamic values (e.g. classifier_version)
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.
Yes, that is true. I'll change it.
I think everything in the optimization manager should change – fwhm_rt for instance is updated during calibration.
No description provided.