(self)
| 173 | |
| 174 | |
| 175 | def test_numpy_input(self): |
| 176 | t = vw.VWClassifier() |
| 177 | try: |
| 178 | X = np.random.randn(6,4) |
| 179 | y = np.array([1,2,1,1,2,2]) |
| 180 | t.fit(X,y) |
| 181 | scores = t.predict_proba(X) |
| 182 | print scores |
| 183 | finally: |
| 184 | t.close() |
| 185 | |
| 186 | |
| 187 | if __name__ == '__main__': |
nothing calls this directly
no test coverage detected