should be regularizing m-mref

This commit is contained in:
Lindsey Heagy
2015-07-04 13:00:49 -07:00
parent 954cb2d7bc
commit f9f23dfd4b
+2 -2
View File
@@ -275,8 +275,8 @@ class Tikhonov(BaseRegularization):
@Utils.timeIt
def eval(self, m):
if self.smoothModel == True:
r1 = self.W * ( self.mapping * (m) )
r2 = self.Ws * ( self.mapping * (self.mref) )
r1 = self.W * ( self.mapping * (m- self.mref) )
r2 = self.Ws * ( self.mapping * (m - self.mref) )
return 0.5*(r1.dot(r1)+r2.dot(r2))
elif self.smoothModel == False:
r = self.W * ( self.mapping * (m - self.mref) )