Skip to content

Commit

Permalink
added debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
karlnapf committed Apr 14, 2012
1 parent 2e21eb9 commit bf5e9ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shogun/machine/KernelMachine.cpp
Expand Up @@ -461,6 +461,7 @@ void CKernelMachine::store_model_features()

bool CKernelMachine::train_locked(SGVector<index_t> indices)
{
SG_DEBUG("entering %s::train_locked()\n", get_name());
if (!is_data_locked())
SG_ERROR("CKernelMachine::train_locked() call data_lock() before!\n");

Expand All @@ -485,14 +486,13 @@ bool CKernelMachine::train_locked(SGVector<index_t> indices)
* and train does data_unlock */
bool result=train_machine();

// CMath::display_vector(get_support_vectors().vector, get_num_support_vectors(), "sv indices");

/* set col subset of kernel to contain all elements */
m_custom_kernel->remove_col_subset();

/* remove label subset after training */
m_labels->remove_subset();

SG_DEBUG("leaving %s::train_locked()\n", get_name());
return result;
}

Expand Down

0 comments on commit bf5e9ea

Please sign in to comment.