Bjoern Froehlich 13 vuotta sitten
vanhempi
commit
00a738cd5f
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      semseg/SemSegContextTree.cpp

+ 2 - 2
semseg/SemSegContextTree.cpp

@@ -1585,7 +1585,7 @@ void SemSegContextTree::train ( const MultiDataset *md )
       {
         cout <<  ", feat: " << forest[tree][i].feat->writeInfos() << " ";
         opOverview[forest[tree][i].feat->getOps() ]++;
-        contextOverview[depth][forest[tree][i].feat->getContext()]++;
+        contextOverview[forest[tree][i].depth][(int)forest[tree][i].feat->getContext()]++;
       }
 
       for ( int d = 0; d < ( int ) forest[tree][i].dist.size(); d++ )
@@ -1915,7 +1915,7 @@ void SemSegContextTree::restore (std::istream & is, int format)
     forest.push_back(tmptree);
     int nodes;
     is >> nodes;
-    cout << "nodes: " << nodes << endl;
+    //cout << "nodes: " << nodes << endl;
     for(int n = 0; n < nodes; n++)
     {
       TreeNode tmpnode;