Prefix with bp_ some bp flags
This commit is contained in:
parent
da0514a779
commit
1b9c4e96e7
@ -52,15 +52,15 @@ BeliefProp::printSolverFlags (void) const
|
|||||||
{
|
{
|
||||||
stringstream ss;
|
stringstream ss;
|
||||||
ss << "belief propagation [" ;
|
ss << "belief propagation [" ;
|
||||||
ss << "msg_schedule=" ;
|
ss << "bp_msg_schedule=" ;
|
||||||
switch (schedule_) {
|
switch (schedule_) {
|
||||||
case MsgSchedule::SEQ_FIXED: ss << "seq_fixed"; break;
|
case MsgSchedule::SEQ_FIXED: ss << "seq_fixed"; break;
|
||||||
case MsgSchedule::SEQ_RANDOM: ss << "seq_random"; break;
|
case MsgSchedule::SEQ_RANDOM: ss << "seq_random"; break;
|
||||||
case MsgSchedule::PARALLEL: ss << "parallel"; break;
|
case MsgSchedule::PARALLEL: ss << "parallel"; break;
|
||||||
case MsgSchedule::MAX_RESIDUAL: ss << "max_residual"; break;
|
case MsgSchedule::MAX_RESIDUAL: ss << "max_residual"; break;
|
||||||
}
|
}
|
||||||
ss << ",max_iter=" << Util::toString (maxIter_);
|
ss << ",bp_max_iter=" << Util::toString (maxIter_);
|
||||||
ss << ",accuracy=" << Util::toString (accuracy_);
|
ss << ",bp_accuracy=" << Util::toString (accuracy_);
|
||||||
ss << ",log_domain=" << Util::toString (Globals::logDomain);
|
ss << ",log_domain=" << Util::toString (Globals::logDomain);
|
||||||
ss << "]" ;
|
ss << "]" ;
|
||||||
cout << ss.str() << endl;
|
cout << ss.str() << endl;
|
||||||
|
@ -36,15 +36,15 @@ CountingBp::printSolverFlags (void) const
|
|||||||
{
|
{
|
||||||
stringstream ss;
|
stringstream ss;
|
||||||
ss << "counting bp [" ;
|
ss << "counting bp [" ;
|
||||||
ss << "msg_schedule=" ;
|
ss << "bp_msg_schedule=" ;
|
||||||
switch (WeightedBp::msgSchedule()) {
|
switch (WeightedBp::msgSchedule()) {
|
||||||
case MsgSchedule::SEQ_FIXED: ss << "seq_fixed"; break;
|
case MsgSchedule::SEQ_FIXED: ss << "seq_fixed"; break;
|
||||||
case MsgSchedule::SEQ_RANDOM: ss << "seq_random"; break;
|
case MsgSchedule::SEQ_RANDOM: ss << "seq_random"; break;
|
||||||
case MsgSchedule::PARALLEL: ss << "parallel"; break;
|
case MsgSchedule::PARALLEL: ss << "parallel"; break;
|
||||||
case MsgSchedule::MAX_RESIDUAL: ss << "max_residual"; break;
|
case MsgSchedule::MAX_RESIDUAL: ss << "max_residual"; break;
|
||||||
}
|
}
|
||||||
ss << ",max_iter=" << WeightedBp::maxIterations();
|
ss << ",bp_max_iter=" << WeightedBp::maxIterations();
|
||||||
ss << ",accuracy=" << WeightedBp::accuracy();
|
ss << ",bp_accuracy=" << WeightedBp::accuracy();
|
||||||
ss << ",log_domain=" << Util::toString (Globals::logDomain);
|
ss << ",log_domain=" << Util::toString (Globals::logDomain);
|
||||||
ss << ",fif=" << Util::toString (CountingBp::fif_);
|
ss << ",fif=" << Util::toString (CountingBp::fif_);
|
||||||
ss << "]" ;
|
ss << "]" ;
|
||||||
|
@ -62,15 +62,15 @@ LiftedBp::printSolverFlags (void) const
|
|||||||
{
|
{
|
||||||
stringstream ss;
|
stringstream ss;
|
||||||
ss << "lifted bp [" ;
|
ss << "lifted bp [" ;
|
||||||
ss << "msg_schedule=" ;
|
ss << "bp_msg_schedule=" ;
|
||||||
switch (WeightedBp::msgSchedule()) {
|
switch (WeightedBp::msgSchedule()) {
|
||||||
case MsgSchedule::SEQ_FIXED: ss << "seq_fixed"; break;
|
case MsgSchedule::SEQ_FIXED: ss << "seq_fixed"; break;
|
||||||
case MsgSchedule::SEQ_RANDOM: ss << "seq_random"; break;
|
case MsgSchedule::SEQ_RANDOM: ss << "seq_random"; break;
|
||||||
case MsgSchedule::PARALLEL: ss << "parallel"; break;
|
case MsgSchedule::PARALLEL: ss << "parallel"; break;
|
||||||
case MsgSchedule::MAX_RESIDUAL: ss << "max_residual"; break;
|
case MsgSchedule::MAX_RESIDUAL: ss << "max_residual"; break;
|
||||||
}
|
}
|
||||||
ss << ",max_iter=" << WeightedBp::maxIterations();
|
ss << ",bp_max_iter=" << WeightedBp::maxIterations();
|
||||||
ss << ",accuracy=" << WeightedBp::accuracy();
|
ss << ",bp_accuracy=" << WeightedBp::accuracy();
|
||||||
ss << ",log_domain=" << Util::toString (Globals::logDomain);
|
ss << ",log_domain=" << Util::toString (Globals::logDomain);
|
||||||
ss << "]" ;
|
ss << "]" ;
|
||||||
cout << ss.str() << endl;
|
cout << ss.str() << endl;
|
||||||
|
Reference in New Issue
Block a user