-
Notifications
You must be signed in to change notification settings - Fork 2
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
Simplify the interface to linking/core/threshold.py #174
Labels
Milestone
Comments
riley-harper
added a commit
that referenced
this issue
Dec 5, 2024
riley-harper
added a commit
that referenced
this issue
Dec 5, 2024
riley-harper
added a commit
that referenced
this issue
Dec 5, 2024
…he whole training config This makes it clear which part of the config predict_with_thresholds() is using and makes it easier to call. It also means that predict_with_thresholds() does not need to know about the structure of the config.
riley-harper
added a commit
that referenced
this issue
Dec 5, 2024
riley-harper
added a commit
that referenced
this issue
Dec 5, 2024
This prevents a possible SQL injection error by setting alpha_threshold to something weird. It's also a bit easier to read and work with in my experience. It's more composable since you can build up the expression instead of having to write all of the SQL at once.
riley-harper
added a commit
that referenced
this issue
Dec 5, 2024
riley-harper
added a commit
that referenced
this issue
Dec 6, 2024
This is just a bit cleaner to read, and makes clear the names of the columns that we're adding. We can't select ratio and prediction at once because prediction depends on ratio.
riley-harper
added a commit
that referenced
this issue
Dec 6, 2024
riley-harper
added a commit
that referenced
this issue
Dec 6, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Instead of accepting the entire training configuration in
predict_using_thresholds
, we would be better off just accepting a singledecision
argument, since that's the only thing that the function extracts from the configuration. This module would also be a great place to add type hints and improve comments and documentation.This is a breaking change since it changes one of the arguments of a function.
The text was updated successfully, but these errors were encountered: