-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
[solidago] feat: Asymetric uncertainty #1781
Conversation
negative_exponential_term = np.exp((normalized_r_ab - 1) * theta_ab) | ||
return np.where( | ||
np.abs(theta_ab) < EPSILON, | ||
1 / 2, |
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.
Probably log of 1/2 instead
if f(b, *args) == 0: | ||
return b | ||
if f(a, *args) * f(b, *args) > 0: | ||
raise ValueError("Function `f` should have opposite sign on bounds `a` and `b`") |
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.
optimize by not calling f(a) and f(b) twice
@@ -39,6 +53,64 @@ def Delta_theta(theta_ab): | |||
).sum() ** (-0.5) | |||
|
|||
|
|||
HIGH_LIKELIHOOD_RANGE_THRESHOLD = 1 |
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.
@lenhoanglnh Do you confirm the idea of using a Likelihood lower bound to compute the uncertainty interval, rather than a more standard 90% confidence interval?
indices_b, _r_ab = coord_to_subset[idx_a] | ||
indices_b, r_ab = coord_to_subset[idx_a] | ||
lower_bound, upper_bound = get_high_likelihood_range( | ||
continuous_bradley_terry_log_likelihood, |
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.
@lenhoanglnh When calculating the high likelihood range, should we include only the likelihood of observed comparisons, or also the prior/regularization (something like alpha * theta^2
)?
Replaced by #1973 |
#1780
Description
Uncertainty of individual scores should be asymmetric.
This PR updates the computation of individual scores for the Continuous Bradley Terry model in solidago using the method of "high likelihood range".
To-do
Checklist
❤️ Thank you for your contribution!