MCPcopy Create free account
hub / github.com/SeldonIO/seldon-server / test_numpy_input

Method test_numpy_input

python/seldon/tests/test_vw.py:175–184  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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
187if __name__ == '__main__':

Callers

nothing calls this directly

Calls 3

fitMethod · 0.95
predict_probaMethod · 0.95
closeMethod · 0.95

Tested by

no test coverage detected