From fa2a8760e4f85697d8884ff621cee71897969dd9 Mon Sep 17 00:00:00 2001 From: Joe Zhao Date: Mon, 29 Jun 2015 11:49:39 +0800 Subject: readme --- README | 22 ++++++++++++++++++++++ misc.py | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 README diff --git a/README b/README new file mode 100644 index 0000000..a92c145 --- /dev/null +++ b/README @@ -0,0 +1,22 @@ +Cross-validation & ensemble +=========================== + +Requirements: +Python3 + +How to use: +copy ranksvm & split to target dir +./train.py -> training with cross-validation or ensemble(line 15) +./genCMC.py -> reference of how to generate a graph(in construction) + +to enable mask, add -M to the end of params in train() + +Structure: +./train.py -> training control +./cross.py -> PRSVM+ & cross-validation(onefold) +./ensemble.py -> ensemble RankSVM(onefold) +./misc.py -> various helpers + +Next: +Terminating condition +training -> genCMC diff --git a/misc.py b/misc.py index b546ad3..cc88ef5 100644 --- a/misc.py +++ b/misc.py @@ -6,7 +6,7 @@ def split(params): call(["./split"]+params.split(" "),stdout=devnull) def train(params): - params+=" --iter 1 --cg_prec 1e-4 --ls_prec 1e-10 --prec 1e-4 -M msk" + params+=" --iter 1 --cg_prec 1e-4 --ls_prec 1e-10 --prec 1e-4" bare(params) def bare(params): -- cgit v1.2.3-70-g09d2