diff algorithms/logistic_regression.py @ 501:4fb6f7320518

N-class logistic regression top-layer works
author Joseph Turian <turian@gmail.com>
date Tue, 28 Oct 2008 13:54:01 -0400
parents a419edf4e06c
children 17945defd813
line wrap: on
line diff
--- a/algorithms/logistic_regression.py	Tue Oct 28 13:36:27 2008 -0400
+++ b/algorithms/logistic_regression.py	Tue Oct 28 13:54:01 2008 -0400
@@ -8,8 +8,11 @@
 import numpy as N
 
 class LogRegInstanceType(module.FancyModuleInstance):
-    def initialize(self, n_in, n_out=1, rng=N.random):
+    def initialize(self, n_in, n_out=1, rng=N.random, seed=None):
         #self.component is the LogisticRegressionTemplate instance that built this guy.
+        """
+        @todo: Remove seed. Used only to keep Stacker happy.
+        """
 
         self.w = N.zeros((n_in, n_out))
         self.b = N.zeros(n_out)