From c4e4509d4982810e065574722a5523b6ddbec3b6 Mon Sep 17 00:00:00 2001 From: Arthur Xaud Date: Tue, 6 Sep 2016 21:18:43 -0300 Subject: [PATCH 1/2] Fix probability typo in _ab_test.erb --- lib/vanity/templates/_ab_test.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vanity/templates/_ab_test.erb b/lib/vanity/templates/_ab_test.erb index be6ec797..a6514348 100644 --- a/lib/vanity/templates/_ab_test.erb +++ b/lib/vanity/templates/_ab_test.erb @@ -18,7 +18,7 @@ <%= I18n.t 'vanity.converted', :count=>alt.converted %> <%= "%.1f%%" % [alt.conversion_rate * 100] %> - <%= I18n.t('vanity.best_alternative', :probabilty=>alt.probability.to_i) if score.method == :bayes_score %> + <%= I18n.t('vanity.best_alternative', :probability=>alt.probability.to_i) if score.method == :bayes_score %> <%= I18n.t('vanity.better_alternative_than', :probability=>alt.difference.to_i, :alternative=>score.least.name) if alt.difference && alt.difference >= 1 %> <% if experiment.enabled? && experiment.active? && respond_to?(:url_for) %> From d65076d3d2ae7604e788b6b180060a1de6409ddc Mon Sep 17 00:00:00 2001 From: Arthur Xaud Date: Tue, 6 Sep 2016 21:28:29 -0300 Subject: [PATCH 2/2] Fix score method name bayes_bandit_score --- lib/vanity/templates/_ab_test.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vanity/templates/_ab_test.erb b/lib/vanity/templates/_ab_test.erb index a6514348..e93431d2 100644 --- a/lib/vanity/templates/_ab_test.erb +++ b/lib/vanity/templates/_ab_test.erb @@ -18,7 +18,7 @@ <%= I18n.t 'vanity.converted', :count=>alt.converted %> <%= "%.1f%%" % [alt.conversion_rate * 100] %> - <%= I18n.t('vanity.best_alternative', :probability=>alt.probability.to_i) if score.method == :bayes_score %> + <%= I18n.t('vanity.best_alternative', :probability=>alt.probability.to_i) if score.method == :bayes_bandit_score %> <%= I18n.t('vanity.better_alternative_than', :probability=>alt.difference.to_i, :alternative=>score.least.name) if alt.difference && alt.difference >= 1 %> <% if experiment.enabled? && experiment.active? && respond_to?(:url_for) %>