[R] Boosting Algorithm for Regression (Adaboost.R2)
Bert Gunter
bgunter.4567 at gmail.com
Wed Mar 30 23:25:55 CEST 2016
https://cran.r-project.org/web/views/MachineLearning.html
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
stats.stackexchange.com .
Bert Gunter
"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:
> Hello
>
> 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 ?!
>
>
> library(gbm)
> 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,
> keep.data=TRUE)
> pred <- predict(gbm1,n.trees=100)
> pred <- as.data.frame(pred)
>
>
> Thanks
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.
More information about the R-help
mailing list