search for: cmedv

Displaying 4 results from an estimated 4 matches for "cmedv".

Did you mean: cmed
2010 Jul 29
1
Crash report: projection pursuit & predict
...ntu and the same problem occurred. By the way, right before Rgui shuts down, the pop-up window suggests it's a runtime error in C++. Here are the codes that cause the crash, library(mlbench) data(BostonHousing2) BH = BostonHousing2[,-c(1:5)] dat1 = BH[1:200,] dat2 = BH[201:400,] mod = ppr(log(cmedv)~., data=dat1, optlevel=0, nterms=2, max.terms=5) pred = predict(mod, newdata=dat2) Thks. HT > sessionInfo() R version 2.11.1 (2010-05-31) i386-pc-mingw32 locale: [1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 [3] LC_MONETARY=English_United States.1252 LC_NUME...
2018 Jan 20
2
Paquete pdp
...razón del error. En el paquete pdp no especifica que sea solo para RF, aunque en los ejemplos que encontré nunca eran de boosted ... Solo de RF y SVM. Gracias, Manuel library(pdp) data (boston) # load the boston housing data set.seed(101) # for reproducibility boston.rf <- randomForest(cmedv ~ ., data = boston) # Partial dependence of cmedv on lstat and rm pd <- partial(boston.rf, pred.var = c("lstat", "rm"), chull = TRUE) head(pd) # print first 6 rows #> lstat rm yhat #> 1 7.5284 3.66538 24.13683 #> 2 8.2532 3.66538 23.24916 #> 3...
2018 Jan 17
4
Random Forests
Buenas tardes a todos. El paquete randomForest tiene la función treesize, que es el nº de nodos. Me dan valores realmente elevados (en torno a 1000), y eso me parece extraño. ¿sabéis si es así? Gracias, Manuel -- Dr Manuel Mendoza Department of Biogeography and Global Change National Museum of Natural History (MNCN) Spanish Scientific Council (CSIC) C/ Serrano 115bis, 28006 MADRID Spain
2004 Nov 18
1
Method dispatch S3/S4 through optimize()
...her than by name before the setMethod(). When called from within functions passed as the f= argument to optimize, the S3 generics for det() and chol() get picked up, not the S4 generics for the S4 SparseM classes. This looks for instance like (from example(boston)): > gp2 <- lagsarlm(log(CMEDV) ~ CRIM + ZN + INDUS + CHAS + I(NOX^2) + I(RM^2) + + AGE + log(DIS) + log(RAD) + TAX + PTRATIO + B + log(LSTAT), + data=boston.c, nb2listw(boston.soi), method="SparseM") matrix.csr Error in chol(tmp1) : non-numeric argument to chol (this is the error message in chol.R in base). tmp1...