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

Method test_classifier

tests/test_rgf.py:7–16  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

5
6class TestRGF(unittest.TestCase):
7 def test_classifier(self):
8 iris = datasets.load_iris()
9 X, y = iris.data, iris.target
10
11 rgf = RGFClassifier(max_leaf=400,
12 algorithm="RGF_Sib",
13 test_interval=100,
14 n_iter=1)
15
16 rgf.fit(X,y)
17

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected