Ticket #17935: patch-mvpa.2.diff

File patch-mvpa.2.diff, 1.8 KB (added by krunk7@…, 16 years ago)

patch-mvpa

  • mvpa/clfs/libsvmc/svm.py

    diff --git a/mvpa/clfs/libsvmc/svm.py b/mvpa/clfs/libsvmc/svm.py
    index 9d4fda6..e745a07 100644
    a b class SVM(_SVM): 
    376376#
    377377# check if there is a libsvm version with configurable
    378378# noise reduction ;)
    379 if hasattr(svm.svmc, 'svm_set_verbosity'):
    380     if __debug__ and "LIBSVM" in debug.active:
    381         debug("LIBSVM", "Setting verbosity for libsvm to 255")
    382         svm.svmc.svm_set_verbosity(255)
    383     else:
    384         svm.svmc.svm_set_verbosity(0)
     379#if hasattr(svm.svmc, 'svm_set_verbosity'):
     380#    if __debug__ and "LIBSVM" in debug.active:
     381#        debug("LIBSVM", "Setting verbosity for libsvm to 255")
     382#        svm.svmc.svm_set_verbosity(255)
     383#    else:
     384#        svm.svmc.svm_set_verbosity(0)
    385385
    386386
    387387
  • mvpa/clfs/libsvmc/svmc.i

    diff --git a/mvpa/clfs/libsvmc/svmc.i b/mvpa/clfs/libsvmc/svmc.i
    index 2b50c85..16bfa5d 100644
    a b struct svm_model 
    146146                                // 0 if svm_model is created by svm_train
    147147};
    148148
    149 /* one really wants to configure verbosity within python! */
    150 void svm_set_verbosity(int verbosity_flag);
    151 
    152149struct svm_model *svm_train(const struct svm_problem *prob, const struct svm_parameter *param);
    153150
    154151void svm_cross_validation(const struct svm_problem *prob, const struct svm_parameter *param, int nr_fold, double *target);
  • setup.py

    diff --git a/setup.py b/setup.py
    index b289285..ca6218a 100755
    a b setup(name = 'pymvpa', 
    109109                       'mvpa.misc.io',
    110110                       'mvpa.misc.plot',
    111111                       'mvpa.misc.fsl',
    112                        'mvpa.tests' ],
     112                       'mvpa.tests',
     113                       'mvpa.support'],
    113114      data_files = [('mvpa/data', ['mvpa/data'])],
    114115      scripts      = glob( 'bin/*' ),
    115116      ext_modules  = ext_modules