MCPcopy Create free account
hub / github.com/Kaggle/docker-python / TestHepML

Class TestHepML

tests/test_hep_ml.py:7–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5from hep_ml.preprocessing import BinTransformer
6
7class TestHepML(unittest.TestCase):
8 def test_preprocessing(self):
9 X = np.array([[1.1, 1.2, 1.3],[5.1, 6.4, 10.5]])
10 transformer = BinTransformer().fit(X)
11 new_X = transformer.transform(X)
12
13 self.assertEqual((2, 3), new_X.shape)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected