|
@@ -210,7 +210,10 @@ void GPHIKClassifierNICE::restore ( std::istream & is, int format )
|
|
|
b_endOfBlock = true;
|
|
|
continue;
|
|
|
}
|
|
|
- else if ( tmp.compare("classifier") == 0 )
|
|
|
+
|
|
|
+ tmp = this->removeStartTag( tmp );
|
|
|
+
|
|
|
+ if ( tmp.compare("classifier") == 0 )
|
|
|
{
|
|
|
if ( classifier == NULL )
|
|
|
classifier = new NICE::GPHIKClassifier();
|
|
@@ -230,7 +233,7 @@ void GPHIKClassifierNICE::restore ( std::istream & is, int format )
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- std::cerr << "WARNING -- unexpected GPHIKClassifier object -- " << tmp << " -- for restoration... aborting" << std::endl;
|
|
|
+ std::cerr << "WARNING -- unexpected GPHIKClassifierNICE object -- " << tmp << " -- for restoration... aborting" << std::endl;
|
|
|
throw;
|
|
|
}
|
|
|
} // while-loop
|
|
@@ -259,7 +262,7 @@ void GPHIKClassifierNICE::store ( std::ostream & os, int format ) const
|
|
|
os << this->createEndTag( "performOptimizationAfterIncrement" ) << std::endl;
|
|
|
|
|
|
// done
|
|
|
- os << this->createEndTag( "GPHIKClassifier" ) << std::endl;
|
|
|
+ os << this->createEndTag( "GPHIKClassifierNICE" ) << std::endl;
|
|
|
}
|
|
|
else
|
|
|
{
|
|
@@ -303,4 +306,4 @@ void GPHIKClassifierNICE::addMultipleExamples( Examples & newExamples)
|
|
|
}
|
|
|
|
|
|
classifier->addMultipleExamples(sparseExamples, y, this->performOptimizationAfterIncrement);
|
|
|
-}
|
|
|
+}
|