search for: gen_cod

Displaying 2 results from an estimated 2 matches for "gen_cod".

Did you mean: gen_code
2008 Feb 04
0
SOLVED: use classificators learned in R in "real-life", e.g. C
...ually, taking a closer look at the representations of rpart or randomForest, I came to a much simpler and straight-forward solution: with only a couple of lines, the corresponding c-code for a tree can be emitted. e.g. for randomForest: ## generate C code from rforests. generate code for tree k gen_code=function(rfobj,k) { tree=getTree(rfobj,k,labelVar=TRUE); count=0; loc.env=environment(); visit=function(idx) { assign('count',count+1,env=loc.env); if (tree[idx,'status']==-1) cat(sprintf("RETURN(%s)\n",tree[idx,'prediction'])) e...
2007 May 02
41
gzip compression throttles system?
I just had a quick play with gzip compression on a filesystem and the result was the machine grinding to a halt while copying some large (.wav) files to it from another filesystem in the same pool. The system became very unresponsive, taking several seconds to echo keystrokes. The box is a maxed out AMD QuadFX, so it should have plenty of grunt for this. Comments? Ian