From 3648b00de140051ef8b74310eb525d67bb66a2f6 Mon Sep 17 00:00:00 2001 From: tanfei Date: Thu, 26 Dec 2013 14:19:30 +0800 Subject: [PATCH] Update adpredictor.py --- adpredictor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adpredictor.py b/adpredictor.py index 90b4805..5a55111 100644 --- a/adpredictor.py +++ b/adpredictor.py @@ -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)