Commit 5c47d1d5 authored by mccrabb's avatar mccrabb
Browse files

Andrew: added a .gitignore & renamed an output file to baseoutput.txt

parent b5b4a082
src/basoutput.txt
src/avg.txt
File added
File added
......@@ -436,7 +436,7 @@ void RandomForest::printAccuracyReport(accuracyReport report) {
void RandomForest::printAccuracyReportFile(accuracyReport report) {
ofstream outfile;
outfile.open("basoutput.txt", ios::app);
outfile.open("baseoutput.txt", ios::app);
outfile << "---------- Report--------------" << "\n";
outfile << "Testing accuracy for forest with " << this->trees.size() << " trees depth " << this->depth
<< " and feature selection weight " << this->featureWeight << endl;
......
......@@ -14,3 +14,5 @@
6 8 0.0980581 0.7 72.5274 5.74115
------ Report ------
6 4 0.0980581 0.7 72.9768 5.06558
------ Report ------
5 5 0.0980581 0.7 72.9068 0.987395
......@@ -206,3 +206,27 @@ Label <=50K was predicted right 4770 times
Label >50K was predicted right 1866 times
Label <=50K was predicted wrong 2048 times
Label >50K was predicted wrong 365 times
---------- Report--------------
Testing accuracy for forest with 5 trees depth 5 and feature selection weight 0.0980581
Total tested data is 9049
The accuracy of the tree is 74.6381% with 6754 correct predictions and 2295 incorrect predictions
Label <=50K was predicted right 4940 times
Label >50K was predicted right 1814 times
Label <=50K was predicted wrong 1816 times
Label >50K was predicted wrong 479 times
---------- Report--------------
Testing accuracy for forest with 5 trees depth 5 and feature selection weight 0.0980581
Total tested data is 9049
The accuracy of the tree is 70.9139% with 6417 correct predictions and 2632 incorrect predictions
Label <=50K was predicted right 4516 times
Label >50K was predicted right 1901 times
Label <=50K was predicted wrong 2286 times
Label >50K was predicted wrong 346 times
---------- Report--------------
Testing accuracy for forest with 5 trees depth 5 and feature selection weight 0.0980581
Total tested data is 9049
The accuracy of the tree is 73.1683% with 6621 correct predictions and 2428 incorrect predictions
Label <=50K was predicted right 4731 times
Label >50K was predicted right 1890 times
Label <=50K was predicted wrong 2052 times
Label >50K was predicted wrong 376 times
File added
File added
File added
File added
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment