search for: partialplot

Displaying 20 results from an estimated 26 matches for "partialplot".

2010 Nov 16
1
Force evaluation of variable when calling partialPlot
...e 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 same variables for(i in length(sel.imp){ partialPlot(sel.rf,xdata,names(sel.imp[i]),which.class=1,xlab=vars[i],main="") } Hope that helps. Tim Howard >>>>>>>>>>> Date: Mon, 15 Nov 2010 12:29:08 -0800 (PST) From: gdillon <gdillon@fs.fed.us> To: r-help@r-project.org Subject: Re: [R] Force evaluati...
2010 Oct 04
1
Force evaluation of variable when calling partialPlot
...Forest 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 doesn't work, with partialPlot complaining that it can't find the variable "v". I think I need to force the evaluation of the loop variable v so that partialPlot sees the correct variable names, but am stumped after trying eval and simil...
2005 May 13
0
randomForest partialPlot x.var through function
All, I'm trying to set up a function which calls the partialPlot function but am getting an error that I can't seem to solve. Here's a simplified version of the function and error... > pplot <- function(rf,pred.var){partialPlot(x=rf,pred.data=acoust,x.var=pred.var)} > > attach(acoust) > acoust.rf <- randomForest(VocalTF~Cruise...
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.W...
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 Vijayan Padmana...
2011 Aug 19
0
sign of the y axis in partialPlot for randomForest regression
...en 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 chemistry. I did built the model, and I used partialPlot to depict the patterns between individual water chemistry parameters and deviation from prediction. I know that the range and the values indicated on the y-axis do not correspond to the 'raw' deviation. However, since my deviations could be positive (i.e. greater abundance than expected)...
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 resto de vari...
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 version deleted]]
2018 Jan 07
4
partialPlot en un Randomforest
...el Quoting Carlos Ortega <cof en qualityexcellence.es>: > Hola, > > Ya es que la explicación de la función es un tanto oscura... > > Mira el ejemplo (clasificación): > >> data(iris) >> set.seed(543) >> iris.rf <- randomForest(Species~., iris) >> partialPlot(iris.rf, iris, Petal.Width, "versicolor") > > Y el gráfico que se produce: > > [image: Imágenes integradas 1] > El gráfico mide la variación de la probabilidad sobre una de las clases de > la variable target (en este caso la variable target es "Species" y la cl...
2016 Apr 12
2
Random Forest para clasificación
...que me comentas, Carlos, creo que además de todo lo que comentas, que está bien, en micaso es necesario también saber no sólo que variable influye sino como influye, y esto en un randomForest es complejo, ya que es una caja negra. Por ello es por lo que buscaba la mejor manera, y una era medainte partialPlot y la otra mediante árboles de clasificación, pero esta segunda manera me empobrece el modelo. Un saludo Jesús Date: Tue, 12 Apr 2016 11:01:16 +0200 Subject: Re: [R-es] Random Forest para clasificación From: cof en qualityexcellence.es To: j.para.fernandez en hotmail.com CC: r-help-es en r-project...
2016 Apr 12
3
Random Forest para clasificación
...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 variable, pero no termino de entender el significado del eje Y para estos gráficos. Por lo que he visto, con tu aportación primera, es que es el porcentaje de Votos OK/NOK, pero me queda la duda de saber si el 1 es el OK y el -1 el NOK o al revés. Gracias Carlos! Je...
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 think they would help me a great deal looking at interactions. Could someone provide a coding example using randomForest and rgl? It would be greatly appreciated. Thank you, Jerrod Parker [[alternative HTML ve...
2016 Apr 12
3
Random Forest para clasificación
...estions/121383/interpreting-y-axis-of-a-partial-dependence-plots Saludos,Carlos Ortegawww.qualityexcellence.es El 12 de abril de 2016, 7:13, Jesús Para Fernández <j.para.fernandez en hotmail.com> escribió: 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]]...
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=tempdat...
2011 Aug 04
1
randomForest partial dependence plot variable names
...e matrix is n by 2 - containing only the data for each metric (%IncMSE and IncNodePurity). It is clearly linked to the variable names, but I am unsure how to extract those names for use in scripting. Any assistance would be greatly appreciated as I am currently typing the variable names into each partialPlot call for every model I run.....and that is taking a LONG time. Thanks! [[alternative HTML version deleted]]
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
..., the returned object has an attribute `nodes', which is an n by ntree matrix of terminal node indicators. This is ignored for regression. Changes in 4.2-1: * There is now a package name space. Only generics are exported. * Some function names have been changed: partial.plot -> partialPlot var.imp.plot -> varImpPlot var.used -> varUsed * There is a new option `replace' in randomForest() (default to TRUE) indicating whether the sampling of cases is with or without replacement. * In randomForest(), the `sampsize' option now works for both classificati...
2004 Jul 08
0
randomForest 4.3-0 released
..., the returned object has an attribute `nodes', which is an n by ntree matrix of terminal node indicators. This is ignored for regression. Changes in 4.2-1: * There is now a package name space. Only generics are exported. * Some function names have been changed: partial.plot -> partialPlot var.imp.plot -> varImpPlot var.used -> varUsed * There is a new option `replace' in randomForest() (default to TRUE) indicating whether the sampling of cases is with or without replacement. * In randomForest(), the `sampsize' option now works for both classificati...
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 str...