Displaying 20 results from an estimated 110 matches similar to: "randomForest partialPlot x.var through function"
2010 Oct 04
1
Force evaluation of variable when calling partialPlot
Dear R Users,
I'm using the randomForest package and would like to generate partial
dependence plots, one after another, for a variety of variables:
m <- randomForest( s, ... )
varnames <- c( "var1", "var2", "var3", "var4" ) # var1..4 are all in
data frame s
for( v in varnames ) {
partialPlot( x=m, pred.data=s, x.var=v )
}
...but this
2011 Sep 14
1
substitute games with randomForest::partialPlot
I'm having trouble calling randomForest::partialPlot programmatically.
It tries to use name of the (R) variable as the data column name.
Example:
library(randomForest)
iris.rf <- randomForest(Species ~ ., data=iris, importance=TRUE, proximity=TRUE)
partialPlot(iris.rf, iris, Sepal.Width) # works
partialPlot(iris.rf, iris, "Sepal.Width") # works
(function(var.name)
2011 Aug 19
0
sign of the y axis in partialPlot for randomForest regression
Hi everybody,
I used randomForest to regress invertebrates abundances in least impaired
river reaches from some environmental parameters. Then I used these models
to predict invertebrates abundances in impaired reaches.
Now I would like to model the deviation (observation - prediction) with a
set of chemical parameters to see if the deviations from predictions could
be explained with water
2010 Sep 22
2
randomForest - partialPlot - Reg
Dear R Group
I had an observation that in some cases, when I use the randomForest model
to create partialPlot in R using the package "randomForest"
the y-axis displays values that are more than -1!
It is a classification problem that i was trying to address.
Any insights as to how the y axis can display value more than -1 for some
variables?
Am i missing something!
Thanks
Regards
2010 Nov 16
1
Force evaluation of variable when calling partialPlot
Greg,
Two thoughts:
1. It might be possible that 'vars' is a reserved word of sorts and if you change the name of your vector RF might be happier
2. A way that works for me is to call importance as follows:
sel.imp <- importance(sel.rf, class=NULL, scale=TRUE, type=NULL)
and then use the 'names' of the imp data frame to be absolutely clear to RF you are talking about the
2018 Jan 07
2
partialPlot en un Randomforest
Hola erreros. A ver si alguien podría decirme qué son los dos ejes del
plot que resulta de aplicar partialPlot en un Randomforest.
Encuentro que:
Partial dependence plot gives a graphical depiction of the marginal
effect of a variable on the class probability (classification) or
response (regression)
que nos indica como varía la VR en función de la variable considerada,
manteniendo el
2018 Jan 07
4
partialPlot en un Randomforest
Muchas gracias Carlos; ¡tu siempre al pié del cañón! (lo puse el día
de reyes a la 1.20h y me contestas a las 2.45h)
Una cosa más: si el eje y es la probabilidad ¿por qué va de 0 a 10? En
un RF para clasificación me da valores parecidos a los de tu ejemplo,
y en otro para regresión, valores de y entre 45 y 55.
Para regresión, el último parámetro no puede ser una categoría, como
2010 May 25
1
Lattice: relation = 'free' in scales
Hello list,
I am making graphics for an article which I want to publish. The article is
about several methods (to calculate breeding values of individuals) applied
in several genetic scenarios (scen1 in the example) and using data from two
sources (scen 2 in my example). I want to specify the ylim of my plot and
have relation = 'free' for the yaxis but I would to avoid plotting the axis
2009 Dec 23
1
animated R plots
Hi,
I want to be able to save the following animated plot as a flash. There are ultimately 6 plots, but when I run this and save it as a flash all I get is the last (6th) plot, not all six different plots in order by "year". I’ve tested the flash commands and they work; so it has to be my function code. I am guessing that the problem has something to do with overlaying the plot
2010 Apr 20
1
Help with Partial dependence bar graph
Hello,
I need to draw a partial dependence bar graph.
My the my predictor vectors are continous and so is the response variable.
Iam using the partialPlot function of the randomForest package. I get a line
graph. How can I edit it to get a bar graph instead?
(partialPlot(randomForest object ,data-matrix, number of predictor vectors,
"Temp"))
--
Daudi Jjingo
[[alternative HTML
2016 Apr 12
2
Random Forest para clasificación
Mi matriz de datos inicial estaba muy desbalanceada (5% de la clase minoritaria), por lo que he creado con el algoritmo SMOTE un dataset balanceado con el que he creado el modelo, y luego sobre ese modelo he creado la matriz de confusión con los datos originales.
Respecto a lo que me comentas, Carlos, creo que además de todo lo que comentas, que está bien, en micaso es necesario también saber no
2016 Apr 12
3
Random Forest para clasificación
No no, eso lo he sacaod, es decir, tengo la matriz de confusión para las OK/NOK, lo que no entiendo es como extraer las conclusiones sobre el modelo, de cara a como afectan las variables. He seguido dos estrategias:
1-Crear arboles de clasificacion con las variables más importantes del random Forest, pero el modelo se empobrece bastante.
2- Sacar los partialPlot, para ver la influencia de cada
2013 Mar 04
2
Creating 3d partial dependence plots
Help,
I've been having a difficult time trying to create 3d partial dependence
plots using "rgl". It looks like this question has been asked a couple
times, but I'm unable to find a clear answer googling. I've tried creating
x, y, and z variables by extracting them from the partialPlot output to no
avail. I've seen these plots used several times in articles, and I
2016 Apr 12
3
Random Forest para clasificación
Gracias por la pronta respuesta, pero tras leer la contestación de la gente, sigo sin entender muy bien la explicación.
Le responden lo siguiente:
"Each point on the partial dependence plot is the average vote
percentage in favor of the "Yes trees" class across all observations,
given a fixed level of TRI.
It's not a probability of correct classification. It has absolutely
2016 Apr 12
1
Random Forest classification
Hi,
To evaluate the partial influence of a factor with a random Forest, wich response is OK/NOK I?m using partialPlot, being the x axis the factor axis and the Y axis is between -1 and 1. What this -1 and 1 means?
An example:
https://www.dropbox.com/s/4b92lqxi3592r0d/Captura.JPG?dl=0
Thanks for all!!!
[[alternative HTML version deleted]]
2009 Apr 28
1
Problem with Random Forest predict
I am trying to run a partialPlot with Random Forest (as I have done many times before).
First I run my forest... Cell is a 6 level factor that is the dependent variable - all other variables are predictors, most of these are factors as well.
predCell<-randomForest(x=tempdata[-match("Cell",names(tempdata))],y=tempdata$Cell,importance=T)
Then I try my partial plot to look at the
2011 Aug 04
1
randomForest partial dependence plot variable names
Hello,
I am running randomForest models on a number of species. I would like to be
able to automate the printing of dependence plots for the most important
variables in each model, but I am unable to figure out how to enter the
variable names into my code. I had originally thought to extract them from
the $importance matrix after sorting by metric (e.g. %IncMSE), but the
importance matrix is n
2016 Apr 12
2
Random Forest para clasificación
Buenas,
Cuando estoy haciendo un random Forest para clasificación y hago el gráfico partialPlot, siendo mi respuesta OK/NOK, me sale en el eje X el valor de la variable, pero en el eje Y me salen valores de entre -1 y 1. ¿Qué significado tiene?
Adjunto un ejemplo:
https://www.dropbox.com/s/4b92lqxi3592r0d/Captura.JPG?dl=0
Gracias!!!
[[alternative HTML version deleted]]
2004 Jul 08
0
randomForest 4.3-0 released
Dear all,
Version 4.3-0 of the randomForest package is now available on CRAN (in
source; binaries will follow in due course). There are some interface
changes and a few new features, as well as bug fixes. For those who had
used previous versions, the important things to note are: 1. there's a
namespace now, and 2. some functions have been renamed. The list of changes
since 4.0-7 (last
2004 Jul 08
0
randomForest 4.3-0 released
Dear all,
Version 4.3-0 of the randomForest package is now available on CRAN (in
source; binaries will follow in due course). There are some interface
changes and a few new features, as well as bug fixes. For those who had
used previous versions, the important things to note are: 1. there's a
namespace now, and 2. some functions have been renamed. The list of changes
since 4.0-7 (last