Commit 107dba25 authored by sgebreeg's avatar sgebreeg
Browse files

sets default feature weight, updated mnist.data

parent 2fe67c0a
This diff is collapsed.
......@@ -35,7 +35,6 @@ int main(int argc, char *argv[]) {
int numTrees = atoi(argv[1]);
float baggingWeight = 0.7;
int depth = atoi(argv[2]);
float featureWeight = 0.005;
// double featWeight = numFeatures * 0.1;
// cout << featWeight << "\n";
......@@ -48,6 +47,8 @@ int main(int argc, char *argv[]) {
featureTypes = parseFeatureTypes("../datasets/mnist.featureTypes");
features = parseFeatures("../datasets/mnist.features");
//pick number of features to select for random sub-spacing
float featureWeight = sqrt(features.size())/features.size();
double accuracy = 0.0;
double time = 0.0;
......
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