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

Method test_random_forest_classifier

tests/test_sklearn.py:8–12  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

6
7class TestSklearn(unittest.TestCase):
8 def test_random_forest_classifier(self):
9 iris = datasets.load_iris()
10 X, y = iris.data, iris.target
11 rf1 = RandomForestClassifier()
12 rf1.fit(X,y)
13
14 def test_linearn_classifier(self):
15 iris = datasets.load_iris()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected