[R] Boosting Algorithm for Regression (Adaboost.R2)
bgunter.4567 at gmail.com
Wed Mar 30 23:25:55 CEST 2016
What do you mean by Prediction Interval? I doubt that this has clear
meaning in the boosting context. You might want to follow up this
statistical question on a statistical or machine learning list like
"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Wed, Mar 30, 2016 at 2:13 PM, Majid Javanmard
<javanmard.majid at gmail.com> wrote:
> I am new to R , Is there any code to run Adaboost.R2 in r ?!
> I wrote a code from example of gbm package, but I can not have prediction
> interval would you help me ?!
> mm <- read.table("E:/bagg.txt",TRUE)
> xnam <- paste("x", 1:50, sep="")
> fmla <- as.formula(paste("y ~ ", paste(xnam, collapse= "+")))
> gbm1 <- gbm(fmla, data=mm, n.trees=100, distribution="gaussian",
> interaction.depth=3, bag.fraction=0.5, train.fraction=1.0, shrinkage=0.1,
> pred <- predict(gbm1,n.trees=100)
> pred <- as.data.frame(pred)
> [[alternative HTML version deleted]]
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help