Displaying 7 results from an estimated 7 matches for "rforest".
Did you mean:
forest
2012 Nov 22
1
Partial dependence plot in randomForest package (all flat responses)
Hi,
I'm trying to make a partial plot with package randomForest in R. After I
perform my random forest object I type
partialPlot(data.rforest, pred.data=act2, x.var=centroid, "C")
where data.rforest is my randomforest object, act2 is the original dataset,
centroid is one of the predictor and C is one of the classes in my response
variable.
Whatever predictor or response class I try I always get a plot with a
straight line (a...
2010 May 05
2
readLines with space-delimiter?
...tten the data exchange working except each row is
read in as one 'chunk', meaning the row has all values between two quotes
("41 numbers"). I need to split these based upon the spaces between them.
What is the simplest means of doing this?
Code so far.
datin<-file("C:\\rforest\\data\\aoidry_predictors_85.txt", open="rt")
datout<-file("C:\\rforest\\prob85.txt",open="wt")
x<-readLines(datin,n=1)
writeLines(x,con=datout)
Thanks,
Seth
--
View this message in context: http://r.789695.n4.nabble.com/readLines-with-space-delimiter-tp213...
2010 Jul 20
1
Random Forest - Strata
...Site A and B to build the tree,
while using the WHOLE Site C data for the oob error rate,
- for tree 2, use only site A and C to build tree, while using whole site B
data for oob
- for tree 3, use Site B and C, A as oob...?
My command does not work as it would use some sample in all of the sites:
rforest.obj <- randomForest(Presence.f ~., data=dataset.subset, strata =
site.factor)
while
the setting the corresponding "sampsize" argument seems would only screen
out the Site in all tree building...
Site Presence Length Sulphur
A Yes 3.50 19.42
A No...
2010 Jan 14
0
doMPI 0.1-4
...executed to
initialize the cluster workers. This is particularly useful for sending
large matrices to each of the workers, since it allows the matrix to be
broadcast using the mpi.bcast function without calling the R "serialize"
function. An example of this technique is in the new "rforest.R" file,
a parallel random forest benchmark which is included in the "benchmark"
directory of the doMPI distribution.
- Steve Weston
_______________________________________________
R-packages mailing list
R-packages at r-project.org
https://stat.ethz.ch/mailman/listinfo/r-packages
2008 Feb 04
0
SOLVED: use classificators learned in R in "real-life", e.g. C
....
>
thanks for your answer.
actually, 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",tre...
2010 Jan 14
0
doMPI 0.1-4
...executed to
initialize the cluster workers. This is particularly useful for sending
large matrices to each of the workers, since it allows the matrix to be
broadcast using the mpi.bcast function without calling the R "serialize"
function. An example of this technique is in the new "rforest.R" file,
a parallel random forest benchmark which is included in the "benchmark"
directory of the doMPI distribution.
- Steve Weston
_______________________________________________
R-packages mailing list
R-packages at r-project.org
https://stat.ethz.ch/mailman/listinfo/r-packages
2010 May 05
0
R-help Digest, Vol 87, Issue 5
...tten the data exchange working except each row is
read in as one 'chunk', meaning the row has all values between two quotes
("41 numbers"). I need to split these based upon the spaces between them.
What is the simplest means of doing this?
Code so far.
datin<-file("C:\\rforest\\data\\aoidry_predictors_85.txt", open="rt")
datout<-file("C:\\rforest\\prob85.txt",open="wt")
x<-readLines(datin,n=1)
writeLines(x,con=datout)
Thanks,
Seth
--
View this message in context: http://r.789695.n4.nabble.com/readLines-with-space-delimiter-tp213...