diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2016-02-23 15:43:19 +0100 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2016-02-23 15:43:19 +0100 |
| commit | 267c0b610031c499539d5d1fcceb1b3846b7748c (patch) | |
| tree | bc9351a217d4f5810e818c96fb0b6a4a9d9a9529 /linear.py | |
| parent | 56eeb05b4394c9c420932bea254dcfc813092d45 (diff) | |
| download | boston-neuralnet-267c0b610031c499539d5d1fcceb1b3846b7748c.tar.gz boston-neuralnet-267c0b610031c499539d5d1fcceb1b3846b7748c.zip | |
MSE/diff falsch bestimmt :o
Diffstat (limited to 'linear.py')
| -rw-r--r-- | linear.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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) |
