We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b39e29f commit 59006f2Copy full SHA for 59006f2
sklearn/svm/src/libsvm/libsvm_sparse_helper.c
@@ -400,6 +400,8 @@ int free_model_SV(struct svm_csr_model *model)
400
int i;
401
for (i=model->l-1; i>=0; --i) free(model->SV[i]);
402
/* svn_destroy_model frees model->SV */
403
+ for (i=0; i < model->nr_class-1 ; ++i) free(model->sv_coef[i]);
404
+ /* svn_destroy_model frees model->sv_coef */
405
return 0;
406
}
407
0 commit comments