summaryrefslogtreecommitdiff
path: root/linear.py
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2016-02-23 15:43:19 +0100
committerschneefux <schneefux+commit@schneefux.xyz>2016-02-23 15:43:19 +0100
commit267c0b610031c499539d5d1fcceb1b3846b7748c (patch)
treebc9351a217d4f5810e818c96fb0b6a4a9d9a9529 /linear.py
parent56eeb05b4394c9c420932bea254dcfc813092d45 (diff)
downloadboston-neuralnet-267c0b610031c499539d5d1fcceb1b3846b7748c.tar.gz
boston-neuralnet-267c0b610031c499539d5d1fcceb1b3846b7748c.zip
MSE/diff falsch bestimmt :o
Diffstat (limited to 'linear.py')
-rw-r--r--linear.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/linear.py b/linear.py
index 36ef411..f6d1568 100644
--- a/linear.py
+++ b/linear.py
@@ -15,6 +15,10 @@ model = LinearRegression()
model.fit(data.data, data.target)
p=model.predict(X_test)
+print(p)
+print('diff')
+print('')
+print(y_test - p)
squares=[]
for n in range(len(p)):
squares.append((y_test[n] - p[n])**2)