Update Readme

Add max_features > n_features test
Add make doc
This commit is contained in:
2021-04-27 23:15:21 +02:00
parent e19d10f6a7
commit 28c7558f01
6 changed files with 26 additions and 8 deletions

View File

@@ -269,6 +269,12 @@ class Stree_test(unittest.TestCase):
with self.assertRaises(ValueError):
_ = clf._initialize_max_features()
def test_wrong_max_features(self):
X, y = load_dataset(n_features=15)
clf = Stree(max_features=16)
with self.assertRaises(ValueError):
clf.fit(X, y)
def test_get_subspaces(self):
dataset = np.random.random((10, 16))
y = np.random.randint(0, 2, 10)