Skip to content

Commit 7442707

Browse files
committed
Updated README.md
0 parents  commit 7442707

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Random-Forest-Classifier
2+
3+
A very simple Random Forest Classifier implemented in python. The sklearn.ensemble library was used to import the RandomForestClassifier class. The object of the class was created. The following arguments was passed initally to the object:
4+
5+
- n_estimators = 10
6+
- criterion = 'entropy'
7+
8+
The inital model was only given 10 decision tree, which resulted in a total of 10 incorrect prediction. Once the model was fitted with more the decision trees the number of incorrect prediction grew less.
9+
10+
It was found that a the optimal number of decision trees for this models to predict the answers was 200 decision trees. Hence the n_estimator argument was given a final value of 200.
11+
12+
Anything more that 200 will result in over-fitting and will lead further incorrect prediction.

0 commit comments

Comments
 (0)