Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
added debug messages
  • Loading branch information
karlnapf committed Aug 8, 2012
1 parent be0b772 commit c9ba8b6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/shogun/statistics/HSIC.cpp
Expand Up @@ -290,6 +290,8 @@ SGMatrix<float64_t> CHSIC::get_kernel_matrix_L()

SGVector<float64_t> CHSIC::bootstrap_null()
{
SG_DEBUG("entering CHSIC::bootstrap_null()\n");

/* replace current kernel via precomputed custom kernel and call superclass
* method */

Expand Down Expand Up @@ -322,5 +324,7 @@ SGVector<float64_t> CHSIC::bootstrap_null()
SG_UNREF(precomputed_p);
SG_UNREF(precomputed_q);


SG_DEBUG("leaving CHSIC::bootstrap_null()\n");
return null_samples;
}
4 changes: 4 additions & 0 deletions src/shogun/statistics/KernelIndependenceTestStatistic.cpp
Expand Up @@ -63,6 +63,8 @@ void CKernelIndependenceTestStatistic::init()

SGVector<float64_t> CKernelIndependenceTestStatistic::bootstrap_null()
{
SG_DEBUG("entering CKernelIndependenceTestStatistic::bootstrap_null()\n");

/* compute bootstrap statistics for null distribution */
SGVector<float64_t> results;

Expand Down Expand Up @@ -113,6 +115,8 @@ SGVector<float64_t> CKernelIndependenceTestStatistic::bootstrap_null()
results=CTwoDistributionsTestStatistic::bootstrap_null();
}


SG_DEBUG("leaving CKernelIndependenceTestStatistic::bootstrap_null()\n");
return results;
}

4 changes: 3 additions & 1 deletion src/shogun/statistics/TwoDistributionsTestStatistic.cpp
Expand Up @@ -60,6 +60,8 @@ void CTwoDistributionsTestStatistic::init()

SGVector<float64_t> CTwoDistributionsTestStatistic::bootstrap_null()
{
SG_DEBUG("entering CTwoDistributionsTestStatistic::bootstrap_null()\n");

/* compute bootstrap statistics for null distribution */
SGVector<float64_t> results(m_bootstrap_iterations);

Expand All @@ -84,7 +86,7 @@ SGVector<float64_t> CTwoDistributionsTestStatistic::bootstrap_null()
/* clean up */
m_p_and_q->remove_subset();

/* clean up and return */
SG_DEBUG("leaving CTwoDistributionsTestStatistic::bootstrap_null()\n");
return results;
}

Expand Down

0 comments on commit c9ba8b6

Please sign in to comment.