Skip to content

Commit

Permalink
fix compilation of java_modular
Browse files Browse the repository at this point in the history
- disable covertree serialization in KNN
- put KNN POINT type into modshogun ignores
  • Loading branch information
Soeren Sonnenburg committed Apr 7, 2012
1 parent c835442 commit 908c468
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/interfaces/modular/modshogun_ignores.i
Expand Up @@ -55,6 +55,8 @@
%ignore free_feature_iterator;
%ignore compute_sparse_feature_vector;

%ignore shogun::CKNN::m_covertree;
%ignore shogun::KNN_COVERTREE_POINT;
%ignore free_feature_vector;
%ignore free_sparse_feature_vector;
%ignore shogun::CNode;
Expand Down
4 changes: 2 additions & 2 deletions src/shogun/classifier/KNN.cpp
Expand Up @@ -58,10 +58,10 @@ void CKNN::init()
*/
SG_ADD(&m_k, "m_k", "Parameter k", MS_AVAILABLE);
SG_ADD(&m_q, "m_q", "Parameter q", MS_AVAILABLE);
SG_ADD(&m_use_covertree, "m_use_covertree", "Parameter use_covertree", MS_NOT_AVAILABLE);
//SG_ADD(&m_use_covertree, "m_use_covertree", "Parameter use_covertree", MS_NOT_AVAILABLE);
SG_ADD(&m_built_covertree, "m_built_covertree", "Parameter built_covertree", MS_NOT_AVAILABLE);
SG_ADD(&num_classes, "num_classes", "Number of classes", MS_NOT_AVAILABLE);
SG_ADD((CSGObject**) &m_covertree, "m_covertree", "Member cover tree", MS_NOT_AVAILABLE);
//SG_ADD((CSGObject**) &m_covertree, "m_covertree", "Member cover tree", MS_NOT_AVAILABLE);
}

CKNN::~CKNN()
Expand Down

0 comments on commit 908c468

Please sign in to comment.