Skip to content

Commit 7591df6

Browse files
committed
update readme.md re new feature
1 parent 5d13593 commit 7591df6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ model = build_forest(labels, features, 2, 10, 0.5, 6)
148148
apply_forest(model, [5.9,3.0,5.1,1.9])
149149
# get the probability of each label
150150
apply_forest_proba(model, [5.9,3.0,5.1,1.9], ["Iris-setosa", "Iris-versicolor", "Iris-virginica"])
151+
# add 7 more trees
152+
model = build_forest(model, labels, features, 2, 7, 0.5, 6)
151153
# run 3-fold cross validation for forests, using 2 random features per split
152154
n_folds=3; n_subfeatures=2
153155
accuracy = nfoldCV_forest(labels, features, n_folds, n_subfeatures)

0 commit comments

Comments
 (0)