Permalink
Browse files

ENH: those ugly debug msgs must come from SVM_, not CLF_

+ 1 forgotten ugliness
  • Loading branch information...
1 parent 7e8d357 commit 50ebdc1faf75b94d964ab25cede19b86fd1c2625 @yarikoptic yarikoptic committed Apr 5, 2012
Showing with 5 additions and 5 deletions.
  1. +3 −3 mvpa2/clfs/libsvmc/_svm.py
  2. +1 −1 mvpa2/clfs/libsvmc/svm.py
  3. +1 −1 mvpa2/clfs/libsvmc/svmc.i
@@ -108,7 +108,7 @@ def __init__(self, params):
def __del__(self):
if __debug__:
- debug('CLF_', 'Destroying libsvm._SVMCParameter %s' % str(self))
+ debug('SVM_', 'Destroying libsvm._SVMCParameter %s' % str(self))
free_int_array(svmc.svm_parameter_weight_label_get(self.param))
free_double_array(svmc.svm_parameter_weight_get(self.param))
svmc.delete_svm_parameter(self.param)
@@ -157,7 +157,7 @@ def param(self):
def __del__(self):
if __debug__:
- debug('CLF_', 'Destroying libsvm.SVMParameter %s' % str(self))
+ debug('SVM_', 'Destroying libsvm.SVMParameter %s' % str(self))
self._clear_svmc_params()
##REF: Name was automagically refactored
@@ -248,7 +248,7 @@ def __repr__(self):
def __del__(self):
if __debug__:
- debug('CLF_', 'Destroying libsvm.SVMProblem %s' % `self`)
+ debug('SVM_', 'Destroying libsvm.SVMProblem %s' % `self`)
svmc.delete_svm_problem(self.prob)
svmc.delete_double(self.y_array)
@@ -147,7 +147,7 @@ def _train(self, dataset):
argname = paramname
else:
if __debug__:
- debug("SVM_", "Skipping parameter %s since it is not known"
+ debug("SVM_", "Skipping parameter %s since it is not known "
"to libsvm" % paramname)
continue
args.append( (argname, param.value) )
@@ -278,7 +278,7 @@ void svm_destroy_model_helper(svm_model *model_ptr)
{
#if LIBSVM_VERSION >= 300
// yoh: Silence the blurber
- fprintf(stderr, "warning: svm_destroy_model is deprecated and should not be used. Please use svm_free_and_destroy_model(svm_model **model_ptr_ptr)\n");
+ // fprintf(stderr, "warning: svm_destroy_model is deprecated and should not be used. Please use svm_free_and_destroy_model(svm_model **model_ptr_ptr)\n");
svm_free_and_destroy_model(&model_ptr);
#else
svm_destroy_model(model_ptr);

0 comments on commit 50ebdc1

Please sign in to comment.