changeset 473:31acd42b2b0b

__instance_type__ -> InstanceType
author James Bergstra <bergstrj@iro.umontreal.ca>
date Thu, 23 Oct 2008 18:05:09 -0400
parents 69c800af1370
children 40c8a46b3da7
files algorithms/logistic_regression.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/algorithms/logistic_regression.py	Thu Oct 23 13:26:42 2008 -0400
+++ b/algorithms/logistic_regression.py	Thu Oct 23 18:05:09 2008 -0400
@@ -9,7 +9,7 @@
 
 
 class Module_Nclass(module.FancyModule):
-    class __instance_type__(module.FancyModuleInstance):
+    class InstanceType(module.FancyModuleInstance):
         def initialize(self, n_in, n_out):
             #self.component is the LogisticRegressionTemplate instance that built this guy.
 
@@ -48,7 +48,7 @@
                     updates = dict((p, p - self.lr * g) for p, g in zip(self.params, gparams)))
 
 class Module(module.FancyModule):
-    class __instance_type__(module.FancyModuleInstance):
+    class InstanceType(module.FancyModuleInstance):
         def initialize(self, n_in):
             #self.component is the LogisticRegressionTemplate instance that built this guy.