Skip to content

Commit

Permalink
Made evaluation direction verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
lisitsyn committed Jul 8, 2012
1 parent f39aa5c commit c23a3c1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/shogun/modelselection/GridSearchModelSelection.cpp
Expand Up @@ -47,9 +47,15 @@ CParameterCombination* CGridSearchModelSelection::select_model(bool print_state)

CParameterCombination* best_combination=NULL;
if (m_machine_eval->get_evaluation_direction()==ED_MAXIMIZE)
{
if (print_state) SG_PRINT("Direction is maximize\n");
best_result->mean=CMath::ALMOST_NEG_INFTY;
}
else
{
if (print_state) SG_PRINT("Direction is maximize\n");
best_result->mean=CMath::ALMOST_INFTY;
}

/* underlying learning machine */
CMachine* machine=m_machine_eval->get_machine();
Expand Down

0 comments on commit c23a3c1

Please sign in to comment.