You may also wish to check out the PMML approach. Check out the PMML package.
eRic ----- Original message ----- From: "Liaw, Andy" <andy_l...@merck.com> To: "Larry D'Agostino" <ieorto...@gmail.com>, "r-help" <r-help@r-project.org> Date: Fri, 9 Apr 2010 15:15:11 -0400 Subject: Re: [R] Question on implementing Random Forests scoring From: Larry D'Agostino > > So I've been working with Random Forests ( R library is > randomForest) and I > curious if Random Forests could be applied to classifying on > a real time > basis. For instance lets say I've scored fraud from a group of > transactions. If I want to score any new incoming > transactions for fraud > could Random Forests be used in that context. Linear > Regression is nice in > that it is very easy to score. > > I suppose R could be used as a real time API to load in data, > score, then > output results. Is there any other way with Random Forests? Yes, but not without more work. You can write the forest out to a file (with simple R code), and then write a stand-alone C code to read that model file and score the new data. The C function that scores new data from the model can be found in the source code of the package. Your C code just need to wrap around that. Andy Notice: This e-mail message, together with any attachme...{{dropped:10}} ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.