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