Dear Eric thanks for your code,
Dear R-experts,
Here below my R code, still the same error message at the end while trying to
tune the parameters!
Any hints to make it work would be appreciated.
Best,
# Create features a
Hi Sacha,
On second thought, perhaps this is more the direction that you want ...
X2 = cbind(X_train,y_train)
colnames(X2)[3] = "y"
regr2<-randomForest(y~x1+x2, data=X2,maxnodes=10, ntree=10)
regr
regr2
#Make prediction
predictions= predict(regr, X_test)
predictions2= predict(regr2, X_test)
HTH,
Hi,
One problem you have is with the command:
regr<-randomForest(y~x1+x2, data=X_train, proximity=TRUE)
What you need is something like this:
X2 <- cbind(X,y)
regr<-randomForest(y~x1+x2, data=X2, proximity=TRUE)
HTH,
Eric
On Mon, May 8, 2023 at 11:11 PM varin sacha via R-help
wrote:
>
> Dear
Dear R-experts,
Here below a toy example with some error messages, especially at the end of the
code (Tuning the parameters). Your help to correct my R code would be highly
appreciated.
###
#libraries
library(lattice)
library(ggplot2)
library(caret)
library(
4 matches
Mail list logo