rfaulkner / wikipedia_user_metrics

Wikimedia Foundation E3 Team Analysis Code
Other
9 stars 5 forks source link

API. Flag in the raw response users with undefined values #37

Open dartar opened 11 years ago

dartar commented 11 years ago

Metrics involving a t parameter defining a lag since registration may fail to be computed depending on the age of the account. For example, if the difference between the time of the time of a request and the user registration time is smaller than t for the threshold metric, the API won't be able to compute the value of the metric for that user (technically, this is a right-censored observation).

To account for these cases, the API should return a -1 value for these users in the raw response and return the total number of censored observations in the aggregate response.

dartar commented 11 years ago

Ported to bugzilla: https://bugzilla.wikimedia.org/show_bug.cgi?id=47230