Installation ------------ QuaPy can be easily installed via `pip` :: pip install quapy See `pip page `_ for older versions. Requirements ************ * scikit-learn, numpy, scipy * pytorch (for QuaNet) * svmperf patched for quantification (see below) * joblib * tqdm * pandas, xlrd * matplotlib SVM-perf with quantification-oriented losses ******************************************** In order to run experiments involving SVM(Q), SVM(KLD), SVM(NKLD), SVM(AE), or SVM(RAE), you have to first download the `svmperf `_ package, apply the patch `svm-perf-quantification-ext.patch `_, and compile the sources. The script `prepare_svmperf.sh `_, does all the job. Simply run: :: ./prepare_svmperf.sh The resulting directory `./svm_perf_quantification` contains the patched version of `svmperf` with quantification-oriented losses. The `svm-perf-quantification-ext.patch `_ is an extension of the patch made available by `Esuli et al. 2015 `_ that allows SVMperf to optimize for the `Q` measure as proposed by `Barranquero et al. 2015 `_ and for the `KLD` and `NKLD` as proposed by `Esuli et al. 2015 `_ for quantification. This patch extends the former by also allowing SVMperf to optimize for `AE` and `RAE`.