-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Experiments, parameters, and the CLI: remove comma-separated parsing #5302
Comments
One thing worth considering is that sticking with a key=value format might be the better choice if you do want to eventually use hydra. Since hydra expects key=value, if you use that you could potentially drop it in later without the change being breaking. Splitting on the first equals sign in a string should be much safer than the comma splitting that's happening now. >>> args = 'params.yaml:nested.param={"complex": "value with spaces, and commas", "query": "test == 3"}'
>>> param_name, _, param_value = args.partition('=')
>>> param_file, _, param_name = param_name.partition(':')
>>> param_file, param_name, param_value
('params.yaml', 'nested.param', '{"complex": "value with spaces, and commas", "query": "test == 3"}') if |
@sjawhar, great suggestion. The problem I see with it is that files other than |
Thanks for your diligence on this, @sjawhar ! Stepping back from Hydra integration, consistency and simplicity are important. @efiop mentioned that we should have a guide. Repeating the I suggested |
One other thing we should consider is that I think @dmpetrov @dberenbaum thoughts? |
Good point, @pmrowla. Some questions/thoughts:
|
@dberenbaum @pmrowla I think you might not be considering use cases outside a data scientist on their laptop. Being able to specify |
@sjawhar Good point. Having an option like I'm personally most convinced by 3, but I'm curious to hear what others think. |
@dberenbaum Especially now that the syntax has changed, I can definitely see changing the argument flag to something else, but I'm similarly stuck on what it should actually be 😆 |
Long term, the current thinking is that |
So the remaining options are:
|
@dberenbaum has any decision been made on this? |
Thanks for checking back on this, @pmrowla! Unless a better name comes to you suddenly, let's go with |
On it! |
Thanks, @sjawhar! Sorry for the delay here! |
Bringing this conversation over from Discord:
After feedback from @efiop and @dberenbaum, we thought a slightly different approach would be better so we could even get rid of the parsing of the equals sign:
A simple proof of concept is provided below:
I know there's #4883 for a full-on hydra approach, but what I'm suggesting is much simpler and actually reduces complexity. With 2.0 coming up and this being a breaking change, I thought now would be the perfect time to do it. I'm happy to work on this if there are no objections.
The text was updated successfully, but these errors were encountered: