diff linear_regression.py @ 431:0f8c81b0776d

Adding file make_test_datasets to host simple data-generating processes to create artificial datasets meant to test various learning algorithms.
author Yoshua Bengio <bengioy@iro.umontreal.ca>
date Tue, 29 Jul 2008 10:19:25 -0400
parents fa4a5fee53ce
children 8e4d2ebd816a
line wrap: on
line diff
--- a/linear_regression.py	Tue Jul 29 09:36:09 2008 -0400
+++ b/linear_regression.py	Tue Jul 29 10:19:25 2008 -0400
@@ -181,6 +181,10 @@
             return ds
         
 
+def linear_predictor(inputs,params,*otherargs):
+  p = LinearPredictor(params)
+  return p.compute_outputs(inputs)
+
 #TODO : an online version
 class OnlineLinearRegression(OnlineLearningAlgorithm):
     """