-
-
Notifications
You must be signed in to change notification settings - Fork 377
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 "contradiction index" metric #274
Milestone
Comments
umputun
added a commit
that referenced
this issue
Feb 10, 2019
umputun
added a commit
that referenced
this issue
Feb 10, 2019
I have added a new field Now we need UI support for this thing. I think all we need is:
|
controversy value calculated differently, similar to Reddit's version func (s *DataStore) controversy(ups, downs int) float64 {
if downs <= 0 || ups <= 0 {
return 0
}
magnitude := ups + downs
balance := float64(downs) / float64(ups)
if ups <= downs {
balance = float64(ups) / float64(downs)
}
return math.Pow(float64(magnitude), balance)
} |
ааа... присмотрелся, вы и так в ту сторону копнули |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Already we have one metric: difference between "voted for" and "voted against".
It would be interesting to have another metric: "contradiction index".
The calculation formula may be as follows:
difference = abs( voted_for - voted_against )
contradiction_index = ( voted_for + voted_against ) / ( difference == 0 ? 0.1 : difference )
The text was updated successfully, but these errors were encountered: