summaryrefslogtreecommitdiff
path: root/ensemble.py
diff options
context:
space:
mode:
authorJoe Zhao <ztuowen@gmail.com>2015-06-04 00:46:43 +0800
committerJoe Zhao <ztuowen@gmail.com>2015-06-04 00:46:43 +0800
commit748b85b06b600f6deeedb42d9c3fa983c4513ae3 (patch)
tree66d980522aa3f2bde862156227a19bb8b685b689 /ensemble.py
parentdae9241190d658f44af6e3f8d7de107f03771797 (diff)
downloadcross-748b85b06b600f6deeedb42d9c3fa983c4513ae3.tar.gz
cross-748b85b06b600f6deeedb42d9c3fa983c4513ae3.tar.bz2
cross-748b85b06b600f6deeedb42d9c3fa983c4513ae3.zip
train tested
Diffstat (limited to 'ensemble.py')
-rw-r--r--ensemble.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ensemble.py b/ensemble.py
index 34b4024..fea3d6a 100644
--- a/ensemble.py
+++ b/ensemble.py
@@ -1,7 +1,7 @@
from misc import *
import math
-def onefold(inr,inm,tot,clist,folds,resm)
+def onefold(inr,inm,tot,clist,folds,resm):
#inr="a.rid"
#resm="res.m"
@@ -63,10 +63,10 @@ def onefold(inr,inm,tot,clist,folds,resm)
oum="%d-%g.m" % (i,c)
rid = "a%d.rid"%i
params = "-T -d -m %s -i %s -o %s -c %g" % (inm,rid,oum,c)
- #train(params)
+ train(params)
oup="%d-%g.p"%(i,c)
params = "-P -p -m %s -i %s -o %s" %(oum,inr,oup)
- #bare(params)
+ bare(params)
for p in getpred(oup):
mai=max(abs(p),mai);