Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1466)

Unified Diff: components/ntp_snippets/user_classifier.h

Issue 2358983003: Making UserClassifier configurable by variation parameters (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/ntp_snippets/user_classifier.h
diff --git a/components/ntp_snippets/user_classifier.h b/components/ntp_snippets/user_classifier.h
index 9ce1c4a3463db9e1d8ac51e0db9cfc8af86745f9..3cdd227edc9c1f3e34e3aa2028683821e80341dc 100644
--- a/components/ntp_snippets/user_classifier.h
+++ b/components/ntp_snippets/user_classifier.h
@@ -91,7 +91,16 @@ class UserClassifier {
void ClearMetricValue(Metric metric);
PrefService* pref_service_;
+
+ // Params of the metric.
const double discount_rate_per_hour_;
+ const double min_hours_;
+ const double max_hours_;
+
+ // Params of the classification.
+ const double active_consumer_scrolls_at_least_once_per_hours_;
+ const double active_consumer_opens_ntp_at_least_once_per_hours_;
Marc Treib 2016/09/22 12:29:06 I first wanted to say "s/consumer/user/ to be cons
jkrcal 2016/09/22 13:26:15 Well, I wanted to be on the safe side and have mor
+ const double rare_user_opens_ntp_at_most_once_per_hours_;
DISALLOW_COPY_AND_ASSIGN(UserClassifier);
};
« no previous file with comments | « no previous file | components/ntp_snippets/user_classifier.cc » ('j') | components/ntp_snippets/user_classifier.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698