Skip to content
Snippets Groups Projects
Commit d26cb080 authored by Julien Michel's avatar Julien Michel
Browse files

BUG: Fixing unknown method SetNumberOfSupportVectors() detected while trying to wrap the class

parent 8c393a89
No related branches found
No related tags found
No related merge requests found
......@@ -540,7 +540,6 @@ SVMModel<TValue,TLabel>::SetSupportVectors(svm_node ** sv, int nbOfSupportVector
delete[] (m_Model->SV);
m_Model->SV = NULL;
this->SetNumberOfSupportVectors(nbOfSupportVector);
m_Model->SV = new struct svm_node*[m_Model->l];
// copy new SV values
......@@ -606,8 +605,6 @@ SVMModel<TValue,TLabel>::SetAlpha( double ** alpha, int nbOfSupportVector )
}
delete [] m_Model->sv_coef;
this->SetNumberOfSupportVectors(nbOfSupportVector);
// copy new sv_coef values
m_Model->sv_coef = new double*[m_Model->nr_class-1];
for (int i=0; i<m_Model->nr_class-1; ++i)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment