diff algorithms/logistic_regression.py @ 476:8fcd0f3d9a17

added a few algorithms
author Olivier Breuleux <breuleuo@iro.umontreal.ca>
date Mon, 27 Oct 2008 17:26:00 -0400
parents 31acd42b2b0b
children 180d125dc7e2
line wrap: on
line diff
--- a/algorithms/logistic_regression.py	Thu Oct 23 18:06:21 2008 -0400
+++ b/algorithms/logistic_regression.py	Mon Oct 27 17:26:00 2008 -0400
@@ -10,7 +10,7 @@
 
 class Module_Nclass(module.FancyModule):
     class InstanceType(module.FancyModuleInstance):
-        def initialize(self, n_in, n_out):
+        def initialize(self, n_in, n_out, rng=N.random):
             #self.component is the LogisticRegressionTemplate instance that built this guy.
 
             self.w = N.zeros((n_in, n_out))