(self, X)
| 107 | return myr2(Y, Yhat) |
| 108 | |
| 109 | def predict(self, X): |
| 110 | N = len(X) |
| 111 | Yhat = np.empty(N) |
| 112 | for i in xrange(N): |
| 113 | Yhat[i] = self.predict_op(X[i]) |
| 114 | return Yhat |
| 115 | |
| 116 | # we need to skip the 3 footer rows |
| 117 | # skipfooter does not work with the default engine, 'c' |