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
Make check in RSMTool more explicit #393
Comments
@aloukina perhaps what we should do here is to just delete the original coefficients file and print a warning saying that an old coefficients file was detected and removed? |
I am more in favor or raising an error and letting the user do the clean up: if there is indeed an old LR experiment there, there would be other files too: coefficients_scaled, _model_fit, _betas etc. If these stay, it can create a lot of confusion down the line. |
Another solution is if the user specifies |
The danger here is that we cannot really use |
Hmm, I am not sure I want to change the semantics of How about if I modify |
So keep the general current logic but make the code more readable by testing for the right thing, right? |
Yes! |
Yes, I like that! |
There's a currently a place in RSMTool where we raise a
ValueError
if a coefficients file already exists in the output directory. There's no documentation as to why this is being checked.From @aloukina, this is why we do this:
We should replace this roundabout check with a much more explicit check, e.g., simply testingwhether
predconfig.get_coefficients()
fails? That would make it much more readable.The text was updated successfully, but these errors were encountered: