|
@@ -673,16 +673,6 @@ void FMKGPHyperparameterOptimization::setFastMinKernel ( FastMinKernel * _fmk )
|
|
if ( this->q != NULL )
|
|
if ( this->q != NULL )
|
|
{
|
|
{
|
|
this->q->computeParametersFromData ( &(this->fmk->featureMatrix()) );
|
|
this->q->computeParametersFromData ( &(this->fmk->featureMatrix()) );
|
|
-
|
|
|
|
-// if ( this->b_debug )
|
|
|
|
-// {
|
|
|
|
- std::cerr << "resulting prototypes for first dimension: " << std::endl;
|
|
|
|
- for ( uint idxProto = 0; idxProto < this->q->getNumberOfBins(); idxProto++)
|
|
|
|
- {
|
|
|
|
- std::cerr << this->q->getPrototype ( idxProto, 0 ) << " ";
|
|
|
|
- }
|
|
|
|
- std::cerr << std::endl;
|
|
|
|
-// }
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1189,8 +1179,6 @@ uint FMKGPHyperparameterOptimization::classify ( const NICE::SparseVector & _xst
|
|
_scores[ classno ] = beta;
|
|
_scores[ classno ] = beta;
|
|
}
|
|
}
|
|
_scores.setDim ( maxClassNo + 1 );
|
|
_scores.setDim ( maxClassNo + 1 );
|
|
- std::cerr << "_scores : " << std::endl;
|
|
|
|
- _scores.store ( std::cerr ) ;
|
|
|
|
|
|
|
|
if ( this->precomputedA.size() > 1 )
|
|
if ( this->precomputedA.size() > 1 )
|
|
{ // multi-class classification
|
|
{ // multi-class classification
|
|
@@ -1198,7 +1186,6 @@ uint FMKGPHyperparameterOptimization::classify ( const NICE::SparseVector & _xst
|
|
}
|
|
}
|
|
else if ( this->knownClasses.size() == 2 ) // binary setting
|
|
else if ( this->knownClasses.size() == 2 ) // binary setting
|
|
{
|
|
{
|
|
- std::cerr << "i_binaryLabelNegative: " << i_binaryLabelNegative << " i_binaryLabelPositive: " << i_binaryLabelPositive<< std::endl;
|
|
|
|
_scores[ this->i_binaryLabelNegative ] = -_scores[ this->i_binaryLabelPositive ];
|
|
_scores[ this->i_binaryLabelNegative ] = -_scores[ this->i_binaryLabelPositive ];
|
|
return _scores[ this->i_binaryLabelPositive ] <= 0.0 ? this->i_binaryLabelNegative : this->i_binaryLabelPositive;
|
|
return _scores[ this->i_binaryLabelPositive ] <= 0.0 ? this->i_binaryLabelNegative : this->i_binaryLabelPositive;
|
|
}
|
|
}
|
|
@@ -1317,11 +1304,7 @@ void FMKGPHyperparameterOptimization::computePredictiveVarianceApproximateRough
|
|
void FMKGPHyperparameterOptimization::computePredictiveVarianceApproximateFine ( const NICE::SparseVector & _x,
|
|
void FMKGPHyperparameterOptimization::computePredictiveVarianceApproximateFine ( const NICE::SparseVector & _x,
|
|
double & _predVariance
|
|
double & _predVariance
|
|
) const
|
|
) const
|
|
-{
|
|
|
|
-
|
|
|
|
- std::cerr << " security check! " << std::endl;
|
|
|
|
- std::cerr << "b_debug: " << this->b_debug << std::endl;
|
|
|
|
-
|
|
|
|
|
|
+{
|
|
if ( this->b_debug )
|
|
if ( this->b_debug )
|
|
{
|
|
{
|
|
std::cerr << "FMKGPHyperparameterOptimization::computePredictiveVarianceApproximateFine" << std::endl;
|
|
std::cerr << "FMKGPHyperparameterOptimization::computePredictiveVarianceApproximateFine" << std::endl;
|
|
@@ -1676,7 +1659,7 @@ void FMKGPHyperparameterOptimization::restore ( std::istream & _is,
|
|
if ( _is.good() )
|
|
if ( _is.good() )
|
|
{
|
|
{
|
|
if ( b_restoreVerbose )
|
|
if ( b_restoreVerbose )
|
|
- std::cerr << " in FMKGP restore" << std::endl;
|
|
|
|
|
|
+ std::cerr << " in FMKGPHyperparameterOptimization restore" << std::endl;
|
|
|
|
|
|
std::string tmp;
|
|
std::string tmp;
|
|
_is >> tmp; //class name
|
|
_is >> tmp; //class name
|