[R] save trained randomForest model

Liaw, Andy andy_liaw at merck.com
Fri Jan 27 21:27:26 CET 2006


Use save().

Andy

From: luk
> 
> I used the following command to train a randomForest model
>   train.rf <- randomForest(grp ~ ., data=tr, ntree=100, mtry=50)
>    
>   My question is how to save the trained model so that it can 
> be loaded later for testing new samples?
>    
>   Thanks,
>    
>   Luk
> 
> 		
> ---------------------------------
>  
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! 
> http://www.R-project.org/posting-guide.html
> 
>




More information about the R-help mailing list