Skip to content

Commit

Permalink
Fixes for SG_ADD conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
lisitsyn committed Apr 1, 2012
1 parent a2a559c commit a17ad85
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/shogun/kernel/AvgDiagKernelNormalizer.h
Expand Up @@ -40,7 +40,7 @@ class CAvgDiagKernelNormalizer : public CKernelNormalizer
{
scale=c;

SG_ADD(&scale, "scale", "Scale quotient by which kernel is scaled."
SG_ADD(&scale, "scale", "Scale quotient by which kernel is scaled.",
MS_AVAILABLE);
}

Expand Down
2 changes: 1 addition & 1 deletion src/shogun/kernel/CustomKernel.cpp
Expand Up @@ -32,7 +32,7 @@ CCustomKernel::init()
SG_ADD(&m_free_km, "free_km", "Whether kernel matrix should be freed in "
"destructor", MS_NOT_AVAILABLE);
SG_ADD(&kmatrix, "kmatrix", "Kernel matrix.", MS_NOT_AVAILABLE);
SG_ADD(&upper_diagonal, "upper_diagonal", MS_NOT_AVAILABLE);
SG_ADD(&upper_diagonal, "upper_diagonal", "Upper diagonal", MS_NOT_AVAILABLE);

/* new parameter from param version 0 to 1 */
m_parameter_map->put(
Expand Down
6 changes: 3 additions & 3 deletions src/shogun/kernel/ScatterKernelNormalizer.h
Expand Up @@ -152,11 +152,11 @@ class CScatterKernelNormalizer: public CKernelNormalizer

m_testing_class = -1;

SG_ADD(&m_testing_class, "m_testing_class"
SG_ADD(&m_testing_class, "m_testing_class",
"Testing Class.", MS_NOT_AVAILABLE);
SG_ADD(&m_const_diag, "m_const_diag"
SG_ADD(&m_const_diag, "m_const_diag",
"Factor to multiply to diagonal elements.", MS_AVAILABLE);
SG_ADD(&m_const_offdiag, "m_const_offdiag"
SG_ADD(&m_const_offdiag, "m_const_offdiag",
"Factor to multiply to off-diagonal elements.", MS_AVAILABLE);

SG_ADD((CSGObject**) &m_labels, "m_labels", "Labels", MS_NOT_AVAILABLE);
Expand Down

0 comments on commit a17ad85

Please sign in to comment.