Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #49671 > unrolled thread

Re: how to calculate reputation

Started byMark Janssen <dreamingforward@gmail.com>
First post2013-07-02 17:05 -0700
Last post2013-07-06 15:23 +0200
Articles 2 — 2 participants

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: how to calculate reputation Mark Janssen <dreamingforward@gmail.com> - 2013-07-02 17:05 -0700
    Re: how to calculate reputation DJC <djc@news.invalid> - 2013-07-06 15:23 +0200

#49671 — Re: how to calculate reputation

FromMark Janssen <dreamingforward@gmail.com>
Date2013-07-02 17:05 -0700
SubjectRe: how to calculate reputation
Message-ID<mailman.4137.1372809942.3114.python-list@python.org>
> Hi all, this seems to be quite stupid question but I am "confused"..
> We set the initial value to 0, +1 for up-vote and -1 for down-vote! nice.
>
> I have a list of bool values True, False (True for up vote, False for
> down-vote).. submitted by users.
>
> should I take True = +1, False=0  [or] True = +1, False=-1 ?? for adding
> all.
>
> I am missing something here.. and that's clear.. anyone please help me on
> it?

If False is representing a down-vote, like you say, then you have to
incorporate that information, in which case False=-1  ==> a user not
merely ignored another user, but marked him/her down.

MarkJ
Tacoma, Washington

[toc] | [next] | [standalone]


#50063

FromDJC <djc@news.invalid>
Date2013-07-06 15:23 +0200
Message-ID<kr95dr$3ep$1@dont-email.me>
In reply to#49671
On 03/07/13 02:05, Mark Janssen wrote:
>> Hi all, this seems to be quite stupid question but I am "confused"..
>> We set the initial value to 0, +1 for up-vote and -1 for down-vote! nice.
>>
>> I have a list of bool values True, False (True for up vote, False for
>> down-vote).. submitted by users.
>>
>> should I take True = +1, False=0  [or] True = +1, False=-1 ?? for adding
>> all.
>>
>> I am missing something here.. and that's clear.. anyone please help me on
>> it?
>
> If False is representing a down-vote, like you say, then you have to
> incorporate that information, in which case False=-1  ==> a user not
> merely ignored another user, but marked him/her down.


You could express the result as 'x out of y users up-voted this' where x 
= total true and y = x + total_false

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web