Skip to content

Commit

Permalink
Update adpredictor.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tanfei committed Dec 26, 2013
1 parent e6fe390 commit 3648b00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adpredictor.py
Expand Up @@ -38,7 +38,7 @@ def train(self, features, label):

y = util.label_to_float(label)
total_mean, total_variance = self._active_mean_variance(features)
v, w = util.gaussian_corrections(y * total_mean / total_variance)
v, w = util.gaussian_corrections(y * total_mean / np.sqrt(total_variance))

for feature in features:
weight = self._get_weight(feature)
Expand Down

0 comments on commit 3648b00

Please sign in to comment.