Skip to content
This repository has been archived by the owner on Jan 1, 2024. It is now read-only.

Commit

Permalink
Fix score method name bayes_bandit_score
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur Xaud authored Sep 7, 2016
1 parent c4e4509 commit d65076d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vanity/templates/_ab_test.erb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<td class="value"><%= I18n.t 'vanity.converted', :count=>alt.converted %></td>
<td>
<%= "%.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 %>
</td>
<% if experiment.enabled? && experiment.active? && respond_to?(:url_for) %>
Expand Down

0 comments on commit d65076d

Please sign in to comment.